Skip to content

Commit

Permalink
use InnerCount
Browse files Browse the repository at this point in the history
Commit migrated from dotnet/corefx@cedb211
  • Loading branch information
nietras committed Dec 11, 2017
1 parent 5100213 commit 903ac14
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ private static void BenchmarkAndAssert(int size, int value, int expectedIndex)
{
using (iteration.StartMeasurement())
{
index |= span.BinarySearch(value);
for (int i = 0; i < Benchmark.InnerIterationCount; i++)
{
index |= span.BinarySearch(value);
}
}
}
Assert.Equal(expectedIndex, index);
Expand Down

0 comments on commit 903ac14

Please sign in to comment.