public int[] Reverse_BCL() { var copy = ArrayOfInts.ToArray(); Array.Reverse(copy, 0, copy.Length); // https://github.com/dotnet/coreclr/blob/master/src/System.Private.CoreLib/src/System/Array.cs#L1568-L1592 return(copy); }
public int[] Reverse_SSE() { var copy = ArrayOfInts.ToArray(); ArrayIntrinsics.Reverse_Sse2(copy); return(copy); }
//[Benchmark] public bool IsSorted_LINQ() { // I am just kidding.. :) return(ArrayOfInts.OrderBy(i => i).SequenceEqual(ArrayOfInts)); }
public int Max_LINQ() { return(ArrayOfInts.Max()); }
public int Max_LinqFasterLib() { return(ArrayOfInts.MaxS()); }