Flash0ver / F0.Minesweeper

Source of truth for a Blazor implementation of Minesweeper.
MIT License
6 stars 0 forks source link

perf: add BenchmarkDotNet #106

Closed Flash0ver closed 2 years ago

Flash0ver commented 2 years ago

closes #64

branched off build/dotnet-6.0 (see #102)

Flash0ver commented 2 years ago
Method Parameter Mean Error StdDev Min Max Median Rank Gen 0 Gen 1 Allocated
GloballyUniqueIdentifier X:10, Y:08, Mines:10 6.930 μs 0.0068 μs 0.0063 μs 6.917 μs 6.941 μs 6.928 μs 5 0.4044 - 2,560 B
RandomOrder X:10, Y:08, Mines:10 2.053 μs 0.0032 μs 0.0029 μs 2.049 μs 2.059 μs 2.052 μs 2 0.2632 - 1,664 B
FisherYates X:10, Y:08, Mines:10 1.094 μs 0.0029 μs 0.0026 μs 1.089 μs 1.098 μs 1.094 μs 1 0.1297 - 816 B
GloballyUniqueIdentifier X:18, Y:14, Mines:40 22.651 μs 0.0981 μs 0.0918 μs 22.529 μs 22.764 μs 22.640 μs 8 1.1902 - 7,616 B
RandomOrder X:18, Y:14, Mines:40 7.299 μs 0.0141 μs 0.0118 μs 7.279 μs 7.321 μs 7.302 μs 6 0.7401 - 4,656 B
FisherYates X:18, Y:14, Mines:40 3.171 μs 0.0140 μs 0.0131 μs 3.153 μs 3.195 μs 3.167 μs 3 0.3853 - 2,432 B
GloballyUniqueIdentifier X:24, Y:20, Mines:99 45.744 μs 0.1340 μs 0.1253 μs 45.628 μs 46.006 μs 45.689 μs 9 2.2583 0.0610 14,472 B
RandomOrder X:24, Y:20, Mines:99 16.187 μs 0.0710 μs 0.0665 μs 16.070 μs 16.302 μs 16.187 μs 7 1.3733 0.0305 8,776 B
FisherYates X:24, Y:20, Mines:99 6.440 μs 0.0181 μs 0.0160 μs 6.416 μs 6.479 μs 6.436 μs 4 0.7477 - 4,728 B