diff options
author | Andy Ayers <andya@microsoft.com> | 2017-05-19 12:40:15 -0700 |
---|---|---|
committer | Andy Ayers <andya@microsoft.com> | 2017-06-07 13:34:59 -0700 |
commit | c92d35ba6171640fb6ebb34c0f45ebfd8be4182f (patch) | |
tree | 8da1d6a181a01555482c49c3f41154e0009c1b96 /tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs | |
parent | cd5de7576d93f6006c4ef1659e3760488e159e82 (diff) | |
download | coreclr-c92d35ba6171640fb6ebb34c0f45ebfd8be4182f.tar.gz coreclr-c92d35ba6171640fb6ebb34c0f45ebfd8be4182f.tar.bz2 coreclr-c92d35ba6171640fb6ebb34c0f45ebfd8be4182f.zip |
Modify iteration behavior some benchmarks
This change updates the iteration behavior for the following benchmarks, so that
they generally run for about 1 second per iteration:
* Inline/InlineGCStruct
* Inline/NoThrowInline
* Span/IndexerBench/Indexer4
* Functions/MathTests/*
It also removes the length 1, 10, and 1000 variants of the Span/SpanBench
tests, leaving just the length 100 variants. Analysis has shown that there
is no need to test varying lengths here. Iteration counts for these tests
have been left as is and will be fixed subsequently.
Partially addresses #11654.
Diffstat (limited to 'tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs')
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs b/tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs index ce1febb178..0b2dd0403d 100644 --- a/tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs +++ b/tests/src/JIT/Performance/CodeQuality/Math/Functions/Single/FloorSingle.cs @@ -14,14 +14,17 @@ namespace Functions private const float floorSingleDelta = 0.0004f; private const float floorSingleExpectedResult = -2498.0f; - [Benchmark] + [Benchmark(InnerIterationCount = FloorSingleIterations)] public static void FloorSingleBenchmark() { foreach (var iteration in Benchmark.Iterations) { using (iteration.StartMeasurement()) { - FloorSingleTest(); + for (int i = 0; i < Benchmark.InnerIterationCount; i++) + { + FloorSingleTest(); + } } } } |