-
Notifications
You must be signed in to change notification settings - Fork 5
/
Program.cs
26 lines (22 loc) · 864 Bytes
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Runtime.Intrinsics.X86;
using BenchmarkDotNet.Running;
namespace IntrinsicsPlayground
{
unsafe class Program
{
static void Main(string[] args)
{
if (!Sse41.IsSupported || !Avx2.IsSupported)
throw new NotSupportedException(":(");
if (Environment.GetEnvironmentVariable("COMPlus_TieredCompilation") != "0")
throw new Exception("Make sure Tiered JIT is disabled (enabled by default in .net core 3.0)");
BenchmarkRunner.Run<ArrayIndexOf>();
// Sorting:
//BenchmarkRunner.Run<SortingAlreadySortedArray>();
//BenchmarkRunner.Run<SortingAlreadySortedButReversedArray>();
//BenchmarkRunner.Run<SortingRandomArray>();
//BenchmarkRunner.Run<SortingNearlySortedArray>();
}
}
}