You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
using System;
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace BenchmarkGround
{
public class Bench
{
public IEnumerable<object[]> Args =>
[
["Foo", "FooBar"],
["Foo", "Bar"],
["A quick brown fox jumps over a lazy dog", "A quick brown fox jumps over a lazy hog"],
[new string([.. Enumerable.Repeat('a', 1000), '1']), new string([.. Enumerable.Repeat('a', 1000), '2'])],
];
[Benchmark]
[ArgumentsSource(nameof(Args))]
public int Compare(string left, string right) => string.Compare(left, right, StringComparison.Ordinal);
[Benchmark]
[ArgumentsSource(nameof(Args))]
public int CompareOridinal(string left, string right) => string.CompareOrdinal(left, right);
}
}
Processing dotnet/runtime#111586 (comment) command:
Command
-arm
(EgorBot will reply in this issue)