Benchmark .NET 8.0, as well

This commit is contained in:
Asriel Camora
2023-11-10 18:58:34 -08:00
parent 036cbb2fb4
commit bddc977cd8
4 changed files with 16 additions and 5 deletions
+9
View File
@@ -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
}