Skip to content

Commit

Permalink
Merge pull request #2509 from mbdavid/pj/bump-benchmark-project
Browse files Browse the repository at this point in the history
[♻️ Housekeeping] Update benchmark project
  • Loading branch information
pictos authored Jun 13, 2024
2 parents e9cff85 + dfdc3a0 commit 148ad42
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion LiteDB.Benchmarks/LiteDB.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.12.0" />
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
</ItemGroup>

<ItemGroup>
Expand Down
13 changes: 7 additions & 6 deletions LiteDB.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Expand Down

0 comments on commit 148ad42

Please sign in to comment.