-
-
Notifications
You must be signed in to change notification settings - Fork 435
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
rand_distr: Port benchmarks to Criterion #1116
Conversation
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.
Nice!
Maybe benches
should be a top-level crate instead of under rand_distr
?
This is how you're supposed to use it?
|
Note that |
@dhardy Yes, this could be a top-level crate, but I wanted to get feedback before converting the other benchmarks. (There are top-level As you already figured out, you can run them with @newpavlov They are already in a separate crate, and not checked by CI. In fact, I implemented the benchmarks based on the way it was done in the RustCrypto crates. The next version of Criterion will make the HTML reports optional, which hopefully turns it into a lightweight dependency. If we are still worried about CI runtime, I think caching can solve this issue. |
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.
Sorry, I guess I should approve this.
- The benchmarks are now living in their own crate. Therefore, this does not add any dev-dependencies to rand_distr. - Instead of bytes per seconds, we now measure cycles per byte. Refs rust-random#1039.
Thanks! |
not add any dev-dependencies to rand_distr.
Refs #1039.