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

bulletproofs: update to criterion 0.5 #54

Merged
merged 3 commits into from
May 2, 2024
Merged

bulletproofs: update to criterion 0.5 #54

merged 3 commits into from
May 2, 2024

Conversation

rillian
Copy link
Contributor

@rillian rillian commented May 2, 2024

Port to the latest release of the criterion benchmark framework.

The benchmark_function_with_inputs API has been deprecated since v0.3 and is removed in v0.4 and v0.5 so benchmarks are ported to the new BenchmarkGroup::bench_with_input method.

Addresses cargo audit warnings about transitive dependencies.

This follows as similar upstream patch dalek-cryptography/bulletproofs#375

rillian added 3 commits May 2, 2024 10:38
criterion is already a dev-dependency. It's not necessary to
include it was a direct dependency as well.
Port to the latest release of the criterion benchmark framework.

The `benchmark_function_with_inputs` API has been deprecated
since v0.3 and is removed in v0.4 and v0.5 so benchmarks are
ported to the new `BenchmarkGroup::bench_with_input` method.

Addresses `cargo audit` warnings about transitive dependencies.
@rillian
Copy link
Contributor Author

rillian commented May 2, 2024

In local testing I saw one 1% slowdown, all other tests were ~5% speed ups. These were informal runs though, so those changes are within the noise floor.

@claucece
Copy link
Member

claucece commented May 2, 2024

super awesome @rillian ! thank you!

@claucece claucece merged commit cecc064 into main May 2, 2024
1 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants