aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/benchmarks.md
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2026-11-22 17:09:58 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2026-11-22 17:09:58 +0100
commitd0f311a6dc9478de5202f861d7b4502c266c9005 (patch)
tree0babe7724d7641ab25277e60099bf347214d64fa /benchmarks/benchmarks.md
parent8e3088997f43fb02d9b657f7e9d32ddd44d7d940 (diff)
downloadnissy-core-d0f311a6dc9478de5202f861d7b4502c266c9005.tar.gz
nissy-core-d0f311a6dc9478de5202f861d7b4502c266c9005.zip
Update benchmarks and commentbenchmark-egg
Diffstat (limited to 'benchmarks/benchmarks.md')
-rw-r--r--benchmarks/benchmarks.md125
1 files changed, 75 insertions, 50 deletions
diff --git a/benchmarks/benchmarks.md b/benchmarks/benchmarks.md
index 4f36cac..d6ec328 100644
--- a/benchmarks/benchmarks.md
+++ b/benchmarks/benchmarks.md
@@ -4,16 +4,16 @@ This page contains some benchmarks for some of the possible
4configurations of the H48 optimal solver. For comparison we also 4configurations of the H48 optimal solver. For comparison we also
5include similar measurements for two other optimal solvers: 5include similar measurements for two other optimal solvers:
6 6
7* Andrew Skalski's [vcube](https://github.com/Voltara/vcube), which 7* Andrew Skalski's [vcube](https://github.com/Voltara/vcube) (commit
8 is a truly impressive implementation of Tomas Rokicki's 8 9f5bc2c), which is a truly impressive implementation of Tomas Rokicki's
9 [nxopt](https://github.com/rokicki/cube20src/blob/master/nxopt.md) 9 [nxopt](https://github.com/rokicki/cube20src/blob/master/nxopt.md)
10 that has been taken as a reference throughout the development of H48. 10 that has been taken as a reference throughout the development of H48.
11 This solver also uses an A* search, but the search is supported 11 This solver also uses an A* search, but the search is supported
12 by different pruning tables. 12 by different pruning tables.
13* Arhan Chaudhary's 13* Arhan Chaudhary's
14 [egg-solver](https://github.com/ArhanChaudhary/egg-solver), which 14 [egg-solver](https://github.com/ArhanChaudhary/egg-solver) (commit
15 is an AI-generated implementation of the H48 method with 15 c3eb909), which is an AI-generated implementation of the H48 method
16 highly-optimized microthreading. 16 with highly-optimized microthreading.
17 17
18Similar benchmarks can be found: 18Similar benchmarks can be found:
19 19
@@ -25,7 +25,7 @@ Similar benchmarks can be found:
25* In Enrico Tenuti's [thesis](https://github.com/enricotenuti/h48thesis), 25* In Enrico Tenuti's [thesis](https://github.com/enricotenuti/h48thesis),
26 also using an old implementation of H48, but including more data and 26 also using an old implementation of H48, but including more data and
27 nice plots. 27 nice plots.
28* In [the documentation page](https://egg-solver/arhan.sh/docs/index.html) 28* In [the documentation page](https://egg-solver.arhan.sh/docs/index.html)
29 for egg-solver. 29 for egg-solver.
30 30
31## Setting 31## Setting
@@ -85,21 +85,21 @@ Time per cube (in seconds, lower is better).
85|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 85|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
86|:-----|:---|-------:|-------:|-------:|-------:|--------:| 86|:-----|:---|-------:|-------:|-------:|-------:|--------:|
87|vcube 212 |58.2 GiB| 0.11| 0.75| 3.43| 27.28| 19.30| 87|vcube 212 |58.2 GiB| 0.11| 0.75| 3.43| 27.28| 19.30|
88|egg h11 |58.0 GiB| 0.01| 0.06| 0.24| 2.16| 0.14| 88|egg h11 |58.0 GiB| 0.01| 0.06| 0.24| 2.14| 0.14|
89|H48 h11 |56.5 GiB| 0.08| 0.43| 1.86| 12.20| 15.39| 89|H48 h11 |56.5 GiB| 0.08| 0.43| 1.86| 12.20| 15.39|
90|vcube 404 |31.8 GiB| 0.23| 1.24| 6.10| 59.33| 268.26| 90|vcube 404 |31.8 GiB| 0.23| 1.24| 6.10| 59.33| 268.26|
91|egg h10 |29.0 GiB| 0.02| 0.10| 0.47| 4.00| 0.23| 91|egg h10 |29.0 GiB| 0.02| 0.10| 0.46| 3.96| 0.24|
92|H48 h10 |28.3 GiB| 0.13| 0.69| 3.37| 23.15| 38.00| 92|H48 h10 |28.3 GiB| 0.13| 0.69| 3.37| 23.15| 38.00|
93|vcube 308 |21.2 GiB| 0.17| 1.02| 6.20| 58.70| 604.35| 93|vcube 308 |21.2 GiB| 0.17| 1.02| 6.20| 58.70| 604.35|
94|egg h9 |14.5 GiB| 0.03| 0.19| 0.91| | | 94|egg h9 |14.5 GiB| 0.03| 0.21| 0.98| | |
95|H48 h9 |14.1 GiB| 0.22| 1.43| 6.56| | | 95|H48 h9 |14.1 GiB| 0.22| 1.43| 6.56| | |
96|vcube 208 | 7.3 GiB| 0.56| 4.36| 20.58| | | 96|vcube 208 | 7.3 GiB| 0.56| 4.36| 20.58| | |
97|egg h8 | 7.2 GiB| 0.07| 0.39| 1.82| | | 97|egg h8 | 7.2 GiB| 0.06| 0.36| 1.69| | |
98|H48 h8 | 7.1 GiB| 0.46| 3.43| 14.18| | | 98|H48 h8 | 7.1 GiB| 0.46| 3.43| 14.18| | |
99|egg h7 | 3.6 GiB| 0.11| 0.81| 4.35| | | 99|egg h7 | 3.6 GiB| 0.10| 0.74| 3.88| | |
100|H48 h7 | 3.5 GiB| 0.63| 4.84| 23.31| | | 100|H48 h7 | 3.5 GiB| 0.63| 4.84| 23.31| | |
101|vcube 112 | 2.4 GiB| 0.96| 9.29| 40.52| | | 101|vcube 112 | 2.4 GiB| 0.96| 9.29| 40.52| | |
102|egg h6 | 1.8 GiB| 0.20| 1.53| 8.19| | | 102|egg h6 | 1.8 GiB| 0.21| 1.60| 8.62| | |
103|H48 h6 | 1.8 GiB| 1.26| 9.51| 47.14| | | 103|H48 h6 | 1.8 GiB| 1.26| 9.51| 47.14| | |
104 104
105Time per cube adjusted for table size (in seconds \* GiB, lower is better). 105Time per cube adjusted for table size (in seconds \* GiB, lower is better).
@@ -107,21 +107,21 @@ Time per cube adjusted for table size (in seconds \* GiB, lower is better).
107|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 107|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
108|:-----|:---|-------:|-------:|-------:|-------:|--------:| 108|:-----|:---|-------:|-------:|-------:|-------:|--------:|
109|vcube 212 |58.2 GiB| 6.43| 43.80| 199.38| 1587.43| 1122.73| 109|vcube 212 |58.2 GiB| 6.43| 43.80| 199.38| 1587.43| 1122.73|
110|egg h11 |58.0 GiB| 0.55| 3.31| 13.99| 125.17| 8.04| 110|egg h11 |58.0 GiB| 0.55| 3.32| 13.97| 124.06| 7.93|
111|H48 h11 |56.5 GiB| 4.56| 24.55| 104.96| 689.22| 869.37| 111|H48 h11 |56.5 GiB| 4.56| 24.55| 104.96| 689.22| 869.37|
112|vcube 404 |31.8 GiB| 7.40| 39.47| 194.01| 1887.94| 8535.87| 112|vcube 404 |31.8 GiB| 7.40| 39.47| 194.01| 1887.94| 8535.87|
113|egg h10 |29.0 GiB| 0.50| 2.90| 13.69| 115.88| 6.80| 113|egg h10 |29.0 GiB| 0.48| 2.85| 13.48| 114.83| 7.08|
114|H48 h10 |28.3 GiB| 3.62| 19.45| 95.15| 654.05| 1073.69| 114|H48 h10 |28.3 GiB| 3.62| 19.45| 95.15| 654.05| 1073.69|
115|vcube 308 |21.2 GiB| 3.51| 21.71| 131.50| 1245.26| 12819.94| 115|vcube 308 |21.2 GiB| 3.51| 21.71| 131.50| 1245.26| 12819.94|
116|egg h9 |14.5 GiB| 0.47| 2.74| 13.19| | | 116|egg h9 |14.5 GiB| 0.50| 3.00| 14.22| | |
117|H48 h9 |14.1 GiB| 3.11| 20.18| 92.68| | | 117|H48 h9 |14.1 GiB| 3.11| 20.18| 92.68| | |
118|vcube 208 | 7.3 GiB| 4.08| 31.74| 149.68| | | 118|vcube 208 | 7.3 GiB| 4.08| 31.74| 149.68| | |
119|egg h8 | 7.2 GiB| 0.48| 2.82| 13.16| | | 119|egg h8 | 7.2 GiB| 0.45| 2.63| 12.27| | |
120|H48 h8 | 7.1 GiB| 3.23| 24.26| 100.15| | | 120|H48 h8 | 7.1 GiB| 3.23| 24.26| 100.15| | |
121|egg h7 | 3.6 GiB| 0.39| 2.94| 15.77| | | 121|egg h7 | 3.6 GiB| 0.36| 2.69| 14.05| | |
122|H48 h7 | 3.5 GiB| 2.22| 17.12| 82.35| | | 122|H48 h7 | 3.5 GiB| 2.22| 17.12| 82.35| | |
123|vcube 112 | 2.4 GiB| 2.33| 22.53| 98.23| | | 123|vcube 112 | 2.4 GiB| 2.33| 22.53| 98.23| | |
124|egg h6 | 1.8 GiB| 0.36| 2.76| 14.83| | | 124|egg h6 | 1.8 GiB| 0.37| 2.89| 15.62| | |
125|H48 h6 | 1.8 GiB| 2.24| 16.80| 83.33| | | 125|H48 h6 | 1.8 GiB| 2.24| 16.80| 83.33| | |
126 126
127<img src="img/17moves1thread.png"> 127<img src="img/17moves1thread.png">
@@ -131,9 +131,10 @@ Time per cube adjusted for table size (in seconds \* GiB, lower is better).
131</details> 131</details>
132 132
133As we can see, egg-solver is the clear winner, consistently beating H48 by 133As we can see, egg-solver is the clear winner, consistently beating H48 by
134factors of 5.3x-8.8x for 17-19 moves scrambles, comparing tables of similar 134factors of 5x-9x for all sets of scrambles, comparing tables of similar
135size. Moreover, egg-solver is more than 100 times faster when solving the 135size. Moreover, egg-solver is more than 100 times faster when solving the
136superflip configuration. 136superflip configuration, likely due to better expoitation of symmetries,
137including inverse positions.
137 138
138Adjusting for table size, H48 is generally faster than vcube. The gap between 139Adjusting for table size, H48 is generally faster than vcube. The gap between
139the two solvers is larger for scrambles with longer optimal solutions. 140the two solvers is larger for scrambles with longer optimal solutions.
@@ -144,8 +145,9 @@ The same benchmark as before is repeated using 4 and 16 threads (recall
144that the CPU used for these tests has 8 physical cores and 16 virtual 145that the CPU used for these tests has 8 physical cores and 16 virtual
145threads). 146threads).
146 147
147For the reasons mentioned above, we will only compare H48 and egg-solver 148For the reasons mentioned above, in this section we will only compare H48
148in this section. 149and egg-solver; for the latter with enable per-cube parallelization using
150the `-c 1` option.
149 151
150<!-- The following details block can be found in benchmarks/tables_4_threads.md --> 152<!-- The following details block can be found in benchmarks/tables_4_threads.md -->
151<details><summary>Results: Single solution, 4 threads</summary> 153<details><summary>Results: Single solution, 4 threads</summary>
@@ -156,32 +158,32 @@ Time per cube (in seconds, lower is better).
156|:-----|:---|-------:|-------:|-------:|-------:|--------:| 158|:-----|:---|-------:|-------:|-------:|-------:|--------:|
157|egg h11 |58.0 GiB| 0.00| 0.01| 0.06| 0.55| 0.03| 159|egg h11 |58.0 GiB| 0.00| 0.01| 0.06| 0.55| 0.03|
158|H48 h11 |56.5 GiB| 0.03| 0.13| 0.50| 3.24| 4.17| 160|H48 h11 |56.5 GiB| 0.03| 0.13| 0.50| 3.24| 4.17|
159|egg h10 |29.0 GiB| 0.00| 0.03| 0.12| 1.05| 0.09| 161|egg h10 |29.0 GiB| 0.00| 0.02| 0.12| 1.02| 0.09|
160|H48 h10 |28.3 GiB| 0.05| 0.18| 0.90| 6.21| 9.85| 162|H48 h10 |28.3 GiB| 0.05| 0.18| 0.90| 6.21| 9.85|
161|egg h9 |14.5 GiB| 0.01| 0.05| 0.23| | | 163|egg h9 |14.5 GiB| 0.01| 0.05| 0.25| | |
162|H48 h9 |14.1 GiB| 0.07| 0.39| 1.73| 12.50| 18.97| 164|H48 h9 |14.1 GiB| 0.07| 0.39| 1.73| 12.50| 18.97|
163|egg h8 | 7.2 GiB| 0.02| 0.10| 0.48| | | 165|egg h8 | 7.2 GiB| 0.02| 0.09| 0.43| | |
164|H48 h8 | 7.1 GiB| 0.13| 0.91| 3.71| | | 166|H48 h8 | 7.1 GiB| 0.13| 0.91| 3.71| | |
165|egg h7 | 3.6 GiB| 0.03| 0.21| 1.11| | | 167|egg h7 | 3.6 GiB| 0.03| 0.19| 1.08| | |
166|H48 h7 | 3.5 GiB| 0.18| 1.29| 6.19| | | 168|H48 h7 | 3.5 GiB| 0.18| 1.29| 6.19| | |
167|egg h6 | 1.8 GiB| 0.05| 0.39| 2.11| | | 169|egg h6 | 1.8 GiB| 0.05| 0.39| 2.23| | |
168|H48 h6 | 1.8 GiB| 0.34| 2.48| 12.33| | | 170|H48 h6 | 1.8 GiB| 0.34| 2.48| 12.33| | |
169 171
170Speed-up factor (higher is better). 172Speed-up factor (higher is better).
171 173
172|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 174|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
173|:-----|:---|-------:|-------:|-------:|-------:|--------:| 175|:-----|:---|-------:|-------:|-------:|-------:|--------:|
174|egg h11 |58.0 GiB| 3.77| 3.90| 3.89| 3.93| 5.42| 176|egg h11 |58.0 GiB| 3.57| 3.85| 3.72| 3.90| 5.41|
175|H48 h11 |56.5 GiB| 2.51| 3.44| 3.75| 3.77| 3.69| 177|H48 h11 |56.5 GiB| 2.51| 3.44| 3.75| 3.77| 3.69|
176|egg h10 |29.0 GiB| 3.88| 3.77| 3.98| 3.81| 2.72| 178|egg h10 |29.0 GiB| 3.68| 4.03| 3.92| 3.89| 2.78|
177|H48 h10 |28.3 GiB| 2.79| 3.91| 3.75| 3.73| 3.86| 179|H48 h10 |28.3 GiB| 2.79| 3.91| 3.75| 3.73| 3.86|
178|egg h9 |14.5 GiB| 3.90| 3.87| 3.88| | | 180|egg h9 |14.5 GiB| 3.80| 4.20| 3.91| | |
179|H48 h9 |14.1 GiB| 3.18| 3.66| 3.79| | | 181|H48 h9 |14.1 GiB| 3.18| 3.66| 3.79| | |
180|egg h8 | 7.2 GiB| 3.87| 3.91| 3.81| | | 182|egg h8 | 7.2 GiB| 3.81| 4.01| 3.91| | |
181|H48 h8 | 7.1 GiB| 3.48| 3.78| 3.82| | | 183|H48 h8 | 7.1 GiB| 3.48| 3.78| 3.82| | |
182|egg h7 | 3.6 GiB| 3.87| 3.87| 3.93| | | 184|egg h7 | 3.6 GiB| 3.81| 3.88| 3.59| | |
183|H48 h7 | 3.5 GiB| 3.43| 3.75| 3.77| | | 185|H48 h7 | 3.5 GiB| 3.43| 3.75| 3.77| | |
184|egg h6 | 1.8 GiB| 3.98| 3.90| 3.87| | | 186|egg h6 | 1.8 GiB| 3.93| 4.09| 3.87| | |
185|H48 h6 | 1.8 GiB| 3.73| 3.84| 3.82| | | 187|H48 h6 | 1.8 GiB| 3.73| 3.84| 3.82| | |
186 188
187<img src="img/H48_4_threads_speedup_factor.png"> 189<img src="img/H48_4_threads_speedup_factor.png">
@@ -196,34 +198,34 @@ Time per cube (in seconds, lower is better).
196 198
197|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 199|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
198|:-----|:---|-------:|-------:|-------:|-------:|--------:| 200|:-----|:---|-------:|-------:|-------:|-------:|--------:|
199|egg h11 |58.0 GiB| 0.00| 0.01| 0.03| 0.27| 0.02| 201|egg h11 |58.0 GiB| 0.00| 0.01| 0.03| 0.28| 0.02|
200|H48 h11 |56.5 GiB| 0.02| 0.06| 0.21| 1.16| 1.84| 202|H48 h11 |56.5 GiB| 0.02| 0.06| 0.21| 1.16| 1.84|
201|egg h10 |29.0 GiB| 0.00| 0.02| 0.09| 0.77| 0.04| 203|egg h10 |29.0 GiB| 0.00| 0.01| 0.06| 0.50| 0.03|
202|H48 h10 |28.3 GiB| 0.03| 0.08| 0.34| 2.24| 4.21| 204|H48 h10 |28.3 GiB| 0.03| 0.08| 0.34| 2.24| 4.21|
203|egg h9 |14.5 GiB| 0.01| 0.04| 0.17| | | 205|egg h9 |14.5 GiB| 0.00| 0.02| 0.11| | |
204|H48 h9 |14.1 GiB| 0.03| 0.14| 0.64| 4.43| 8.04| 206|H48 h9 |14.1 GiB| 0.03| 0.14| 0.64| 4.43| 8.04|
205|egg h8 | 7.2 GiB| 0.01| 0.07| 0.33| | | 207|egg h8 | 7.2 GiB| 0.01| 0.04| 0.21| | |
206|H48 h8 | 7.1 GiB| 0.06| 0.30| 1.36| | | 208|H48 h8 | 7.1 GiB| 0.06| 0.30| 1.36| | |
207|egg h7 | 3.6 GiB| 0.02| 0.15| 0.79| | | 209|egg h7 | 3.6 GiB| 0.01| 0.09| 0.53| | |
208|H48 h7 | 3.5 GiB| 0.08| 0.41| 2.20| | | 210|H48 h7 | 3.5 GiB| 0.08| 0.41| 2.20| | |
209|egg h6 | 1.8 GiB| 0.04| 0.28| 1.53| | | 211|egg h6 | 1.8 GiB| 0.02| 0.18| 0.97| | |
210|H48 h6 | 1.8 GiB| 0.13| 0.77| 4.37| | | 212|H48 h6 | 1.8 GiB| 0.13| 0.77| 4.37| | |
211 213
212Speed-up factor (higher is better). 214Speed-up factor (higher is better).
213 215
214|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 216|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
215|:-----|:---|-------:|-------:|-------:|-------:|--------:| 217|:-----|:---|-------:|-------:|-------:|-------:|--------:|
216|egg h11 |58.0 GiB| 5.56| 8.03| 8.00| 8.05| 8.45| 218|egg h11 |58.0 GiB| 6.27| 7.35| 7.59| 7.76| 7.61|
217|H48 h11 |56.5 GiB| 3.73| 7.32| 8.87| 10.54| 8.35| 219|H48 h11 |56.5 GiB| 3.73| 7.32| 8.87| 10.54| 8.35|
218|egg h10 |29.0 GiB| 5.63| 5.58| 5.53| 5.18| 6.05| 220|egg h10 |29.0 GiB| 6.86| 8.10| 8.02| 7.92| 7.13|
219|H48 h10 |28.3 GiB| 4.76| 8.60| 9.84| 10.34| 9.03| 221|H48 h10 |28.3 GiB| 4.76| 8.60| 9.84| 10.34| 9.03|
220|egg h9 |14.5 GiB| 5.46| 5.32| 5.35| | | 222|egg h9 |14.5 GiB| 7.84| 9.10| 8.56| | |
221|H48 h9 |14.1 GiB| 6.34| 10.07| 10.19| | | 223|H48 h9 |14.1 GiB| 6.34| 10.07| 10.19| | |
222|egg h8 | 7.2 GiB| 5.49| 5.50| 5.53| | | 224|egg h8 | 7.2 GiB| 7.71| 8.36| 8.04| | |
223|H48 h8 | 7.1 GiB| 7.51| 11.36| 10.43| | | 225|H48 h8 | 7.1 GiB| 7.51| 11.36| 10.43| | |
224|egg h7 | 3.6 GiB| 5.33| 5.38| 5.48| | | 226|egg h7 | 3.6 GiB| 8.00| 8.15| 7.32| | |
225|H48 h7 | 3.5 GiB| 8.21| 11.75| 10.61| | | 227|H48 h7 | 3.5 GiB| 8.21| 11.75| 10.61| | |
226|egg h6 | 1.8 GiB| 5.51| 5.42| 5.35| | | 228|egg h6 | 1.8 GiB| 8.62| 8.96| 8.89| | |
227|H48 h6 | 1.8 GiB| 9.38| 12.31| 10.80| | | 229|H48 h6 | 1.8 GiB| 9.38| 12.31| 10.80| | |
228 230
229<img src="img/H48_16_threads_speedup_factor.png"> 231<img src="img/H48_16_threads_speedup_factor.png">
@@ -237,15 +239,17 @@ getting close to the 4x theoretical maximum speedup in slower cases
237speedup for the superflip, likely due to single-scramble variance, i.e. 239speedup for the superflip, likely due to single-scramble variance, i.e.
238the thread that found the solution stopped earlier. 240the thread that found the solution stopped earlier.
239 241
240In the 16 threads benchmark shows that, although the virtual threads 242The 16 threads benchmark shows that, although the virtual threads help
241help push H48 beyond the 8x theoretical speedup that would be provided 243push H48 beyond the 8x theoretical speedup that would be provided by the
242by the 8 cores, it is nowhere near a 16x speedup. egg-solver seems 2448 cores, it is nowhere near a 16x speedup. Moreover, egg-solver does not
243stuck around 5.5x speedup. 245seem to take advantage of the CPU's hyperthreading, likely because its
246own custom micro-threading is based on the same principle and it saturates
247any possible speedup that hyperthreading could provide.
244 248
245### All solutions 249### All solutions
246 250
247Finally, we ran a test on finding *all* optimal solutions which, as 251Finally, we ran a test on finding *all* optimal solutions which, as
248far as I know, is a use case not supported by vcube or egg-solver. 252far as I know, is a use case only supported by H48 and egg-solver.
249For convenience, this test is only run on 16 threads. 253For convenience, this test is only run on 16 threads.
250 254
251<!-- The following details block can be found in benchmarks/tables_all_solutions.md --> 255<!-- The following details block can be found in benchmarks/tables_all_solutions.md -->
@@ -255,26 +259,46 @@ Time per cube (in seconds, lower is better).
255 259
256|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 260|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
257|:-----|:---|-------:|-------:|-------:|-------:|--------:| 261|:-----|:---|-------:|-------:|-------:|-------:|--------:|
262|egg h11 |58.0 GiB| 0.00| 0.05| 0.54| 5.08| 15.38|
258|H48 h11 |56.5 GiB| 0.04| 0.24| 1.88| 3.88| 1.86| 263|H48 h11 |56.5 GiB| 0.04| 0.24| 1.88| 3.88| 1.86|
264|egg h10 |29.0 GiB| 0.01| 0.09| 1.00| 9.42| 31.05|
259|H48 h10 |28.3 GiB| 0.05| 0.39| 3.51| 7.54| 4.29| 265|H48 h10 |28.3 GiB| 0.05| 0.39| 3.51| 7.54| 4.29|
266|egg h9 |14.5 GiB| 0.01| 0.17| 1.97| | |
260|H48 h9 |14.1 GiB| 0.08| 0.73| 6.92| | | 267|H48 h9 |14.1 GiB| 0.08| 0.73| 6.92| | |
268|egg h8 | 7.2 GiB| 0.03| 0.31| 3.49| | |
261|H48 h8 | 7.1 GiB| 0.16| 1.54| 14.78| | | 269|H48 h8 | 7.1 GiB| 0.16| 1.54| 14.78| | |
270|egg h7 | 3.6 GiB| 0.04| 0.57| 6.38| | |
262|H48 h7 | 3.5 GiB| 0.22| 2.37| 25.35| | | 271|H48 h7 | 3.5 GiB| 0.22| 2.37| 25.35| | |
272|egg h6 | 1.8 GiB| 0.10| 1.27| 14.93| | |
263|H48 h6 | 1.8 GiB| 0.40| 4.58| 50.17| | | 273|H48 h6 | 1.8 GiB| 0.40| 4.58| 50.17| | |
264 274
265Time per cube adjusted for table size (in seconds \* GiB, lower is better). 275Time per cube adjusted for table size (in seconds \* GiB, lower is better).
266 276
267|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip| 277|Solver|Size|17 moves|18 moves|19 moves|20 moves|Superflip|
268|:-----|:---|-------:|-------:|-------:|-------:|--------:| 278|:-----|:---|-------:|-------:|-------:|-------:|--------:|
279|egg h11 |58.0 GiB| 0.25| 2.88| 31.12| 294.67| 892.07|
269|H48 h11 |56.5 GiB| 2.00| 13.40| 106.21| 219.43| 105.10| 280|H48 h11 |56.5 GiB| 2.00| 13.40| 106.21| 219.43| 105.10|
281|egg h10 |29.0 GiB| 0.22| 2.58| 28.89| 273.08| 900.34|
270|H48 h10 |28.3 GiB| 1.45| 11.13| 99.17| 212.94| 121.20| 282|H48 h10 |28.3 GiB| 1.45| 11.13| 99.17| 212.94| 121.20|
283|egg h9 |14.5 GiB| 0.21| 2.51| 28.49| | |
271|H48 h9 |14.1 GiB| 1.13| 10.25| 97.80| | | 284|H48 h9 |14.1 GiB| 1.13| 10.25| 97.80| | |
285|egg h8 | 7.2 GiB| 0.18| 2.25| 25.30| | |
272|H48 h8 | 7.1 GiB| 1.10| 10.85| 104.41| | | 286|H48 h8 | 7.1 GiB| 1.10| 10.85| 104.41| | |
287|egg h7 | 3.6 GiB| 0.16| 2.05| 23.11| | |
273|H48 h7 | 3.5 GiB| 0.79| 8.38| 89.57| | | 288|H48 h7 | 3.5 GiB| 0.79| 8.38| 89.57| | |
289|egg h6 | 1.8 GiB| 0.18| 2.29| 27.06| | |
274|H48 h6 | 1.8 GiB| 0.71| 8.10| 88.68| | | 290|H48 h6 | 1.8 GiB| 0.71| 8.10| 88.68| | |
275 291
292<img src="img/17movesallsolutions16threads.png">
293<img src="img/18movesallsolutions16threads.png">
294<img src="img/19movesallsolutions16threads.png">
295<img src="img/20movesallsolutions16threads.png">
296
276</details> 297</details>
277 298
299For all-solutions egg-solver's advantage reduces to 3x-4x, and for
30020 moves scrambles it appears to be even slower than H48.
301
278## Other notes 302## Other notes
279 303
280* To repeat the benchmarks for H48, use `./benchmarks/run-h48-benchmarks.sh`. 304* To repeat the benchmarks for H48, use `./benchmarks/run-h48-benchmarks.sh`.
@@ -291,6 +315,7 @@ Time per cube adjusted for table size (in seconds \* GiB, lower is better).
291 them. Both apporaches have pros and cons: vcube's approch has less 315 them. Both apporaches have pros and cons: vcube's approch has less
292 overhead in coordination between the threads, but often some threads 316 overhead in coordination between the threads, but often some threads
293 may be left without work when there are no more cubes left to solve. 317 may be left without work when there are no more cubes left to solve.
318 egg-solver supports both modes via the `-c` option.
294* Per-cube parallelization means that H48 will always be faster than 319* Per-cube parallelization means that H48 will always be faster than
295 vcube when solving a single cube. 320 vcube when solving a single cube.
296* vcube only supports x86 processors (Intel, AMD), while H48 runs on any 321* vcube only supports x86 processors (Intel, AMD), while H48 runs on any

Generated with cgit - Back to sebastiano.tronto.net