-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Processing dotnet/runtime#122379 (comment) command:
Command
-intel -arm
using BenchmarkDotNet.Attributes;
public class Bench
{
int[] a = new int[10000];
int[] b = new int[10000];
MyComparer<string> c = new MyComparer<string>();
[IterationSetup]
public void IterationSetup() { for (int i = 0; i < a.Length; i++) a[i] = i; }
[Benchmark]
public void Sort() => MemoryExtensions.Sort(a, b, c);
struct MyComparer<T> : IComparer<int>
{
T state;
long a,b,c,d,e,f;
public int Compare(int x, int y) => x-y;
}
}(EgorBot will reply in this issue)
Metadata
Metadata
Assignees
Labels
No labels