44using BenchmarkDotNet . Exporters ;
55using BenchmarkDotNet . Jobs ;
66using BenchmarkDotNet . Running ;
7- using BenchmarkDotNet . Toolchains . CsProj ;
87
98namespace LiteDbX . Benchmarks
109{
1110 internal class Program
1211 {
1312 private static void Main ( string [ ] args )
1413 {
15- BenchmarkRunner . Run ( typeof ( Program ) . Assembly , DefaultConfig . Instance
16- //.With(new BenchmarkDotNet.Filters.AnyCategoriesFilter(new[] { Benchmarks.Constants.Categories.GENERAL }))
17- //.AddFilter(new BenchmarkDotNet.Filters.AnyCategoriesFilter([Benchmarks.Constants.Categories.GENERAL]))
18- . AddJob ( Job . Default . WithRuntime ( CoreRuntime . Core80 )
19- . WithJit ( Jit . RyuJit )
20- . WithToolchain ( CsProjCoreToolchain . NetCoreApp80 )
21- . WithGcForce ( true ) )
22- /*.With(Job.Default.With(MonoRuntime.Default)
23- .With(Jit.Llvm)
24- .With(new[] {new MonoArgument("--optimize=inline")})
25- .WithGcForce(true))*/
26- . AddDiagnoser ( MemoryDiagnoser . Default )
27- . AddExporter ( BenchmarkReportExporter . Default , HtmlExporter . Default , MarkdownExporter . GitHub )
28- . KeepBenchmarkFiles ( ) ) ;
14+ BenchmarkSwitcher . FromAssembly ( typeof ( Program ) . Assembly ) . Run ( args , DefaultConfig . Instance
15+ //.With(new BenchmarkDotNet.Filters.AnyCategoriesFilter(new[] { Benchmarks.Constants.Categories.GENERAL }))
16+ //.AddFilter(new BenchmarkDotNet.Filters.AnyCategoriesFilter([Benchmarks.Constants.Categories.GENERAL]))
17+ . AddJob ( Job . Default . WithRuntime ( CoreRuntime . Core10_0 )
18+ . WithJit ( Jit . RyuJit )
19+ . WithGcForce ( true ) )
20+ /*.With(Job.Default.With(MonoRuntime.Default)
21+ .With(Jit.Llvm)
22+ .With(new[] {new MonoArgument("--optimize=inline")})
23+ .WithGcForce(true))*/
24+ . AddDiagnoser ( MemoryDiagnoser . Default )
25+ . KeepBenchmarkFiles ( ) ) ;
2926 }
3027 }
3128}
0 commit comments