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

Profile:fixed number of iteration #639

Open
cassiersg opened this issue Dec 14, 2022 · 0 comments
Open

Profile:fixed number of iteration #639

cassiersg opened this issue Dec 14, 2022 · 0 comments

Comments

@cassiersg
Copy link

The --profile-time option of criterion is very convenient for profiling, but in some cases you don't want to automatically scale the number of iterations, such as when you compare profile of different benchmarks executions.

In such a case, having the same number of iterations for all benchmarks is very convenient, as it allows to easily compare profiling metrics such as instruction count (and other performance counters).

I think that this could be achieved by simply adding a command-line parameter --profile-iter that would behave identically to --profile-time, except that it would set a fixed number of benchmark iterations instead of fixed time.

Besides, it would also be helpful if --profile-time could print the number of iterations it ran.

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

No branches or pull requests

1 participant