2024-08-03 08:36:46 +03:00
|
|
|
using System.Collections.Immutable;
|
|
|
|
using System.Linq;
|
2024-07-07 14:05:35 +03:00
|
|
|
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());
|
2024-07-07 14:05:35 +03:00
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|