diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a8dc56..e85119a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | diff --git a/Benchmark/Bench.cs b/Benchmark/Bench.cs index 2518195..180b646 100644 --- a/Benchmark/Bench.cs +++ b/Benchmark/Bench.cs @@ -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 diff --git a/Solver/SolverConfig.cs b/Solver/SolverConfig.cs index d261949..65274a9 100644 --- a/Solver/SolverConfig.cs +++ b/Solver/SolverConfig.cs @@ -1,5 +1,3 @@ -using Craftimizer.Simulator.Actions; -using Craftimizer.Simulator; using System.Runtime.InteropServices; namespace Craftimizer.Solver; @@ -71,4 +69,4 @@ public SolverConfig() FurcatedActionCount = Environment.ProcessorCount / 2, Algorithm = SolverAlgorithm.StepwiseForked }; -} \ No newline at end of file +}