We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d2229 commit 6e1617cCopy full SHA for 6e1617c
src/benchmarks/micro/libraries/System.Runtime/Perf.String.cs
@@ -297,10 +297,6 @@ public static IEnumerable<int> GetStarts()
297
298
[Benchmark]
299
public void Substring() => _s.Substring(Start);
300
-
301
- // TEMP: For comparison
302
- [Benchmark]
303
- public void NewString() => new string('\0', _s.Length - Start);
304
}
305
306
[BenchmarkCategory(Categories.Runtime, Categories.Libraries)]
@@ -336,10 +332,6 @@ public void Substring()
336
332
var slice = Slice;
337
333
_s.Substring(slice.StartIndex, slice.Length);
338
334
339
340
341
342
- public void NewString() => new string('\0', Slice.Length);
343
335
344
345
public class StringArguments
0 commit comments