GithubHelp home page GithubHelp logo

Comments (1)

mortendahl avatar mortendahl commented on May 2, 2024

Note that (see https://docs.rs/aes/0.8.1/aes/#configuration-flags)

$ RUSTFLAGS="--cfg aes_armv8" cargo +nightly bench

gives much better results:

rng_fill/chacha8/2000000
                        time:   [1.5236 ms 1.5249 ms 1.5263 ms]
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) low mild
  2 (2.00%) high mild
  2 (2.00%) high severe
rng_fill/chacha12/2000000
                        time:   [2.2282 ms 2.2300 ms 2.2320 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
rng_fill/chacha20/2000000
                        time:   [3.6580 ms 3.6617 ms 3.6656 ms]
Found 3 outliers among 100 measurements (3.00%)
  3 (3.00%) high mild
rng_fill/aes/2000000    time:   [225.40 us 225.76 us 226.14 us]
Found 8 outliers among 100 measurements (8.00%)
  5 (5.00%) high mild
  3 (3.00%) high severe

rng_next_u64/chacha8    time:   [6.2238 us 6.2301 us 6.2366 us]
Found 4 outliers among 100 measurements (4.00%)
  1 (1.00%) low mild
  3 (3.00%) high mild
rng_next_u64/chacha12   time:   [9.0791 us 9.0910 us 9.1064 us]
Found 6 outliers among 100 measurements (6.00%)
  1 (1.00%) high mild
  5 (5.00%) high severe
rng_next_u64/chacha20   time:   [14.792 us 14.805 us 14.818 us]
Found 8 outliers among 100 measurements (8.00%)
  2 (2.00%) low mild
  4 (4.00%) high mild
  2 (2.00%) high severe
rng_next_u64/aes        time:   [1.9284 us 1.9315 us 1.9346 us]
Found 1 outliers among 100 measurements (1.00%)
  1 (1.00%) low mild

from aes-prng.

Related Issues (11)

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.