summaryrefslogtreecommitdiff
path: root/tests/src
diff options
context:
space:
mode:
authorAhson Ahmed Khan <ahsonkhan@users.noreply.github.com>2017-03-31 15:27:46 -0700
committerGitHub <noreply@github.com>2017-03-31 15:27:46 -0700
commitcb01aa873b8b036dff6301a60d6d4a58f39a0672 (patch)
treeac2c66dd84e54da6d8013b5671d91dbb23f795a7 /tests/src
parent9c0f1af77263535a1035dcccf76f3303f1dd9c9e (diff)
downloadcoreclr-cb01aa873b8b036dff6301a60d6d4a58f39a0672.tar.gz
coreclr-cb01aa873b8b036dff6301a60d6d4a58f39a0672.tar.bz2
coreclr-cb01aa873b8b036dff6301a60d6d4a58f39a0672.zip
Temporary removing string slice span bench test. (#10617)
* Temporary removing string slice bench test. * Using if false directive to skip breaking tests
Diffstat (limited to 'tests/src')
-rw-r--r--tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs b/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
index 07e5030cac..8e7c40c57c 100644
--- a/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
+++ b/tests/src/JIT/Performance/CodeQuality/Span/SpanBench.cs
@@ -1009,7 +1009,7 @@ namespace Span
Array.Clear(array, 0, length);
}
#endregion
-
+#if false
#region TestSpanAsBytes<T>
[Benchmark(InnerIterationCount = BaseIterations)]
[InlineData(1)]
@@ -1109,6 +1109,7 @@ namespace Span
#endregion
#region TestSpanSliceStringChar<T>
+
[Benchmark(InnerIterationCount = BaseIterations)]
[InlineData(1)]
[InlineData(10)]
@@ -1137,15 +1138,16 @@ namespace Span
for (int i = 0; i < iterationCount; i++)
{
- var charSpan = s.Slice();
+ var charSpan = s.AsSpan();
// Under a condition that we know is false but the jit doesn't,
// add a read from 'charSpan' to make sure it's not dead, and an assignment
// to 's' so the AsBytes call won't get hoisted.
if (untrue) { sink.Data = charSpan[0]; s = "block hoisting the call to Slice()"; }
}
}
- #endregion
+ #endregion
+ #endif
#endregion // TestSpanAPIs