Git Product home page Git Product logo

Comments (2)

timClicks avatar timClicks commented on May 29, 2024

I'm closing this issue as I don't want to re-architect the code.

from code.

GtTmy avatar GtTmy commented on May 29, 2024

I also thought about it and found this issue.

I did benchmark using hyperfine and realized akv_disk is not faster than akv_mem.
(dummy1000000.dat contains 1000000 data and its index data.)

$ hyperfine --warmup 1 'target/release/akv_disk dummy1000000.dat get 1' 'target/release/akv_mem dummy1000000.dat get 1'
Benchmark 1: target/release/akv_disk dummy1000000.dat get 1
  Time (mean ± σ):      1.348 s ±  0.005 s    [User: 0.764 s, System: 0.580 s]
  Range (min … max):    1.342 s …  1.361 s    10 runs
 
Benchmark 2: target/release/akv_mem dummy1000000.dat get 1
  Time (mean ± σ):      1.103 s ±  0.003 s    [User: 0.541 s, System: 0.561 s]
  Range (min … max):    1.098 s …  1.110 s    10 runs
 
Summary
  'target/release/akv_mem dummy1000000.dat get 1' ran
    1.22 ± 0.01 times faster than 'target/release/akv_disk dummy1000000.dat get 1'

from code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.