-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Conversation
@stephentoub, Right now, we enter the while (retCount != 0) loop once. After you break (after first iteration of benchmark), retCount will be 0 and you will not enter the loop again for subsequent Benchmark.Iterations. |
[Benchmark] | ||
private const int Iter = 1000; | ||
|
||
[Benchmark(InnerIterationCount = Iter)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is reducing the number of inner iterations from 10000 to 1000. Is that on purpose, and if so, why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Below
@ianhays Because on 10000 inner iterations we'll have only 1 Iteration of Benchmark, which doesn't show as an ok average time. So I reduced it to have more than 1 iteration of Benchmark and get a stable results. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation. Makes sense to me. Ian?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good, thanks for elaborating @Vedin. LGTM
No description provided.