Benchmark .NET 8.0, as well
This commit is contained in:
@@ -90,7 +90,9 @@ jobs:
|
|||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '7.0'
|
dotnet-version: |
|
||||||
|
7.0
|
||||||
|
8.0
|
||||||
|
|
||||||
- name: Download Dalamud
|
- name: Download Dalamud
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+3
-1
@@ -1,11 +1,13 @@
|
|||||||
using BenchmarkDotNet.Attributes;
|
using BenchmarkDotNet.Attributes;
|
||||||
using BenchmarkDotNet.Diagnostics.dotTrace;
|
using BenchmarkDotNet.Diagnostics.dotTrace;
|
||||||
|
using BenchmarkDotNet.Jobs;
|
||||||
using Craftimizer.Simulator;
|
using Craftimizer.Simulator;
|
||||||
using Craftimizer.Solver;
|
using Craftimizer.Solver;
|
||||||
|
|
||||||
namespace Craftimizer.Benchmark;
|
namespace Craftimizer.Benchmark;
|
||||||
|
|
||||||
[SimpleJob(iterationCount: 10)]
|
[SimpleJob(RuntimeMoniker.Net70, baseline: true)]
|
||||||
|
[SimpleJob(RuntimeMoniker.Net80)]
|
||||||
[MinColumn, Q1Column, Q3Column, MaxColumn]
|
[MinColumn, Q1Column, Q3Column, MaxColumn]
|
||||||
[DotTraceDiagnoser]
|
[DotTraceDiagnoser]
|
||||||
public class Bench
|
public class Bench
|
||||||
|
|||||||
@@ -44,4 +44,13 @@ public record struct SimulationState
|
|||||||
ActionCount = 0;
|
ActionCount = 0;
|
||||||
ActionStates = new();
|
ActionStates = new();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if IS_DETERMINISTIC
|
||||||
|
public override readonly string ToString()
|
||||||
|
{
|
||||||
|
var b = new System.Text.StringBuilder();
|
||||||
|
PrintMembers(b);
|
||||||
|
return Convert.ToHexString(System.Security.Cryptography.SHA256.HashData(System.Text.Encoding.UTF8.GetBytes(b.ToString())));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
using Craftimizer.Simulator.Actions;
|
|
||||||
using Craftimizer.Simulator;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
namespace Craftimizer.Solver;
|
namespace Craftimizer.Solver;
|
||||||
@@ -71,4 +69,4 @@ public readonly record struct SolverConfig
|
|||||||
FurcatedActionCount = Environment.ProcessorCount / 2,
|
FurcatedActionCount = Environment.ProcessorCount / 2,
|
||||||
Algorithm = SolverAlgorithm.StepwiseForked
|
Algorithm = SolverAlgorithm.StepwiseForked
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user