forked from mirror/DotRecast
benchmark
This commit is contained in:
parent
c036501879
commit
8a655528c3
|
@ -1,3 +1,5 @@
|
|||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using BenchmarkDotNet.Running;
|
||||
using DotRecast.Benchmark.Benchmarks;
|
||||
|
||||
|
@ -7,11 +9,13 @@ public static class BenchmarkProgram
|
|||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
var summary = BenchmarkRunner.Run([
|
||||
//BenchmarkConverter.TypeToBenchmarks(typeof(VectorBenchmarks)),
|
||||
//BenchmarkConverter.TypeToBenchmarks(typeof(PriorityQueueBenchmarks)),
|
||||
BenchmarkConverter.TypeToBenchmarks(typeof(StackallocBenchmarks)),
|
||||
]);
|
||||
var runs = ImmutableArray.Create(
|
||||
BenchmarkConverter.TypeToBenchmarks(typeof(VectorBenchmarks)),
|
||||
BenchmarkConverter.TypeToBenchmarks(typeof(PriorityQueueBenchmarks)),
|
||||
BenchmarkConverter.TypeToBenchmarks(typeof(StackallocBenchmarks))
|
||||
);
|
||||
|
||||
var summary = BenchmarkRunner.Run(runs.ToArray());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<IsPackable>false</IsPackable>
|
||||
<IsTestProject>true</IsTestProject>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue