diff options
author | Joseph Tremoulet <jotrem@microsoft.com> | 2017-08-22 16:23:07 -0400 |
---|---|---|
committer | Joseph Tremoulet <jotrem@microsoft.com> | 2017-08-22 16:23:07 -0400 |
commit | ad75eead4d663427381c103246c27c2e20587420 (patch) | |
tree | c413c709c676268bdbbe46fbacea636b8469a32a | |
parent | dfd90b728c3bc26c4e038a3dbd6075ce3f257d2b (diff) | |
download | coreclr-ad75eead4d663427381c103246c27c2e20587420.tar.gz coreclr-ad75eead4d663427381c103246c27c2e20587420.tar.bz2 coreclr-ad75eead4d663427381c103246c27c2e20587420.zip |
Add InnerIterationCount to layout benchmarks
These tests were too short-running to measure effectively. Add an inner
iteration count that makes the running time around 1 second (measured
locally).
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs b/tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs index c08e314c11..60684f65df 100644 --- a/tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs +++ b/tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs @@ -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)); |