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 option for a minimum number of samples #122
Comments
BenchmarkTool's API is budget-based, since that's generally how real-world performance experiments are parameterized (e.g. "I want to take as many samples as possible up to If you don't care about time, and want a certain number of samples no matter what, you can tell BenchmarkTools that; set the time to an extremely high amount and set the sample budget appropriately.
As long as you |
I'd like to bump this if possible. It'd be very nice to set an exact number of samples, regardless of seconds, especially when comparing against other languages I find they run a specific number of repeats, which I'd like to match. |
doesn't it work with |
I'm trying seconds = Inf currently for a project, but while it performs the amount of samples correctly, it just takes so long than including some arbitrary time limit. For example, if doing Doing Maybe BenchmarkTools by having no time limit is spending more time seeking for quality samples? idk |
Can you share a reproducible example? |
It would be great if there was an option (ideally even the default) that allowed me to make sure any benchmarkable code ran at least
n
times, even if the combined limits ofsamples
andseconds
suggest that we only need one sample. I mainly would want this so that one can in a generic way make sure to get a least one run that doesn't include any method compilation time.The text was updated successfully, but these errors were encountered: