Skip to content

Commit

Permalink
Benchmark .NET 8.0, as well
Browse files Browse the repository at this point in the history
  • Loading branch information
WorkingRobot committed Nov 11, 2023
1 parent b3111ee commit 25b2ad7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0'
dotnet-version: |
7.0
8.0
- name: Download Dalamud
run: |
Expand Down
6 changes: 5 additions & 1 deletion Benchmark/Bench.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Diagnostics.dotTrace;
using BenchmarkDotNet.Jobs;
using Craftimizer.Simulator;
using Craftimizer.Solver;

namespace Craftimizer.Benchmark;

[SimpleJob(iterationCount: 10)]
[SimpleJob(RuntimeMoniker.Net70, baseline: true)]
[SimpleJob(RuntimeMoniker.NativeAot70)]
[SimpleJob(RuntimeMoniker.Net80)]
[SimpleJob(RuntimeMoniker.NativeAot80)]
[MinColumn, Q1Column, Q3Column, MaxColumn]
[DotTraceDiagnoser]
public class Bench
Expand Down
4 changes: 1 addition & 3 deletions Solver/SolverConfig.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using Craftimizer.Simulator.Actions;
using Craftimizer.Simulator;
using System.Runtime.InteropServices;

namespace Craftimizer.Solver;
Expand Down Expand Up @@ -71,4 +69,4 @@ public SolverConfig()
FurcatedActionCount = Environment.ProcessorCount / 2,
Algorithm = SolverAlgorithm.StepwiseForked
};
}
}

0 comments on commit 25b2ad7

Please sign in to comment.