deterministic benchmark

This commit is contained in:
mischa 2023-07-24 18:57:05 +08:00
parent 54883e5787
commit 0c194e0e46

View File

@ -34,6 +34,9 @@ public static Bounds MinMax(float min, float max) =>
[TestCase(10_000, 64, 8)]
public void Benchmark(int iterations, int insertions, int limit)
{
// always use the same seed so we get the same test.
Random.InitState(0);
// repeat the test 'iterations' x times
for (int iteration = 0; iteration < iterations; ++iteration)
{