Skip to content

Commit

Permalink
benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Aug 3, 2024
1 parent c036501 commit 8a65552
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions test/DotRecast.Benchmark/BenchmarkProgram.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Collections.Immutable;
using System.Linq;
using BenchmarkDotNet.Running;
using DotRecast.Benchmark.Benchmarks;

Expand All @@ -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;
}
Expand Down
1 change: 0 additions & 1 deletion test/DotRecast.Benchmark/DotRecast.Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 8a65552

Please sign in to comment.