-
Notifications
You must be signed in to change notification settings - Fork 918
Add hashes and chacha20_poly1305 to criterion benches crate
#5012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hashes and chacha20_poly1305 to criterion benches crate
#5012
Conversation
| Run all benchmarks in this crate: | ||
|
|
||
| ```bash | ||
| cargo bench |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember, this requires the nightly toolchain which would be worth a mention. Or you could do cargo +nightly bench here I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a section stating that the MSRV is 1.81 due to the dependency on criterion. I did try to get it to work on 1.74.0, but didn't manage in a reasonable amount of time and assumed it wasn't important since the benches only ran on nightly before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, it's libfuzzer that requires nightly, not criterion. Sorry, I redact the previous comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, as long as something's in the top-level workspace.exclude we can require pretty-much anything.
I do think it's possible to get an old version of criterion that works with 1.74, but agree that it's not particularly urgent.
Add a readme file to describe how to use the new benches crate.
Move all of the bench code to individual files in hashes/benches/ Add Criterion as a dependency in Cargo.toml
Move all of the bench code to individual files in chacha20_poly1305/benches/ Add Criterion as a dependency in Cargo.toml
96dfc80 to
aeb6027
Compare
apoelstra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aeb6027; successfully ran local tests
All the benchmarking for this repo is being moved to use
criterion.README.mdfor the crate.hashesbenchmarks tobencheschacha20_poly1305benchmarks tobenches