diff options
author | Stephen Toub <stoub@microsoft.com> | 2018-04-05 08:02:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 08:02:01 +0300 |
commit | 7d207e5ab6736f396bd00835efc2d7544a616049 (patch) | |
tree | 3cb27a98b0e8691cd75f347921aa252b77edf3cc | |
parent | 8b66ba0fe5555e4c69d502cf69b6640f81da6001 (diff) |
Remove unnecessary span lines from perf tests (#28844)
4 files changed, 0 insertions, 4 deletions
diff --git a/src/System.Runtime/tests/Performance/Perf.Int32.cs b/src/System.Runtime/tests/Performance/Perf.Int32.cs index 0bb67c6b68..195414b5af 100644 --- a/src/System.Runtime/tests/Performance/Perf.Int32.cs +++ b/src/System.Runtime/tests/Performance/Perf.Int32.cs @@ -31,7 +31,6 @@ namespace System.Tests [MemberData(nameof(Int32Values))] public void ToString(int value) { - Span<char> destination = new char[value.ToString().Length]; foreach (BenchmarkIteration iteration in Benchmark.Iterations) { using (iteration.StartMeasurement()) diff --git a/src/System.Runtime/tests/Performance/Perf.Int64.cs b/src/System.Runtime/tests/Performance/Perf.Int64.cs index 9f9833edb6..3c373271d8 100644 --- a/src/System.Runtime/tests/Performance/Perf.Int64.cs +++ b/src/System.Runtime/tests/Performance/Perf.Int64.cs @@ -66,7 +66,6 @@ namespace System.Tests [MemberData(nameof(Int64Values))] public void ToString(long value) { - Span<char> destination = new char[value.ToString().Length]; foreach (BenchmarkIteration iteration in Benchmark.Iterations) { using (iteration.StartMeasurement()) diff --git a/src/System.Runtime/tests/Performance/Perf.UInt32.cs b/src/System.Runtime/tests/Performance/Perf.UInt32.cs index e9af2fe97b..37695897ab 100644 --- a/src/System.Runtime/tests/Performance/Perf.UInt32.cs +++ b/src/System.Runtime/tests/Performance/Perf.UInt32.cs @@ -28,7 +28,6 @@ namespace System.Tests [MemberData(nameof(UInt32Values))] public void ToString(uint value) { - Span<char> destination = new char[value.ToString().Length]; foreach (BenchmarkIteration iteration in Benchmark.Iterations) { using (iteration.StartMeasurement()) diff --git a/src/System.Runtime/tests/Performance/Perf.UInt64.cs b/src/System.Runtime/tests/Performance/Perf.UInt64.cs index c8bdbea263..30b903d247 100644 --- a/src/System.Runtime/tests/Performance/Perf.UInt64.cs +++ b/src/System.Runtime/tests/Performance/Perf.UInt64.cs @@ -47,7 +47,6 @@ namespace System.Tests [MemberData(nameof(UInt64Values))] public void ToString(ulong value) { - Span<char> destination = new char[value.ToString().Length]; foreach (BenchmarkIteration iteration in Benchmark.Iterations) { using (iteration.StartMeasurement()) |