summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Performance/CodeQuality
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2017-08-22 16:23:07 -0400
committerJoseph Tremoulet <jotrem@microsoft.com>2017-08-22 16:23:07 -0400
commitad75eead4d663427381c103246c27c2e20587420 (patch)
treec413c709c676268bdbbe46fbacea636b8469a32a /tests/src/JIT/Performance/CodeQuality
parentdfd90b728c3bc26c4e038a3dbd6075ce3f257d2b (diff)
downloadcoreclr-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).
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality')
-rw-r--r--tests/src/JIT/Performance/CodeQuality/Layout/SearchLoops.cs4
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));