diff --git a/LiteDB.Benchmarks/LiteDB.Benchmarks.csproj b/LiteDB.Benchmarks/LiteDB.Benchmarks.csproj index 73986ac04..80a1ebdde 100644 --- a/LiteDB.Benchmarks/LiteDB.Benchmarks.csproj +++ b/LiteDB.Benchmarks/LiteDB.Benchmarks.csproj @@ -7,7 +7,7 @@ - + diff --git a/LiteDB.Benchmarks/Program.cs b/LiteDB.Benchmarks/Program.cs index 39c0b5654..334c15a68 100644 --- a/LiteDB.Benchmarks/Program.cs +++ b/LiteDB.Benchmarks/Program.cs @@ -13,17 +13,18 @@ class Program static void Main(string[] args) { BenchmarkRunner.Run(typeof(Program).Assembly, DefaultConfig.Instance - //.With(new BenchmarkDotNet.Filters.AnyCategoriesFilter(new[] {Benchmarks.Constants.Categories.DATA_GEN})) - .With(Job.Default.With(CoreRuntime.Core31) - .With(Jit.RyuJit) - .With(CsProjCoreToolchain.NetCoreApp31) + //.With(new BenchmarkDotNet.Filters.AnyCategoriesFilter(new[] { Benchmarks.Constants.Categories.GENERAL })) + //.AddFilter(new BenchmarkDotNet.Filters.AnyCategoriesFilter([Benchmarks.Constants.Categories.GENERAL])) + .AddJob(Job.Default.WithRuntime(CoreRuntime.Core60) + .WithJit(Jit.RyuJit) + .WithToolchain(CsProjCoreToolchain.NetCoreApp60) .WithGcForce(true)) /*.With(Job.Default.With(MonoRuntime.Default) .With(Jit.Llvm) .With(new[] {new MonoArgument("--optimize=inline")}) .WithGcForce(true))*/ - .With(MemoryDiagnoser.Default) - .With(BenchmarkReportExporter.Default, HtmlExporter.Default, MarkdownExporter.GitHub) + .AddDiagnoser(MemoryDiagnoser.Default) + .AddExporter(BenchmarkReportExporter.Default, HtmlExporter.Default, MarkdownExporter.GitHub) .KeepBenchmarkFiles()); } }