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 meaurement_time instead of target_time in the warning message #806

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fredrb
Copy link

@fredrb fredrb commented Aug 12, 2024

For a while my benchmarks have been warning me the following:

Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 82.6s, or reduce sample count to 10.

When I finally decided to do something about it, I was surprised to see that there was no target_time property in the benchmark group. To no avail, I googled how to change "target time". I found #322 which didn't really fix my issue. It took me a while to figure out that target time == measurement time.

This PR changes the warnings from target -> measurement to better match the name of the actual user facing config name.

Seems like the warning was written like that because the name of the parameter in mode function (iteration_counts) is called target_time.

Also threw an optional new snippet in the book which I missed when looking up how to change target time.

Signed-off-by: Fred Bittencourt <fred.rbittencourt@gmail.com>
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.

1 participant