-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathProgram.cs
More file actions
30 lines (24 loc) · 835 Bytes
/
Program.cs
File metadata and controls
30 lines (24 loc) · 835 Bytes
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
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
using PhenX.EntityFrameworkCore.BulkInsert.Benchmark.Providers;
namespace PhenX.EntityFrameworkCore.BulkInsert.Benchmark;
public class Program
{
public static void Main(string[] args)
{
var config = ManualConfig
.Create(DefaultConfig.Instance)
.WithOptions(ConfigOptions.DisableOptimizationsValidator);
// Micro benchmark for value getters
BenchmarkRunner.Run<GetValueComparator>(config);
// Library comparison benchmarks
var comparators = new[]
{
typeof(LibComparatorMySql),
typeof(LibComparatorPostgreSql),
typeof(LibComparatorSqlite),
typeof(LibComparatorSqlServer),
};
BenchmarkRunner.Run(comparators, config);
}
}