diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-10 17:07:42 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-10 19:55:55 +0100 |
| commit | 067ba55add258ab03db328234168af66c4ad87c3 (patch) | |
| tree | f4861907117c420eed3f9c9aa967bf9f2c6a1f7e /old | |
| parent | af1399f223e3857a3d2690337e84430cdbeff16a (diff) | |
| download | nissy-core-067ba55add258ab03db328234168af66c4ad87c3.tar.gz nissy-core-067ba55add258ab03db328234168af66c4ad87c3.zip | |
Towards a definitve API
Diffstat (limited to 'old')
48 files changed, 735 insertions, 0 deletions
diff --git a/old/061_coord_eo/00_solved.in b/old/061_coord_eo/00_solved.in new file mode 100644 index 0000000..dff224d --- /dev/null +++ b/old/061_coord_eo/00_solved.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BL0 BR0 UFR0 UBL0 DFL0 DBR0 UFL0 UBR0 DFR0 DBL0 | |||
diff --git a/old/061_coord_eo/00_solved.out b/old/061_coord_eo/00_solved.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/00_solved.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/01_U.in b/old/061_coord_eo/01_U.in new file mode 100644 index 0000000..b5b36ad --- /dev/null +++ b/old/061_coord_eo/01_U.in | |||
| @@ -0,0 +1 @@ | |||
| UR0 UL0 DB0 DF0 UB0 UF0 DL0 DR0 FR0 FL0 BL0 BR0 UBR0 UFL0 DFL0 DBR0 UFR0 UBL0 DFR0 DBL0 | |||
diff --git a/old/061_coord_eo/01_U.out b/old/061_coord_eo/01_U.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/01_U.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/02_U2.in b/old/061_coord_eo/02_U2.in new file mode 100644 index 0000000..316ad57 --- /dev/null +++ b/old/061_coord_eo/02_U2.in | |||
| @@ -0,0 +1 @@ | |||
| UB0 UF0 DB0 DF0 UL0 UR0 DL0 DR0 FR0 FL0 BL0 BR0 UBL0 UFR0 DFL0 DBR0 UBR0 UFL0 DFR0 DBL0 | |||
diff --git a/old/061_coord_eo/02_U2.out b/old/061_coord_eo/02_U2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/02_U2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/03_U3.in b/old/061_coord_eo/03_U3.in new file mode 100644 index 0000000..7721ab5 --- /dev/null +++ b/old/061_coord_eo/03_U3.in | |||
| @@ -0,0 +1 @@ | |||
| UL0 UR0 DB0 DF0 UF0 UB0 DL0 DR0 FR0 FL0 BL0 BR0 UFL0 UBR0 DFL0 DBR0 UBL0 UFR0 DFR0 DBL0 | |||
diff --git a/old/061_coord_eo/03_U3.out b/old/061_coord_eo/03_U3.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/03_U3.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/04_D.in b/old/061_coord_eo/04_D.in new file mode 100644 index 0000000..cf4f816 --- /dev/null +++ b/old/061_coord_eo/04_D.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DR0 DL0 UR0 UL0 DB0 DF0 FR0 FL0 BL0 BR0 UFR0 UBL0 DBL0 DFR0 UFL0 UBR0 DFL0 DBR0 | |||
diff --git a/old/061_coord_eo/04_D.out b/old/061_coord_eo/04_D.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/04_D.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/07_R.in b/old/061_coord_eo/07_R.in new file mode 100644 index 0000000..8c8fcb3 --- /dev/null +++ b/old/061_coord_eo/07_R.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 FR0 UL0 DL0 BR0 DR0 FL0 BL0 UR0 DFR2 UBL0 DFL0 UBR2 UFL0 UFR1 DBR1 DBL0 | |||
diff --git a/old/061_coord_eo/07_R.out b/old/061_coord_eo/07_R.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/07_R.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/08_R2.in b/old/061_coord_eo/08_R2.in new file mode 100644 index 0000000..90765e2 --- /dev/null +++ b/old/061_coord_eo/08_R2.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 DR0 UL0 DL0 UR0 BR0 FL0 BL0 FR0 DBR0 UBL0 DFL0 UFR0 UFL0 DFR0 UBR0 DBL0 | |||
diff --git a/old/061_coord_eo/08_R2.out b/old/061_coord_eo/08_R2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/08_R2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/10_L.in b/old/061_coord_eo/10_L.in new file mode 100644 index 0000000..0b0565c --- /dev/null +++ b/old/061_coord_eo/10_L.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 UB0 DB0 DF0 UR0 BL0 FL0 DR0 FR0 UL0 DL0 BR0 UFR0 DBL2 UFL2 DBR0 UBL1 UBR0 DFR0 DFL1 | |||
diff --git a/old/061_coord_eo/10_L.out b/old/061_coord_eo/10_L.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/10_L.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/13_F.in b/old/061_coord_eo/13_F.in new file mode 100644 index 0000000..e805af8 --- /dev/null +++ b/old/061_coord_eo/13_F.in | |||
| @@ -0,0 +1 @@ | |||
| FL1 UB0 DB0 FR1 UR0 UL0 DL0 DR0 UF1 DF1 BL0 BR0 UFL1 UBL0 DFR1 DBR0 DFL2 UBR0 UFR2 DBL0 | |||
diff --git a/old/061_coord_eo/13_F.out b/old/061_coord_eo/13_F.out new file mode 100644 index 0000000..2c60641 --- /dev/null +++ b/old/061_coord_eo/13_F.out | |||
| @@ -0,0 +1 @@ | |||
| 388 | |||
diff --git a/old/061_coord_eo/14_F2.in b/old/061_coord_eo/14_F2.in new file mode 100644 index 0000000..8aa701f --- /dev/null +++ b/old/061_coord_eo/14_F2.in | |||
| @@ -0,0 +1 @@ | |||
| DF0 UB0 DB0 UF0 UR0 UL0 DL0 DR0 FL0 FR0 BL0 BR0 DFL0 UBL0 UFR0 DBR0 DFR0 UBR0 UFL0 DBL0 | |||
diff --git a/old/061_coord_eo/14_F2.out b/old/061_coord_eo/14_F2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/14_F2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/15_F3.in b/old/061_coord_eo/15_F3.in new file mode 100644 index 0000000..40f1260 --- /dev/null +++ b/old/061_coord_eo/15_F3.in | |||
| @@ -0,0 +1 @@ | |||
| FR1 UB0 DB0 FL1 UR0 UL0 DL0 DR0 DF1 UF1 BL0 BR0 DFR1 UBL0 UFL1 DBR0 UFR2 UBR0 DFL2 DBL0 | |||
diff --git a/old/061_coord_eo/15_F3.out b/old/061_coord_eo/15_F3.out new file mode 100644 index 0000000..2c60641 --- /dev/null +++ b/old/061_coord_eo/15_F3.out | |||
| @@ -0,0 +1 @@ | |||
| 388 | |||
diff --git a/old/061_coord_eo/16_B.in b/old/061_coord_eo/16_B.in new file mode 100644 index 0000000..f7fb13c --- /dev/null +++ b/old/061_coord_eo/16_B.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 BR1 BL1 DF0 UR0 UL0 DL0 DR0 FR0 FL0 UB1 DB1 UFR0 UBR1 DFL0 DBL1 UFL0 DBR2 DFR0 UBL2 | |||
diff --git a/old/061_coord_eo/16_B.out b/old/061_coord_eo/16_B.out new file mode 100644 index 0000000..1fd9918 --- /dev/null +++ b/old/061_coord_eo/16_B.out | |||
| @@ -0,0 +1 @@ | |||
| 1539 | |||
diff --git a/old/061_coord_eo/17_B2.in b/old/061_coord_eo/17_B2.in new file mode 100644 index 0000000..9b33e35 --- /dev/null +++ b/old/061_coord_eo/17_B2.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 DB0 UB0 DF0 UR0 UL0 DL0 DR0 FR0 FL0 BR0 BL0 UFR0 DBR0 DFL0 UBL0 UFL0 DBL0 DFR0 UBR0 | |||
diff --git a/old/061_coord_eo/17_B2.out b/old/061_coord_eo/17_B2.out new file mode 100644 index 0000000..573541a --- /dev/null +++ b/old/061_coord_eo/17_B2.out | |||
| @@ -0,0 +1 @@ | |||
| 0 | |||
diff --git a/old/061_coord_eo/18_B3.in b/old/061_coord_eo/18_B3.in new file mode 100644 index 0000000..1367517 --- /dev/null +++ b/old/061_coord_eo/18_B3.in | |||
| @@ -0,0 +1 @@ | |||
| UF0 BL1 BR1 DF0 UR0 UL0 DL0 DR0 FR0 FL0 DB1 UB1 UFR0 DBL1 DFL0 UBR1 UFL0 UBL2 DFR0 DBR2 | |||
diff --git a/old/061_coord_eo/18_B3.out b/old/061_coord_eo/18_B3.out new file mode 100644 index 0000000..1fd9918 --- /dev/null +++ b/old/061_coord_eo/18_B3.out | |||
| @@ -0,0 +1 @@ | |||
| 1539 | |||
diff --git a/old/061_coord_eo/20_scrambled.in b/old/061_coord_eo/20_scrambled.in new file mode 100644 index 0000000..274d30b --- /dev/null +++ b/old/061_coord_eo/20_scrambled.in | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | UL0 BL0 BR1 DL0 FR0 DF0 DB1 DR1 UB0 FL0 UF0 UR1 DFL0 UFR1 DBR1 UBR2 DBL2 DFR0 UFL1 UBL2 | ||
| 2 | |||
| 3 | // Scramble: U R D' L D' F L2 D L F B D2 B' L2 F U2 L2 D2 R2 L2 B' | ||
diff --git a/old/061_coord_eo/20_scrambled.out b/old/061_coord_eo/20_scrambled.out new file mode 100644 index 0000000..aa309cc --- /dev/null +++ b/old/061_coord_eo/20_scrambled.out | |||
| @@ -0,0 +1 @@ | |||
| 1122 | |||
diff --git a/old/061_coord_eo/coord_eo_tests.c b/old/061_coord_eo/coord_eo_tests.c new file mode 100644 index 0000000..30989e8 --- /dev/null +++ b/old/061_coord_eo/coord_eo_tests.c | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | #include <stdbool.h> | ||
| 2 | #include <inttypes.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | #ifdef CUBE_AVX2 | ||
| 6 | #include <immintrin.h> | ||
| 7 | #endif | ||
| 8 | |||
| 9 | #include "../../cube.h" | ||
| 10 | |||
| 11 | #define STRLENMAX 10000 | ||
| 12 | |||
| 13 | int main() { | ||
| 14 | char str[STRLENMAX]; | ||
| 15 | cube_t cube; | ||
| 16 | int16_t result; | ||
| 17 | |||
| 18 | fgets(str, STRLENMAX, stdin); | ||
| 19 | cube = readcube("H48", str); | ||
| 20 | |||
| 21 | result = coord_eo(cube); | ||
| 22 | |||
| 23 | printf("%" PRId16 "\n", result); | ||
| 24 | |||
| 25 | return 0; | ||
| 26 | } | ||
diff --git a/old/benchmark/bench.c b/old/benchmark/bench.c new file mode 100644 index 0000000..2c3358f --- /dev/null +++ b/old/benchmark/bench.c | |||
| @@ -0,0 +1,83 @@ | |||
| 1 | #include <stdbool.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | #include <stdlib.h> | ||
| 5 | #include <time.h> | ||
| 6 | |||
| 7 | #include "../cube.h" | ||
| 8 | |||
| 9 | #define MOVES 100000000 | ||
| 10 | #define TRANS 100000000 | ||
| 11 | #define COMPOSE 100000000 | ||
| 12 | #define INVERSE 100000000 | ||
| 13 | |||
| 14 | double | ||
| 15 | bench(cube_t (*run)(int64_t), int64_t n, char *name) | ||
| 16 | { | ||
| 17 | char str[1000]; | ||
| 18 | cube_t cube; | ||
| 19 | struct timespec start, end; | ||
| 20 | double tdiff, tdsec, tdnano; | ||
| 21 | |||
| 22 | printf("\n"); | ||
| 23 | fflush(stdout); | ||
| 24 | |||
| 25 | if (run == NULL) { | ||
| 26 | printf("> %s: nothing to run!\n", name); | ||
| 27 | fflush(stdout); | ||
| 28 | return -1.0; | ||
| 29 | } | ||
| 30 | |||
| 31 | printf("> %s: running benchmark...\n", name); | ||
| 32 | fflush(stdout); | ||
| 33 | clock_gettime(CLOCK_MONOTONIC, &start); | ||
| 34 | |||
| 35 | cube = run(n); | ||
| 36 | writecube("H48", cube, str); | ||
| 37 | str[3] = 0; | ||
| 38 | printf("> %s: resulting cube, first piece: %s\n", name, str); | ||
| 39 | fflush(stdout); | ||
| 40 | |||
| 41 | clock_gettime(CLOCK_MONOTONIC, &end); | ||
| 42 | tdsec = end.tv_sec - start.tv_sec; | ||
| 43 | tdnano = end.tv_nsec - start.tv_nsec; | ||
| 44 | tdiff = tdsec + 1e-9 * tdnano; | ||
| 45 | printf("> %s: %.4fs\n", name, tdiff); | ||
| 46 | fflush(stdout); | ||
| 47 | |||
| 48 | return tdiff; | ||
| 49 | } | ||
| 50 | |||
| 51 | int main() { | ||
| 52 | double tmoves, ttrans, tcompose, tinverse; | ||
| 53 | |||
| 54 | printf( | ||
| 55 | "Benchmarks settings:\n" | ||
| 56 | "MOVES:\t%d\nTRANS:\t%d\nCOMPOSE:\t%d\nINVERSE:\t%d\n", | ||
| 57 | MOVES, TRANS, COMPOSE, INVERSE | ||
| 58 | ); | ||
| 59 | fflush(stdout); | ||
| 60 | |||
| 61 | srand(time(NULL)); | ||
| 62 | |||
| 63 | tmoves = bench(run_moves, MOVES, "moves"); | ||
| 64 | ttrans = bench(run_trans, TRANS, "trans"); | ||
| 65 | tcompose = bench(run_compose, COMPOSE, "compose"); | ||
| 66 | tinverse = bench(run_inverse, INVERSE, "inverse"); | ||
| 67 | |||
| 68 | printf( | ||
| 69 | "\nBenchmark summary:\n" | ||
| 70 | "moves: %d moves in %.4fs (%.4f MTPS)\n" | ||
| 71 | "trans: %d transformations in %.4fs (%.4f MTPS)\n" | ||
| 72 | "compose: %d compositions in %.4fs (%.4f MCPS)\n" | ||
| 73 | "inverse: %d inverses in %.4fs (%.4f MIPS)\n" | ||
| 74 | "Total time: %.4f\n", | ||
| 75 | MOVES, tmoves, MOVES / (1e6 * tmoves), | ||
| 76 | TRANS, ttrans, TRANS / (1e6 * ttrans), | ||
| 77 | COMPOSE, tcompose, COMPOSE / (1e6 * tcompose), | ||
| 78 | INVERSE, tinverse, INVERSE / (1e6 * tinverse), | ||
| 79 | tmoves + ttrans + tcompose + tinverse | ||
| 80 | ); | ||
| 81 | |||
| 82 | return 0; | ||
| 83 | } | ||
diff --git a/old/benchmark/bench.sh b/old/benchmark/bench.sh new file mode 100755 index 0000000..cc31c1e --- /dev/null +++ b/old/benchmark/bench.sh | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | CC="cc -std=c99 -O3 -D$CUBETYPE" | ||
| 4 | if [ "$CUBETYPE" = "CUBE_AVX2" ]; then | ||
| 5 | CC="$CC -mavx2" | ||
| 6 | fi | ||
| 7 | |||
| 8 | BENCHBIN="benchmark/run" | ||
| 9 | BENCHDIR="benchmark/results" | ||
| 10 | CUBEOBJ="cube.o" | ||
| 11 | |||
| 12 | $CC -D_POSIX_C_SOURCE=199309L -o $BENCHBIN benchmark/bench.c $CUBEOBJ || exit 1 | ||
| 13 | |||
| 14 | d="$(date +'%Y-%m-%d-%H-%M-%S')" | ||
| 15 | mkdir -p "$BENCHDIR" | ||
| 16 | $BENCHBIN | tee "$BENCHDIR/results-$d.txt" "$BENCHDIR/results.txt" | ||
| 17 | |||
| 18 | echo "" | ||
| 19 | echo "Results saved to $BENCHDIR/results.txt" | ||
| 20 | |||
| 21 | rm -rf $BENCHBIN $CUBEOBJ | ||
diff --git a/old/benchmark/cube-bench.c b/old/benchmark/cube-bench.c new file mode 100644 index 0000000..26d12a4 --- /dev/null +++ b/old/benchmark/cube-bench.c | |||
| @@ -0,0 +1,147 @@ | |||
| 1 | /****************************************************************************** | ||
| 2 | Section: benchmarks | ||
| 3 | |||
| 4 | Here you can find some simple functions that can be used to benchmark the | ||
| 5 | rest of the code. | ||
| 6 | ******************************************************************************/ | ||
| 7 | |||
| 8 | #define RANDOMCUBES 157 | ||
| 9 | |||
| 10 | static void | ||
| 11 | setup_randomcubes(cube_fast_t *cubes) | ||
| 12 | { | ||
| 13 | int i; | ||
| 14 | |||
| 15 | for (i = 0; i < RANDOMCUBES; i++) | ||
| 16 | cubes[i] = run_moves(i*4); | ||
| 17 | } | ||
| 18 | |||
| 19 | cube_t | ||
| 20 | run_moves(int64_t n) | ||
| 21 | { | ||
| 22 | cube_fast_t fast; | ||
| 23 | int64_t m, i; | ||
| 24 | |||
| 25 | fast = solvedcube(); | ||
| 26 | m = n / 18; | ||
| 27 | |||
| 28 | for (i = 0; i < m; i++) { | ||
| 29 | fast = _move_U(fast); | ||
| 30 | fast = _move_U2(fast); | ||
| 31 | fast = _move_U3(fast); | ||
| 32 | fast = _move_D(fast); | ||
| 33 | fast = _move_D2(fast); | ||
| 34 | fast = _move_D3(fast); | ||
| 35 | fast = _move_R(fast); | ||
| 36 | fast = _move_R2(fast); | ||
| 37 | fast = _move_R3(fast); | ||
| 38 | fast = _move_L(fast); | ||
| 39 | fast = _move_L2(fast); | ||
| 40 | fast = _move_L3(fast); | ||
| 41 | fast = _move_F(fast); | ||
| 42 | fast = _move_F2(fast); | ||
| 43 | fast = _move_F3(fast); | ||
| 44 | fast = _move_B(fast); | ||
| 45 | fast = _move_B2(fast); | ||
| 46 | fast = _move_B3(fast); | ||
| 47 | } | ||
| 48 | |||
| 49 | for (i = m * 18; i < n; i++) | ||
| 50 | fast = _move_F(fast); | ||
| 51 | |||
| 52 | return fast; | ||
| 53 | } | ||
| 54 | |||
| 55 | cube_t | ||
| 56 | run_trans(int64_t n) | ||
| 57 | { | ||
| 58 | cube_fast_t fast; | ||
| 59 | int64_t m, i; | ||
| 60 | |||
| 61 | fast = run_moves(33); | ||
| 62 | m = n / 18; | ||
| 63 | |||
| 64 | for (i = 0; i < m; i++) { | ||
| 65 | fast = _trans_UFr(fast); | ||
| 66 | fast = _trans_ULr(fast); | ||
| 67 | fast = _trans_UBr(fast); | ||
| 68 | fast = _trans_URr(fast); | ||
| 69 | fast = _trans_DFr(fast); | ||
| 70 | fast = _trans_DLr(fast); | ||
| 71 | fast = _trans_DBr(fast); | ||
| 72 | fast = _trans_DRr(fast); | ||
| 73 | fast = _trans_RUr(fast); | ||
| 74 | fast = _trans_RFr(fast); | ||
| 75 | fast = _trans_RDr(fast); | ||
| 76 | fast = _trans_RBr(fast); | ||
| 77 | fast = _trans_LUr(fast); | ||
| 78 | fast = _trans_LFr(fast); | ||
| 79 | fast = _trans_LDr(fast); | ||
| 80 | fast = _trans_LBr(fast); | ||
| 81 | fast = _trans_FUr(fast); | ||
| 82 | fast = _trans_FRr(fast); | ||
| 83 | fast = _trans_FDr(fast); | ||
| 84 | fast = _trans_FLr(fast); | ||
| 85 | fast = _trans_BUr(fast); | ||
| 86 | fast = _trans_BRr(fast); | ||
| 87 | fast = _trans_BDr(fast); | ||
| 88 | fast = _trans_BLr(fast); | ||
| 89 | fast = _trans_UFm(fast); | ||
| 90 | fast = _trans_ULm(fast); | ||
| 91 | fast = _trans_UBm(fast); | ||
| 92 | fast = _trans_URm(fast); | ||
| 93 | fast = _trans_DFm(fast); | ||
| 94 | fast = _trans_DLm(fast); | ||
| 95 | fast = _trans_DBm(fast); | ||
| 96 | fast = _trans_DRm(fast); | ||
| 97 | fast = _trans_RUm(fast); | ||
| 98 | fast = _trans_RFm(fast); | ||
| 99 | fast = _trans_RDm(fast); | ||
| 100 | fast = _trans_RBm(fast); | ||
| 101 | fast = _trans_LUm(fast); | ||
| 102 | fast = _trans_LFm(fast); | ||
| 103 | fast = _trans_LDm(fast); | ||
| 104 | fast = _trans_LBm(fast); | ||
| 105 | fast = _trans_FUm(fast); | ||
| 106 | fast = _trans_FRm(fast); | ||
| 107 | fast = _trans_FDm(fast); | ||
| 108 | fast = _trans_FLm(fast); | ||
| 109 | fast = _trans_BUm(fast); | ||
| 110 | fast = _trans_BRm(fast); | ||
| 111 | fast = _trans_BDm(fast); | ||
| 112 | fast = _trans_BLm(fast); | ||
| 113 | } | ||
| 114 | |||
| 115 | for (i = m * 18; i < n; i++) | ||
| 116 | fast = _trans_FRm(fast); | ||
| 117 | |||
| 118 | return fast; | ||
| 119 | } | ||
| 120 | |||
| 121 | cube_t | ||
| 122 | run_compose(int64_t n) | ||
| 123 | { | ||
| 124 | cube_fast_t fast, cubes[RANDOMCUBES]; | ||
| 125 | int64_t i; | ||
| 126 | |||
| 127 | setup_randomcubes(cubes); | ||
| 128 | |||
| 129 | for (i = 0; i < n; i++) | ||
| 130 | fast = compose_fast(fast, cubes[i % RANDOMCUBES]); | ||
| 131 | |||
| 132 | return fast; | ||
| 133 | } | ||
| 134 | |||
| 135 | cube_t | ||
| 136 | run_inverse(int64_t n) | ||
| 137 | { | ||
| 138 | cube_fast_t fast, cubes[RANDOMCUBES]; | ||
| 139 | int64_t i; | ||
| 140 | |||
| 141 | setup_randomcubes(cubes); | ||
| 142 | |||
| 143 | for (i = 0; i < n; i++) | ||
| 144 | fast = inverse_fast(cubes[i % RANDOMCUBES]); | ||
| 145 | |||
| 146 | return fast; | ||
| 147 | } | ||
diff --git a/old/benchmark/results/results-2023-10-31-18-54-37.txt b/old/benchmark/results/results-2023-10-31-18-54-37.txt new file mode 100644 index 0000000..c0f84e5 --- /dev/null +++ b/old/benchmark/results/results-2023-10-31-18-54-37.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UR0 | ||
| 10 | > moves: 3.5626s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 9.9028s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 2.9944s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DB0 | ||
| 25 | > inv: 2.6475s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 3.5626s (28.0697 MTPS) | ||
| 29 | trans: 100000000 trans in 9.9028s (10.0981 MTPS) | ||
| 30 | comp: 100000000 comps in 2.9944s (33.3956 MCPS) | ||
| 31 | inv: 100000000 invs in 2.6475s (37.7714 MIPS) | ||
| 32 | Total time: 19.1073 | ||
diff --git a/old/benchmark/results/results-2023-10-31-19-13-49.txt b/old/benchmark/results/results-2023-10-31-19-13-49.txt new file mode 100644 index 0000000..b0716f1 --- /dev/null +++ b/old/benchmark/results/results-2023-10-31-19-13-49.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UF0 | ||
| 10 | > moves: 3.5096s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 9.8367s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 2.9693s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: FL0 | ||
| 25 | > inv: 2.6227s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 3.5096s (28.4930 MTPS) | ||
| 29 | trans: 100000000 trans in 9.8367s (10.1660 MTPS) | ||
| 30 | comp: 100000000 comps in 2.9693s (33.6784 MCPS) | ||
| 31 | inv: 100000000 invs in 2.6227s (38.1283 MIPS) | ||
| 32 | Total time: 18.9383 | ||
diff --git a/old/benchmark/results/results-2023-11-01-20-55-21.txt b/old/benchmark/results/results-2023-11-01-20-55-21.txt new file mode 100644 index 0000000..adf1fd8 --- /dev/null +++ b/old/benchmark/results/results-2023-11-01-20-55-21.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: BL1 | ||
| 10 | > moves: 3.6556s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 7.5844s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 3.0103s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DL0 | ||
| 25 | > inv: 2.6601s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 3.6556s (27.3556 MTPS) | ||
| 29 | trans: 100000000 trans in 7.5844s (13.1850 MTPS) | ||
| 30 | comp: 100000000 comps in 3.0103s (33.2191 MCPS) | ||
| 31 | inv: 100000000 invs in 2.6601s (37.5929 MIPS) | ||
| 32 | Total time: 16.9103 | ||
diff --git a/old/benchmark/results/results-2023-11-03-23-08-50.txt b/old/benchmark/results/results-2023-11-03-23-08-50.txt new file mode 100644 index 0000000..12e2aa6 --- /dev/null +++ b/old/benchmark/results/results-2023-11-03-23-08-50.txt | |||
| @@ -0,0 +1,18 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: ERR | ||
| 10 | > moves: 6.6791s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: ERR | ||
| 15 | > trans: 6.6844s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
diff --git a/old/benchmark/results/results-2023-11-03-23-10-40.txt b/old/benchmark/results/results-2023-11-03-23-10-40.txt new file mode 100644 index 0000000..5be1c1f --- /dev/null +++ b/old/benchmark/results/results-2023-11-03-23-10-40.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: BL1 | ||
| 10 | > moves: 1.6354s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: ERR | ||
| 15 | > trans: 1.9863s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 0.3505s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DL1 | ||
| 25 | > inv: 0.7249s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.6354s (61.1463 MTPS) | ||
| 29 | trans: 100000000 trans in 1.9863s (50.3458 MTPS) | ||
| 30 | comp: 100000000 comps in 0.3505s (285.3105 MCPS) | ||
| 31 | inv: 100000000 invs in 0.7249s (137.9488 MIPS) | ||
| 32 | Total time: 4.6971 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-22-43.txt b/old/benchmark/results/results-2023-11-04-10-22-43.txt new file mode 100644 index 0000000..7a2c483 --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-22-43.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UF0 | ||
| 10 | > moves: 1.3535s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6526s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UR0 | ||
| 20 | > comp: 0.2848s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DF0 | ||
| 25 | > inv: 0.6598s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3535s (73.8828 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6526s (60.5112 MTPS) | ||
| 30 | comp: 100000000 comps in 0.2848s (351.1409 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6598s (151.5679 MIPS) | ||
| 32 | Total time: 3.9506 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-23-11.txt b/old/benchmark/results/results-2023-11-04-10-23-11.txt new file mode 100644 index 0000000..f3a60de --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-23-11.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UL1 | ||
| 10 | > moves: 1.3463s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6303s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 0.2881s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: UF0 | ||
| 25 | > inv: 0.6853s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3463s (74.2803 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6303s (61.3400 MTPS) | ||
| 30 | comp: 100000000 comps in 0.2881s (347.0564 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6853s (145.9211 MIPS) | ||
| 32 | Total time: 3.9499 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-23-43.txt b/old/benchmark/results/results-2023-11-04-10-23-43.txt new file mode 100644 index 0000000..e1f557c --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-23-43.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UF0 | ||
| 10 | > moves: 1.3434s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6439s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UR1 | ||
| 20 | > comp: 0.2872s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DF0 | ||
| 25 | > inv: 0.6646s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3434s (74.4399 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6439s (60.8320 MTPS) | ||
| 30 | comp: 100000000 comps in 0.2872s (348.1848 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6646s (150.4726 MIPS) | ||
| 32 | Total time: 3.9390 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-24-08.txt b/old/benchmark/results/results-2023-11-04-10-24-08.txt new file mode 100644 index 0000000..46eb403 --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-24-08.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UF0 | ||
| 10 | > moves: 1.3330s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6094s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 0.2827s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: BL0 | ||
| 25 | > inv: 0.6527s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3330s (75.0200 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6094s (62.1335 MTPS) | ||
| 30 | comp: 100000000 comps in 0.2827s (353.7582 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6527s (153.2026 MIPS) | ||
| 32 | Total time: 3.8778 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-52-05.txt b/old/benchmark/results/results-2023-11-04-10-52-05.txt new file mode 100644 index 0000000..597eddf --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-52-05.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UL0 | ||
| 10 | > moves: 3.6559s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 7.9072s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: BL1 | ||
| 20 | > comp: 3.3698s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: FL1 | ||
| 25 | > inv: 2.6933s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 3.6559s (27.3528 MTPS) | ||
| 29 | trans: 100000000 trans in 7.9072s (12.6467 MTPS) | ||
| 30 | comp: 100000000 comps in 3.3698s (29.6755 MCPS) | ||
| 31 | inv: 100000000 invs in 2.6933s (37.1296 MIPS) | ||
| 32 | Total time: 17.6262 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-53-06.txt b/old/benchmark/results/results-2023-11-04-10-53-06.txt new file mode 100644 index 0000000..8543d81 --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-53-06.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UR1 | ||
| 10 | > moves: 1.3554s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6302s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 0.2880s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: DR1 | ||
| 25 | > inv: 0.6567s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3554s (73.7816 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6302s (61.3423 MTPS) | ||
| 30 | comp: 100000000 comps in 0.2880s (347.2758 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6567s (152.2870 MIPS) | ||
| 32 | Total time: 3.9302 | ||
diff --git a/old/benchmark/results/results-2023-11-04-10-57-46.txt b/old/benchmark/results/results-2023-11-04-10-57-46.txt new file mode 100644 index 0000000..1ad4579 --- /dev/null +++ b/old/benchmark/results/results-2023-11-04-10-57-46.txt | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMP: 100000000 | ||
| 5 | INV: 100000000 | ||
| 6 | |||
| 7 | > moves: setting up benchmark... | ||
| 8 | > moves: running benchmark... | ||
| 9 | > moves: resulting cube, first piece: UL0 | ||
| 10 | > moves: 1.3518s | ||
| 11 | |||
| 12 | > trans: setting up benchmark... | ||
| 13 | > trans: running benchmark... | ||
| 14 | > trans: resulting cube, first piece: UF0 | ||
| 15 | > trans: 1.6350s | ||
| 16 | |||
| 17 | > comp: setting up benchmark... | ||
| 18 | > comp: running benchmark... | ||
| 19 | > comp: resulting cube, first piece: UF0 | ||
| 20 | > comp: 0.3039s | ||
| 21 | |||
| 22 | > inv: setting up benchmark... | ||
| 23 | > inv: running benchmark... | ||
| 24 | > comp: resulting cube, first piece: UR1 | ||
| 25 | > inv: 0.6681s | ||
| 26 | |||
| 27 | Benchmark summary: | ||
| 28 | moves: 100000000 moves in 1.3518s (73.9734 MTPS) | ||
| 29 | trans: 100000000 trans in 1.6350s (61.1621 MTPS) | ||
| 30 | comp: 100000000 comps in 0.3039s (329.0593 MCPS) | ||
| 31 | inv: 100000000 invs in 0.6681s (149.6737 MIPS) | ||
| 32 | Total time: 3.9589 | ||
diff --git a/old/benchmark/results/results-2023-11-10-15-49-45.txt b/old/benchmark/results/results-2023-11-10-15-49-45.txt new file mode 100644 index 0000000..6c64bc8 --- /dev/null +++ b/old/benchmark/results/results-2023-11-10-15-49-45.txt | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMPOSE: 100000000 | ||
| 5 | INVERSE: 100000000 | ||
| 6 | |||
| 7 | > moves: running benchmark... | ||
| 8 | > moves: resulting cube, first piece: UB0 | ||
| 9 | > moves: 0.0097s | ||
| 10 | |||
| 11 | > trans: running benchmark... | ||
| 12 | > trans: resulting cube, first piece: DB0 | ||
| 13 | > trans: 20.1464s | ||
| 14 | |||
| 15 | > compose: running benchmark... | ||
| 16 | > compose: resulting cube, first piece: ERR | ||
| 17 | > compose: 3.7322s | ||
| 18 | |||
| 19 | > inverse: running benchmark... | ||
| 20 | > inverse: resulting cube, first piece: DB0 | ||
| 21 | > inverse: 2.1003s | ||
| 22 | |||
| 23 | Benchmark summary: | ||
| 24 | moves: 100000000 moves in 0.0097s (10259.5134 MTPS) | ||
| 25 | trans: 100000000 transformations in 20.1464s (4.9637 MTPS) | ||
| 26 | compose: 100000000 compositions in 3.7322s (26.7940 MCPS) | ||
| 27 | inverse: 100000000 inverses in 2.1003s (47.6116 MIPS) | ||
| 28 | Total time: 25.9886 | ||
diff --git a/old/benchmark/results/results.txt b/old/benchmark/results/results.txt new file mode 100644 index 0000000..6c64bc8 --- /dev/null +++ b/old/benchmark/results/results.txt | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | Benchmarks settings: | ||
| 2 | MOVES: 100000000 | ||
| 3 | TRANS: 100000000 | ||
| 4 | COMPOSE: 100000000 | ||
| 5 | INVERSE: 100000000 | ||
| 6 | |||
| 7 | > moves: running benchmark... | ||
| 8 | > moves: resulting cube, first piece: UB0 | ||
| 9 | > moves: 0.0097s | ||
| 10 | |||
| 11 | > trans: running benchmark... | ||
| 12 | > trans: resulting cube, first piece: DB0 | ||
| 13 | > trans: 20.1464s | ||
| 14 | |||
| 15 | > compose: running benchmark... | ||
| 16 | > compose: resulting cube, first piece: ERR | ||
| 17 | > compose: 3.7322s | ||
| 18 | |||
| 19 | > inverse: running benchmark... | ||
| 20 | > inverse: resulting cube, first piece: DB0 | ||
| 21 | > inverse: 2.1003s | ||
| 22 | |||
| 23 | Benchmark summary: | ||
| 24 | moves: 100000000 moves in 0.0097s (10259.5134 MTPS) | ||
| 25 | trans: 100000000 transformations in 20.1464s (4.9637 MTPS) | ||
| 26 | compose: 100000000 compositions in 3.7322s (26.7940 MCPS) | ||
| 27 | inverse: 100000000 inverses in 2.1003s (47.6116 MIPS) | ||
| 28 | Total time: 25.9886 | ||
