mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
deterministic benchmark
This commit is contained in:
parent
54883e5787
commit
0c194e0e46
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user