Skip to content

Commit

Permalink
prepared benchmarking for tooling integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Dec 21, 2024
1 parent 559cbf6 commit b1c860e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
22 changes: 0 additions & 22 deletions tool/DotRecast.Tool.Benchmark/BenchmarkProgram.cs

This file was deleted.

31 changes: 31 additions & 0 deletions tool/DotRecast.Tool.Benchmark/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
using System;
using BenchmarkDotNet.Running;
using DotRecast.Tool.Benchmark.Benchmarks;

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);

if (args == null || args.Length == 0)
{
switcher.RunAll();
}
else
{
switcher.Run(args);
}

return 0;
}
}

0 comments on commit b1c860e

Please sign in to comment.