-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#123158 (comment) command:
Command
-amd -intel -arm
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
BenchmarkSwitcher.FromAssembly(typeof(Benchmarks).Assembly).Run(args);
[MemoryDiagnoser]
public class Benchmarks
{
private string[] _strings = [.. Enumerable.Range(0, 10).Select(i => i.ToString())];
[Benchmark]
[Arguments("a", "b")]
public string Join(string s1, string s2) => string.Join("", s1, s2);
[Benchmark]
public string Join() => string.Join("", _strings);
}(EgorBot will reply in this issue)
stephentoub
Metadata
Metadata
Assignees
Labels
No labels