Skip to content
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 benchmarks to criterion-cycles-per-byte #1039

Open
vks opened this issue Sep 7, 2020 · 3 comments
Open

Migrate benchmarks to criterion-cycles-per-byte #1039

vks opened this issue Sep 7, 2020 · 3 comments

Comments

@vks
Copy link
Collaborator

vks commented Sep 7, 2020

criterion-cycles-per-byte provides benchmarks with cycles per byte, which would be more appropriate for RNGs than bytes per second.

@newpavlov
Copy link
Member

Note that criterion is a quite sizable dependency, which will increase runtime of CI jobs. It could be worth to keep such benchmarks in a separate crate with its own workspace, e.g. as was done here.

@vks
Copy link
Collaborator Author

vks commented Apr 16, 2021

Note that criterion is a quite sizable dependency, which will increase runtime of CI jobs.

This should hopefully be fixed with the new Cargo resolver.

vks added a commit to vks/rand that referenced this issue Apr 25, 2021
- 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.
vks added a commit to vks/rand that referenced this issue Apr 25, 2021
- 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.
vks added a commit to vks/rand that referenced this issue May 24, 2021
- 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.
@vks
Copy link
Collaborator Author

vks commented May 25, 2021

This was started with #1116 for rand_distr, but the other crates still have to be ported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants