diff --git a/src/Lynx.Benchmark/TryParseFromUCIString_Benchmark.cs b/src/Lynx.Benchmark/TryParseFromUCIString_Benchmark.cs index 25f9716e2..17f418987 100644 --- a/src/Lynx.Benchmark/TryParseFromUCIString_Benchmark.cs +++ b/src/Lynx.Benchmark/TryParseFromUCIString_Benchmark.cs @@ -6,22 +6,27 @@ * [Host] : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * DefaultJob : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * - * | Method | positionCommand | Mean | Error | StdDev | Ratio | - * |------- |--------------------- |-----------:|----------:|----------:|------:| - * | Array | position startpos | 2.319 us | 0.0152 us | 0.0135 us | 1.00 | - * | Span | position startpos | 2.263 us | 0.0112 us | 0.0094 us | 0.98 | - * | | | | | | | - * | Array | posi(...)b7b6 [193] | 13.390 us | 0.0607 us | 0.0538 us | 1.00 | - * | Span | posi(...)b7b6 [193] | 10.359 us | 0.0813 us | 0.0761 us | 0.77 | - * | | | | | | | - * | Array | posi(...)f3g3 [353] | 22.144 us | 0.1809 us | 0.1692 us | 1.00 | - * | Span | posi(...)f3g3 [353] | 16.378 us | 0.0323 us | 0.0252 us | 0.74 | - * | | | | | | | - * | Array | posi(...)h3f1 [2984] | 134.685 us | 0.8669 us | 0.8109 us | 1.00 | - * | Span | posi(...)h3f1 [2984] | 87.676 us | 0.3720 us | 0.3298 us | 0.65 | - * | | | | | | | - * | Array | posi(...)g4g8 [979] | 50.230 us | 0.3931 us | 0.3677 us | 1.00 | - * | Span | posi(...)g4g8 [979] | 33.977 us | 0.2039 us | 0.1702 us | 0.68 | + * | Method | positionCommand | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Gen1 | Allocated | Alloc Ratio | + * |------- |--------------------- |-----------:|----------:|----------:|------:|--------:|-------:|-------:|----------:|------------:| + * | Array | position startpos | 2.455 us | 0.0400 us | 0.0354 us | 1.00 | 0.00 | 0.3204 | 0.0267 | 26.4 KB | 1.00 | + * | Span | position startpos | 2.370 us | 0.0387 us | 0.0362 us | 0.97 | 0.02 | 0.3204 | 0.0267 | 26.4 KB | 1.00 | + * | Memory | position startpos | 2.562 us | 0.0312 us | 0.0291 us | 1.04 | 0.02 | 0.3357 | 0.0267 | 27.45 KB | 1.04 | + * | | | | | | | | | | | | + * | Array | posi(...)b7b6 [193] | 13.653 us | 0.0590 us | 0.0552 us | 1.00 | 0.00 | 0.4425 | 0.0305 | 37.23 KB | 1.00 | + * | Span | posi(...)b7b6 [193] | 10.376 us | 0.0397 us | 0.0352 us | 0.76 | 0.00 | 0.3204 | 0.0153 | 26.4 KB | 0.71 | + * | Memory | posi(...)b7b6 [193] | 11.528 us | 0.0307 us | 0.0288 us | 0.84 | 0.00 | 0.3357 | 0.0153 | 27.45 KB | 0.74 | + * | | | | | | | | | | | | + * | Array | posi(...)f3g3 [353] | 22.541 us | 0.1237 us | 0.1157 us | 1.00 | 0.00 | 0.5493 | 0.0305 | 46.48 KB | 1.00 | + * | Span | posi(...)f3g3 [353] | 15.777 us | 0.1128 us | 0.1000 us | 0.70 | 0.01 | 0.3052 | - | 26.4 KB | 0.57 | + * | Memory | posi(...)f3g3 [353] | 15.823 us | 0.0742 us | 0.0658 us | 0.70 | 0.00 | 0.3357 | - | 27.45 KB | 0.59 | + * | | | | | | | | | | | | + * | Array | posi(...)h3f1 [2984] | 141.219 us | 0.7872 us | 0.7364 us | 1.00 | 0.00 | 1.9531 | - | 174.64 KB | 1.00 | + * | Span | posi(...)h3f1 [2984] | 87.617 us | 0.3918 us | 0.3664 us | 0.62 | 0.00 | 0.2441 | - | 26.42 KB | 0.15 | + * | Memory | posi(...)h3f1 [2984] | 85.608 us | 0.4678 us | 0.4376 us | 0.61 | 0.00 | 0.2441 | - | 27.47 KB | 0.16 | + * | | | | | | | | | | | | + * | Array | posi(...)g4g8 [979] | 50.867 us | 0.3176 us | 0.2971 us | 1.00 | 0.00 | 0.9155 | 0.0610 | 79.39 KB | 1.00 | + * | Span | posi(...)g4g8 [979] | 33.572 us | 0.2398 us | 0.2126 us | 0.66 | 0.01 | 0.3052 | - | 26.42 KB | 0.33 | + * | Memory | posi(...)g4g8 [979] | 34.014 us | 0.0978 us | 0.0816 us | 0.67 | 0.00 | 0.3052 | - | 27.47 KB | 0.35 | * * * BenchmarkDotNet v0.13.12, Windows 10 (10.0.20348.2159) (Hyper-V) @@ -30,22 +35,27 @@ * [Host] : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * DefaultJob : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * - * | Method | positionCommand | Mean | Error | StdDev | Ratio | RatioSD | - * |------- |--------------------- |-----------:|----------:|----------:|------:|--------:| - * | Array | position startpos | 1.453 us | 0.0283 us | 0.0441 us | 1.00 | 0.00 | - * | Span | position startpos | 1.387 us | 0.0202 us | 0.0189 us | 0.96 | 0.02 | - * | | | | | | | | - * | Array | posi(...)b7b6 [193] | 11.410 us | 0.0500 us | 0.0468 us | 1.00 | 0.00 | - * | Span | posi(...)b7b6 [193] | 9.423 us | 0.0429 us | 0.0401 us | 0.83 | 0.00 | - * | | | | | | | | - * | Array | posi(...)f3g3 [353] | 18.247 us | 0.1635 us | 0.1530 us | 1.00 | 0.00 | - * | Span | posi(...)f3g3 [353] | 14.975 us | 0.0424 us | 0.0396 us | 0.82 | 0.01 | - * | | | | | | | | - * | Array | posi(...)h3f1 [2984] | 127.327 us | 1.0539 us | 0.8228 us | 1.00 | 0.00 | - * | Span | posi(...)h3f1 [2984] | 79.683 us | 0.3485 us | 0.2910 us | 0.63 | 0.00 | - * | | | | | | | | - * | Array | posi(...)g4g8 [979] | 43.613 us | 0.2034 us | 0.1902 us | 1.00 | 0.00 | - * | Span | posi(...)g4g8 [979] | 31.224 us | 0.0788 us | 0.0737 us | 0.72 | 0.00 | + * | Method | positionCommand | Mean | Error | StdDev | Ratio | RatioSD | Gen0 | Gen1 | Allocated | Alloc Ratio | + * |------- |--------------------- |-----------:|----------:|----------:|------:|--------:|--------:|-------:|----------:|------------:| + * | Array | position startpos | 1.507 us | 0.0294 us | 0.0382 us | 1.00 | 0.00 | 1.6136 | 0.1450 | 26.4 KB | 1.00 | + * | Span | position startpos | 1.498 us | 0.0267 us | 0.0297 us | 1.00 | 0.03 | 1.6136 | 0.1450 | 26.4 KB | 1.00 | + * | Memory | position startpos | 1.485 us | 0.0216 us | 0.0202 us | 0.99 | 0.03 | 1.6804 | 0.1526 | 27.45 KB | 1.04 | + * | | | | | | | | | | | | + * | Array | posi(...)b7b6 [193] | 11.474 us | 0.1085 us | 0.0906 us | 1.00 | 0.00 | 2.2736 | 0.2136 | 37.23 KB | 1.00 | + * | Span | posi(...)b7b6 [193] | 9.287 us | 0.1016 us | 0.0848 us | 0.81 | 0.01 | 1.6022 | 0.1373 | 26.4 KB | 0.71 | + * | Memory | posi(...)b7b6 [193] | 9.224 us | 0.0622 us | 0.0582 us | 0.80 | 0.01 | 1.6785 | 0.1526 | 27.45 KB | 0.74 | + * | | | | | | | | | | | | + * | Array | posi(...)f3g3 [353] | 18.725 us | 0.1280 us | 0.1134 us | 1.00 | 0.00 | 2.8381 | 0.2441 | 46.48 KB | 1.00 | + * | Span | posi(...)f3g3 [353] | 13.885 us | 0.1101 us | 0.1030 us | 0.74 | 0.01 | 1.6022 | 0.1373 | 26.4 KB | 0.57 | + * | Memory | posi(...)f3g3 [353] | 14.013 us | 0.0392 us | 0.0367 us | 0.75 | 0.01 | 1.6785 | 0.1526 | 27.45 KB | 0.59 | + * | | | | | | | | | | | | + * | Array | posi(...)h3f1 [2984] | 122.097 us | 0.4894 us | 0.4578 us | 1.00 | 0.00 | 10.6201 | 0.9766 | 174.67 KB | 1.00 | + * | Span | posi(...)h3f1 [2984] | 79.757 us | 0.2419 us | 0.2145 us | 0.65 | 0.00 | 1.5869 | 0.1221 | 26.43 KB | 0.15 | + * | Memory | posi(...)h3f1 [2984] | 78.569 us | 0.3416 us | 0.3196 us | 0.64 | 0.00 | 1.5869 | 0.1221 | 27.47 KB | 0.16 | + * | | | | | | | | | | | | + * | Array | posi(...)g4g8 [979] | 46.771 us | 0.2859 us | 0.2388 us | 1.00 | 0.00 | 4.8218 | 0.4272 | 79.41 KB | 1.00 | + * | Span | posi(...)g4g8 [979] | 32.601 us | 0.1414 us | 0.1181 us | 0.70 | 0.00 | 1.5869 | 0.1221 | 26.43 KB | 0.33 | + * | Memory | posi(...)g4g8 [979] | 33.635 us | 0.1927 us | 0.1609 us | 0.72 | 0.00 | 1.6479 | 0.1221 | 27.47 KB | 0.35 | * * * BenchmarkDotNet v0.13.12, macOS Monterey 12.7.2 (21G1974) [Darwin 21.6.0] @@ -54,22 +64,27 @@ * [Host] : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * DefaultJob : .NET 8.0.0 (8.0.23.53103), X64 RyuJIT AVX2 * - * | Method | positionCommand | Mean | Error | StdDev | Median | Ratio | RatioSD | - * |------- |--------------------- |-----------:|----------:|----------:|-----------:|------:|--------:| - * | Array | position startpos | 3.046 us | 0.0605 us | 0.1461 us | 3.014 us | 1.00 | 0.00 | - * | Span | position startpos | 2.435 us | 0.0504 us | 0.1415 us | 2.389 us | 0.81 | 0.07 | - * | | | | | | | | | - * | Array | posi(...)b7b6 [193] | 20.178 us | 0.8471 us | 2.4977 us | 20.122 us | 1.00 | 0.00 | - * | Span | posi(...)b7b6 [193] | 12.911 us | 0.2695 us | 0.7860 us | 12.717 us | 0.65 | 0.09 | - * | | | | | | | | | - * | Array | posi(...)f3g3 [353] | 30.972 us | 0.6170 us | 0.9785 us | 30.953 us | 1.00 | 0.00 | - * | Span | posi(...)f3g3 [353] | 19.636 us | 0.3911 us | 0.8907 us | 19.504 us | 0.65 | 0.04 | - * | | | | | | | | | - * | Array | posi(...)h3f1 [2984] | 199.897 us | 3.9347 us | 6.1258 us | 199.718 us | 1.00 | 0.00 | - * | Span | posi(...)h3f1 [2984] | 129.359 us | 2.5684 us | 7.3278 us | 130.342 us | 0.62 | 0.03 | - * | | | | | | | | | - * | Array | posi(...)g4g8 [979] | 88.155 us | 1.7529 us | 3.3773 us | 87.987 us | 1.00 | 0.00 | - * | Span | posi(...)g4g8 [979] | 49.409 us | 1.4983 us | 4.2988 us | 49.710 us | 0.56 | 0.06 | + * | Method | positionCommand | Mean | Error | StdDev | Median | Ratio | RatioSD | Gen0 | Gen1 | Allocated | Alloc Ratio | + * |------- |--------------------- |-----------:|----------:|----------:|-----------:|------:|--------:|--------:|-------:|----------:|------------:| + * | Array | position startpos | 3.264 us | 0.1672 us | 0.4929 us | 3.240 us | 1.00 | 0.00 | 4.2992 | 0.2251 | 26.41 KB | 1.00 | + * | Span | position startpos | 3.554 us | 0.3368 us | 0.9717 us | 3.288 us | 1.12 | 0.35 | 4.2877 | 0.1984 | 26.41 KB | 1.00 | + * | Memory | position startpos | 4.048 us | 0.2852 us | 0.8363 us | 3.959 us | 1.27 | 0.34 | 4.4708 | 0.2594 | 27.46 KB | 1.04 | + * | | | | | | | | | | | | | + * | Array | posi(...)b7b6 [193] | 20.277 us | 0.5705 us | 1.6277 us | 20.053 us | 1.00 | 0.00 | 6.0425 | 0.4578 | 37.24 KB | 1.00 | + * | Span | posi(...)b7b6 [193] | 14.177 us | 0.4286 us | 1.2019 us | 13.935 us | 0.70 | 0.09 | 4.2725 | 0.3662 | 26.41 KB | 0.71 | + * | Memory | posi(...)b7b6 [193] | 14.574 us | 0.3810 us | 1.0930 us | 14.334 us | 0.72 | 0.08 | 4.4708 | 0.3357 | 27.46 KB | 0.74 | + * | | | | | | | | | | | | | + * | Array | posi(...)f3g3 [353] | 36.367 us | 1.4771 us | 4.2618 us | 36.469 us | 1.00 | 0.00 | 7.5684 | 0.6714 | 46.5 KB | 1.00 | + * | Span | posi(...)f3g3 [353] | 21.418 us | 0.7132 us | 1.9523 us | 20.880 us | 0.60 | 0.09 | 4.2725 | 0.3662 | 26.41 KB | 0.57 | + * | Memory | posi(...)f3g3 [353] | 20.732 us | 0.6461 us | 1.8643 us | 20.500 us | 0.58 | 0.10 | 4.4556 | 0.3357 | 27.46 KB | 0.59 | + * | | | | | | | | | | | | | + * | Array | posi(...)h3f1 [2984] | 209.581 us | 4.1877 us | 4.6546 us | 209.782 us | 1.00 | 0.00 | 28.3203 | 2.4414 | 174.74 KB | 1.00 | + * | Span | posi(...)h3f1 [2984] | 109.983 us | 2.0527 us | 3.8555 us | 108.617 us | 0.54 | 0.02 | 4.1504 | 0.2441 | 26.44 KB | 0.15 | + * | Memory | posi(...)h3f1 [2984] | 110.365 us | 1.9742 us | 2.8313 us | 109.601 us | 0.53 | 0.02 | 4.3945 | 0.2441 | 27.49 KB | 0.16 | + * | | | | | | | | | | | | | + * | Array | posi(...)g4g8 [979] | 71.956 us | 1.3943 us | 1.8614 us | 71.579 us | 1.00 | 0.00 | 12.9395 | 0.8545 | 79.44 KB | 1.00 | + * | Span | posi(...)g4g8 [979] | 40.538 us | 0.7434 us | 1.5843 us | 40.107 us | 0.58 | 0.03 | 4.2725 | 0.3052 | 26.44 KB | 0.33 | + * | Memory | posi(...)g4g8 [979] | 42.430 us | 0.8433 us | 1.3855 us | 42.319 us | 0.59 | 0.03 | 4.4556 | 0.3052 | 27.49 KB | 0.35 | * */