Benchmark .NET 8.0, as well
This commit is contained in:
@@ -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: |
|
||||
|
||||
+3
-1
@@ -1,11 +1,13 @@
|
||||
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.Net80)]
|
||||
[MinColumn, Q1Column, Q3Column, MaxColumn]
|
||||
[DotTraceDiagnoser]
|
||||
public class Bench
|
||||
|
||||
@@ -44,4 +44,13 @@ public record struct SimulationState
|
||||
ActionCount = 0;
|
||||
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;
|
||||
|
||||
namespace Craftimizer.Solver;
|
||||
|
||||
Reference in New Issue
Block a user