-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add a "cargo bench --debug" option #6446
Conversation
It builds the benchmarks in debug mode and then runs them. It's useful in a CI context where it's important that the benches aren't broken, but it's not important how fast they run. Fixes rust-lang#6445
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ehuss (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
Thanks for the PR! I've sort of long wanted to have an inverse to I think that I'd personally prefer to see this added across the board rather than just As another aside, I think it's a longstanding bug that Would you be willing to help tackle some of these surrounding issues as well? |
In fact, I just discovered that
|
That looks right to me yeah! I forgot that we had |
FWIW |
|
☔ The latest upstream changes (presumably #6505) made this pull request unmergeable. Please resolve the merge conflicts. |
Ok we discussed this at a recent Cargo triage meeting and the conclusion was that we're unlikely to land this as-is for now. Instead @ehuss pointed out that a strategy like rust-lang/rfcs#2678 is likely going to be our best bet where |
It builds the benchmarks in debug mode and then runs them. It's useful
in a CI context where it's important that the benches aren't broken, but
it's not important how fast they run.
Fixes #6445