Skip to content

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