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