DotRecastNetSim/test/DotRecast.Benchmark/BenchmarkProgram.cs

22 lines
618 B
C#
Raw Permalink Normal View History

2024-08-03 08:36:46 +03:00
using System.Collections.Immutable;
using System.Linq;
using BenchmarkDotNet.Running;
using DotRecast.Benchmark.Benchmarks;
namespace DotRecast.Benchmark;
public static class BenchmarkProgram
{
public static int Main(string[] args)
{
2024-08-03 08:36:46 +03:00
var runs = ImmutableArray.Create(
BenchmarkConverter.TypeToBenchmarks(typeof(VectorBenchmarks)),
BenchmarkConverter.TypeToBenchmarks(typeof(PriorityQueueBenchmarks)),
BenchmarkConverter.TypeToBenchmarks(typeof(StackallocBenchmarks))
);
var summary = BenchmarkRunner.Run(runs.ToArray());
return 0;
}
}