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

Switch benchmarks to criterion for more accurate profiling #20

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

netthier
Copy link
Contributor

While profiling the changes made in #14 and https://github.com/SenseLabsDE/contour-rs/tree/grid I noticed that I barely got any samples. After asking in the Rust Discord, this turned out to be due to the native Rust benchmarks not running for long enough.

This PR switches the benchmarks over to criterion which amongst other features runs the benchmarks for a longer time and leads to substantially better perf data. It also comes with the bonus of not requiring a nightly compiler, unlike the current benchmarks.

@mthh
Copy link
Owner

mthh commented Jun 13, 2024

That's great, thank you for this contribution!

@mthh mthh merged commit 8469cdf into mthh:master Jun 13, 2024
3 of 4 checks passed
@netthier netthier deleted the criterion branch June 13, 2024 11:55
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