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

Use Criterion for benchmarks #84

Merged
merged 4 commits into from
Jan 10, 2023
Merged

Conversation

james7132
Copy link
Collaborator

This PR changes the benchmarks for the crate to use Criterion instead of the default benchmark harness, as well as added a few more common operations to ensure it covers more of the common operations for the crate.

@james7132
Copy link
Collaborator Author

CI is failing because criterion cannot compile on 1.39 due to a dependency using the 2021 edition. This is resolvable by:

  • Bumping the MSRV to 1.56 when the 2021 edition was introduced.
  • Moving the benchmarks into it's own crate so that criterion isn't in the dev-dependencies.

I'm favoring the second choice here since this seems like an arbitrary reason to bump the user facing MSRV. Though that said, 1.56 is also when they added the rust-version Cargo.toml field, which lets us enforce the MSRV in a salient user-facing way.

@james7132 james7132 merged commit 7d5ca01 into petgraph:master Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant