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/Span/Indexer.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/Span/Indexer.cs')
-rw-r--r-- | tests/src/JIT/Performance/CodeQuality/Span/Indexer.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Span/Indexer.cs b/tests/src/JIT/Performance/CodeQuality/Span/Indexer.cs index c7f4846548..63f59e04be 100644 --- a/tests/src/JIT/Performance/CodeQuality/Span/Indexer.cs +++ b/tests/src/JIT/Performance/CodeQuality/Span/Indexer.cs @@ -267,7 +267,7 @@ namespace Span { Span<byte> s = new Span<byte>(a); byte result = 0; - int inner = Math.Max(1, (innerIterationCount / 10)); + int inner = Math.Max(1, innerIterationCount); for (int i = 0; i < inner ; ++i) { result = TestIndexer4(s, 10); |