summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPat Gavlin <pgavlin@gmail.com>2017-03-17 14:39:09 -0700
committerGitHub <noreply@github.com>2017-03-17 14:39:09 -0700
commitdc2f78c071cc68e5925e47a1162b2187d0f8c216 (patch)
treecf9fb4d4abb6ec5a9992e18a0dff9ea33751d6d2 /tests
parent408390ebf141738118924db3694bc487c8634f56 (diff)
parent287464997f594f3468e59598e08fee08f697ee44 (diff)
downloadcoreclr-dc2f78c071cc68e5925e47a1162b2187d0f8c216.tar.gz
coreclr-dc2f78c071cc68e5925e47a1162b2187d0f8c216.tar.bz2
coreclr-dc2f78c071cc68e5925e47a1162b2187d0f8c216.zip
Merge pull request #10238 from pgavlin/SeekUnrollLimit
Reduce case iteration counts in SeekUnroll.
Diffstat (limited to 'tests')
-rw-r--r--tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs15
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs b/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs
index 3253e255d6..81d9c0952f 100644
--- a/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs
+++ b/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,20 @@ public static class SeekUnroll
InnerIterations = 100000;
}
+ int manualLoopCount = 1;
+ if (args == null || args.Length == 0)
+ {
+ Console.WriteLine("Warning: no iteration count specified; defaulting to 1 iteration per case");
+ Console.WriteLine("To use multiple iterations per case, pass the desired number of iterations as the first command-line argument to this test");
+ }
+ else
+ {
+ manualLoopCount = int.Parse(args[0]);
+ }
+
foreach(int index in IndicesToTest)
{
- ManualLoopTimes = new long[10];
+ ManualLoopTimes = new long[manualLoopCount];
bool passed = Test(index, false);
if (!passed)
{