Skip to content

Commit

Permalink
modified to load all benchmark types at once
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 21, 2024
1 parent dda2bb0 commit f4e1e26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\DotRecast.Core\DotRecast.Core.csproj" />
<ProjectReference Include="..\..\src\DotRecast.Recast.Toolset\DotRecast.Recast.Toolset.csproj" />
</ItemGroup>

</Project>
11 changes: 2 additions & 9 deletions tool/DotRecast.Tool.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
using System;
using System.Reflection;
using BenchmarkDotNet.Running;
using DotRecast.Tool.Benchmark.DotRecast.Core;

namespace DotRecast.Tool.Benchmark;

public static class Program
{
public static int Main(string[] args)
{
Type[] benchmarkTypes =
[
typeof(VectorBenchmarks),
typeof(PriorityQueueBenchmarks),
typeof(ArrayBenchmarks)
];

var switcher = new BenchmarkSwitcher(benchmarkTypes);
var switcher = BenchmarkSwitcher.FromAssembly(Assembly.GetExecutingAssembly());

if (args == null || args.Length == 0)
{
Expand Down

0 comments on commit f4e1e26

Please sign in to comment.