forked from mirror/DotRecast
22 lines
618 B
C#
22 lines
618 B
C#
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)
|
|
{
|
|
var runs = ImmutableArray.Create(
|
|
BenchmarkConverter.TypeToBenchmarks(typeof(VectorBenchmarks)),
|
|
BenchmarkConverter.TypeToBenchmarks(typeof(PriorityQueueBenchmarks)),
|
|
BenchmarkConverter.TypeToBenchmarks(typeof(StackallocBenchmarks))
|
|
);
|
|
|
|
var summary = BenchmarkRunner.Run(runs.ToArray());
|
|
|
|
return 0;
|
|
}
|
|
} |