Code Monkey home page Code Monkey logo

Comments (1)

rbtcollins avatar rbtcollins commented on August 16, 2024

Fixed, not returning the calculated thunk. Voila:

     Running target/release/deps/is_enabled-263b751a9c364fca
single_call/single_call time:   [246.59 ns 249.44 ns 252.55 ns]                                    
                        thrpt:  [3.9596 Melem/s 4.0089 Melem/s 4.0553 Melem/s]

Benchmarking across 32 threads with 50000 iterations per thread
Benchmarking batch/single thread: Warming up for 15.000 s
Warning: Unable to complete 100 samples in 30.0s. You may wish to increase target time to 62.6s or reduce sample count to 40.
batch/single thread     time:   [12.285 ms 12.354 ms 12.429 ms]                                 
                        thrpt:  [4.0230 Melem/s 4.0471 Melem/s 4.0701 Melem/s]
batch/parallel same-feature                                                                           
                        time:   [104.34 ms 106.35 ms 107.71 ms]
                        thrpt:  [14.855 Melem/s 15.045 Melem/s 15.334 Melem/s]
Found 2 outliers among 10 measurements (20.00%)
  2 (20.00%) low severe
batch/parallel distinct-features                                                                           
                        time:   [33.841 ms 34.040 ms 34.296 ms]
                        thrpt:  [46.652 Melem/s 47.003 Melem/s 47.279 Melem/s]
Found 2 outliers among 10 measurements (20.00%)
  2 (20.00%) high mild
batch/parallel unknown-features                                                                            
                        time:   [12.934 ms 12.973 ms 13.029 ms]
                        thrpt:  [122.80 Melem/s 123.33 Melem/s 123.71 Melem/s]

normalising gives us:
single call: ~250ns
single thread: ~12354ns/50k = ~247ns
parallel same: ~106350ns/50k = ~2130ns
parallel distinct: ~34040ns/50k = ~681ns
parallel unknown: ~12.973ns/50k = ~255ns

from unleash-client-rust.

Related Issues (14)

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.