-
Notifications
You must be signed in to change notification settings - Fork 432
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
Migrate remaining benchmarks to Criterion #1490
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…hted_sample_indices_*
Duration: unimportant Integer, float ranges: we have more extensive Uniform benches SIMD integer ranges: we should replace with new ones based on the integer Uniform benches, but this is not a priority.
newpavlov
approved these changes
Sep 5, 2024
MichaelOwenDyer
approved these changes
Sep 5, 2024
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 can't say I know enough about benchmarking to be able to critically review this, but I took a look over it and it all seems sensible and correct to my untrained eyes.
1 task
dhardy
added a commit
to dhardy/rand
that referenced
this pull request
Sep 10, 2024
Looks like a mistake in rust-random#1490.
dhardy
added a commit
to dhardy/rand
that referenced
this pull request
Sep 24, 2024
Looks like a mistake in rust-random#1490.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGELOG.md
entrySummary
Translate everything still using the old test harness to Criterion.
Motivation
Remove dependency on the (mostly deprecated) standard test harness. Enable usage of Criterion command-line arguments (which are otherwise intercepted by the Rust test harness).
Closes #1039.
Details
Mostly these are straightforward translations or simplifications (Criterion can benchmark ~1ns functions well enough so we don't need 1000 repetitions inside our benchmark functions).
Some I have added to benchmark groups. Some I have used shorter warmup/measurement durations since the defaults are quite conservative.
Many of the new results match up very well with those from the old test framework. Others don't; in particular the
generators
benchmarks (especially byte benches) are notably slower, but vaguely the same relative performance.Old generators benchmark results
New generators benchmark results