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

Fix bug where time over the maximum would be reported as 1ms in quick mode #659

Merged
merged 1 commit into from Mar 11, 2023

Conversation

KonradHoeffner
Copy link
Contributor

See issue #658.
See also the minimal working example at https://github.com/KonradHoeffner/criterion-quick-bug.
This will report the correct time of the first and only iteration in quick mode.
Note that it will still crash with plotting due to the values being the same, so cargo bench -- --quick --noplot must be used.

@lemmih
Copy link
Collaborator

lemmih commented Feb 23, 2023

Sigh, might need to bump MSRV to 1.60

@lemmih lemmih merged commit 86dcd7d into bheisler:master Mar 11, 2023
@Victor-N-Suadicani
Copy link

Also just ran into this bug. Will this be released soon?

@KonradHoeffner
Copy link
Contributor Author

@Victor-N-Suadicani: The fix is included in the new version 0.5.0, however it will still crash in quick mode in those cases without the "--noplot" parameter.

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.

None yet

3 participants