diff --git a/test/Microsoft.AspNetCore.Server.Kestrel.Performance/DotSegmentRemovalBenchmark.cs b/test/Microsoft.AspNetCore.Server.Kestrel.Performance/DotSegmentRemovalBenchmark.cs index 64482a568c..eb626280d1 100644 --- a/test/Microsoft.AspNetCore.Server.Kestrel.Performance/DotSegmentRemovalBenchmark.cs +++ b/test/Microsoft.AspNetCore.Server.Kestrel.Performance/DotSegmentRemovalBenchmark.cs @@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance [Benchmark(Baseline = true)] public unsafe int NoDotSegments() { - _noDotSegmentsAscii.CopyTo(_noDotSegmentsBytes); + _noDotSegmentsAscii.CopyTo(_noDotSegmentsBytes, 0); fixed (byte* start = _noDotSegmentsBytes) { @@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance [Benchmark] public unsafe int SingleDotSegments() { - _singleDotSegmentsAscii.CopyTo(_singleDotSegmentsBytes); + _singleDotSegmentsAscii.CopyTo(_singleDotSegmentsBytes, 0); fixed (byte* start = _singleDotSegmentsBytes) { @@ -49,7 +49,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance [Benchmark] public unsafe int DoubleDotSegments() { - _doubleDotSegmentsAscii.CopyTo(_doubleDotSegmentsBytes); + _doubleDotSegmentsAscii.CopyTo(_doubleDotSegmentsBytes, 0); fixed (byte* start = _doubleDotSegmentsBytes) {