Closed jamesbascle closed 4 years ago
Maybe setting NumberOfIterations
parameter will work for you (for example 3). The default value is 10 for NumberOfIterations
(https://github.com/petabridge/NBench/blob/126e1d9c832f57039a2f598ab47003216f22c728/src/NBench/PerformanceBenchmark.cs#L48) .
Ahhhh. I see. I understood the documentation to mean that one used Throughput AND RunTimeMilliseconds OR Iterations AND NumberOfIterations, not that those are used in conjunction.
@jamesbascle sorry about that - we should rename this issue to clarify that in the documentation then I think. Isn't that the real issue here?
I have a benchmark with this setting
It runs on average between 8-10 seconds.
You can see the test here: https://github.com/jamesbascle/OneOf/blob/DiscU/OneOf.Tests/MatcherPerformanceTests.cs#L10