From: Pat Gavlin Date: Thu, 16 Mar 2017 23:08:06 +0000 (-0700) Subject: Reduce case iteration counts in SeekUnroll. X-Git-Tag: submit/tizen/20210909.063632~11030^2~7673^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a67be37a5f9e90e6f9da044eda06e9beb1e3f14e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Reduce case iteration counts in SeekUnroll. This test was taking too long to run on x86. After investigation, it does not appear that there is a fundamental problem with the code generated for the test; rather, it seems that we are running an excessive number of iterations when using this test as a correctness test. This change reduces the number of times we run each case from 10 to 1 unless otherwise specified on the command line. Commit migrated from https://github.com/dotnet/coreclr/commit/13867720e00706ade79e6030f6e8441fbfdef41c --- diff --git a/src/coreclr/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs b/src/coreclr/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs index 3253e25..3915caf 100644 --- a/src/coreclr/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs +++ b/src/coreclr/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs @@ -140,7 +140,7 @@ public static class SeekUnroll // Main method entrypoint runs the manual timer loop - public static int Main() + public static int Main(string[] args) { int failures = 0; @@ -151,9 +151,10 @@ public static class SeekUnroll InnerIterations = 100000; } + int manualLoopCount = (args != null && args.Length >= 1) ? int.Parse(args[0]) : 1; foreach(int index in IndicesToTest) { - ManualLoopTimes = new long[10]; + ManualLoopTimes = new long[manualLoopCount]; bool passed = Test(index, false); if (!passed) {