Skip to content

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
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.

3 participants