diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-02-10 20:35:12 +0900 |
commit | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (patch) | |
tree | b48831a898906734f8884d08b6e18f1144ee2b82 /tests/src/JIT/Performance/CodeQuality/SIMD | |
parent | db20f3f1bb8595633a7e16c8900fd401a453a6b5 (diff) | |
download | coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.gz coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.tar.bz2 coreclr-4b11dc566a5bbfa1378d6266525c281b028abcc8.zip |
Imported Upstream version 1.0.0.9910upstream/1.0.0.9910
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality/SIMD')
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs | 12 |
1 files changed, 10 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 34c0ab888d..3253e255d6 100644 --- a/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs +++ b/tests/src/JIT/Performance/CodeQuality/SIMD/SeekUnroll/SeekUnroll.cs @@ -62,9 +62,9 @@ public static class SeekUnroll // Iteration counts for inner loop set to have each call take 1 or // 2 seconds or so in release, finish quickly in debug. #if DEBUG - const int InnerIterations = 1; + static int InnerIterations = 1; #else - const int InnerIterations = 1000000000; + static int InnerIterations = 1000000000; #endif // Function to meaure InnerLoop using the xunit-perf benchmark measurement facilities @@ -143,6 +143,14 @@ public static class SeekUnroll public static int Main() { int failures = 0; + + // On non-hardware accelerated platforms, the test times out because it runs for too long. + // In those cases, we decrease InnerIterations so the test doesn't time out. + if (!Vector.IsHardwareAccelerated) + { + InnerIterations = 100000; + } + foreach(int index in IndicesToTest) { ManualLoopTimes = new long[10]; |