forked from HdrHistogram/HdrHistogram.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
33 lines (31 loc) · 1.37 KB
/
Program.cs
File metadata and controls
33 lines (31 loc) · 1.37 KB
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
27
28
29
30
31
32
33
using BenchmarkDotNet.Columns;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Environments;
using BenchmarkDotNet.Jobs;
using BenchmarkDotNet.Running;
namespace HdrHistogram.Benchmarking
{
class Program
{
static void Main(string[] args)
{
var config = ManualConfig.Create(DefaultConfig.Instance)
.AddColumn(
StatisticColumn.OperationsPerSecond,
StatisticColumn.Mean, StatisticColumn.StdErr, StatisticColumn.StdDev,
StatisticColumn.P0, StatisticColumn.Q1, StatisticColumn.P50, StatisticColumn.P67, StatisticColumn.Q3, StatisticColumn.P80, StatisticColumn.P90, StatisticColumn.P95, StatisticColumn.P100)
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core80))
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core90))
.AddJob(Job.Default.WithRuntime(CoreRuntime.Core10_0))
;
var switcher = new BenchmarkSwitcher(new[] {
typeof(LeadingZeroCount.LeadingZeroCount64BitBenchmark),
typeof(LeadingZeroCount.LeadingZeroCount32BitBenchmark),
typeof(Recording.Recording32BitBenchmark),
typeof(ByteBuffer.ByteBufferBenchmark),
typeof(Serialisation.SerialisationBenchmark),
});
switcher.Run(args, config);
}
}
}