Add InnerIterationCount to layout benchmarks
authorJoseph Tremoulet <jotrem@microsoft.com>
Tue, 22 Aug 2017 20:23:07 +0000 (16:23 -0400)
committerJoseph Tremoulet <jotrem@microsoft.com>
Tue, 22 Aug 2017 20:23:07 +0000 (16:23 -0400)
These tests were too short-running to measure effectively.  Add an inner
iteration count that makes the running time around 1 second (measured
locally).

tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs

index c08e314..60684f6 100644 (file)
@@ -46,13 +46,13 @@ namespace Layout
             test2 = new string('A', length);
         }
 
-        [Benchmark]
+        [Benchmark(InnerIterationCount = 20000000)]
         public void LoopReturn()
         {
             Benchmark.Iterate(() => LoopReturn(test1, test2));
         }
 
-        [Benchmark]
+        [Benchmark(InnerIterationCount = 20000000)]
         public void LoopGoto()
         {
             Benchmark.Iterate(() => LoopGoto(test1, test2));