aboutsummaryrefslogtreecommitdiff
path: root/old/benchmark
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-10 17:07:42 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-10 19:55:55 +0100
commit067ba55add258ab03db328234168af66c4ad87c3 (patch)
treef4861907117c420eed3f9c9aa967bf9f2c6a1f7e /old/benchmark
parentaf1399f223e3857a3d2690337e84430cdbeff16a (diff)
downloadnissy-core-067ba55add258ab03db328234168af66c4ad87c3.tar.gz
nissy-core-067ba55add258ab03db328234168af66c4ad87c3.zip
Towards a definitve API
Diffstat (limited to 'old/benchmark')
-rw-r--r--old/benchmark/bench.c83
-rwxr-xr-xold/benchmark/bench.sh21
-rw-r--r--old/benchmark/cube-bench.c147
-rw-r--r--old/benchmark/results/results-2023-10-31-18-54-37.txt32
-rw-r--r--old/benchmark/results/results-2023-10-31-19-13-49.txt32
-rw-r--r--old/benchmark/results/results-2023-11-01-20-55-21.txt32
-rw-r--r--old/benchmark/results/results-2023-11-03-23-08-50.txt18
-rw-r--r--old/benchmark/results/results-2023-11-03-23-10-40.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-22-43.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-23-11.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-23-43.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-24-08.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-52-05.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-53-06.txt32
-rw-r--r--old/benchmark/results/results-2023-11-04-10-57-46.txt32
-rw-r--r--old/benchmark/results/results-2023-11-10-15-49-45.txt28
-rw-r--r--old/benchmark/results/results.txt28
17 files changed, 677 insertions, 0 deletions
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
14double
15bench(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
51int 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
3CC="cc -std=c99 -O3 -D$CUBETYPE"
4if [ "$CUBETYPE" = "CUBE_AVX2" ]; then
5 CC="$CC -mavx2"
6fi
7
8BENCHBIN="benchmark/run"
9BENCHDIR="benchmark/results"
10CUBEOBJ="cube.o"
11
12$CC -D_POSIX_C_SOURCE=199309L -o $BENCHBIN benchmark/bench.c $CUBEOBJ || exit 1
13
14d="$(date +'%Y-%m-%d-%H-%M-%S')"
15mkdir -p "$BENCHDIR"
16$BENCHBIN | tee "$BENCHDIR/results-$d.txt" "$BENCHDIR/results.txt"
17
18echo ""
19echo "Results saved to $BENCHDIR/results.txt"
20
21rm -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/******************************************************************************
2Section: benchmarks
3
4Here you can find some simple functions that can be used to benchmark the
5rest of the code.
6******************************************************************************/
7
8#define RANDOMCUBES 157
9
10static void
11setup_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
19cube_t
20run_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
55cube_t
56run_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
121cube_t
122run_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
135cube_t
136run_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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 3.5626s (28.0697 MTPS)
29trans: 100000000 trans in 9.9028s (10.0981 MTPS)
30comp: 100000000 comps in 2.9944s (33.3956 MCPS)
31inv: 100000000 invs in 2.6475s (37.7714 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 3.5096s (28.4930 MTPS)
29trans: 100000000 trans in 9.8367s (10.1660 MTPS)
30comp: 100000000 comps in 2.9693s (33.6784 MCPS)
31inv: 100000000 invs in 2.6227s (38.1283 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 3.6556s (27.3556 MTPS)
29trans: 100000000 trans in 7.5844s (13.1850 MTPS)
30comp: 100000000 comps in 3.0103s (33.2191 MCPS)
31inv: 100000000 invs in 2.6601s (37.5929 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.6354s (61.1463 MTPS)
29trans: 100000000 trans in 1.9863s (50.3458 MTPS)
30comp: 100000000 comps in 0.3505s (285.3105 MCPS)
31inv: 100000000 invs in 0.7249s (137.9488 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3535s (73.8828 MTPS)
29trans: 100000000 trans in 1.6526s (60.5112 MTPS)
30comp: 100000000 comps in 0.2848s (351.1409 MCPS)
31inv: 100000000 invs in 0.6598s (151.5679 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3463s (74.2803 MTPS)
29trans: 100000000 trans in 1.6303s (61.3400 MTPS)
30comp: 100000000 comps in 0.2881s (347.0564 MCPS)
31inv: 100000000 invs in 0.6853s (145.9211 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3434s (74.4399 MTPS)
29trans: 100000000 trans in 1.6439s (60.8320 MTPS)
30comp: 100000000 comps in 0.2872s (348.1848 MCPS)
31inv: 100000000 invs in 0.6646s (150.4726 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3330s (75.0200 MTPS)
29trans: 100000000 trans in 1.6094s (62.1335 MTPS)
30comp: 100000000 comps in 0.2827s (353.7582 MCPS)
31inv: 100000000 invs in 0.6527s (153.2026 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 3.6559s (27.3528 MTPS)
29trans: 100000000 trans in 7.9072s (12.6467 MTPS)
30comp: 100000000 comps in 3.3698s (29.6755 MCPS)
31inv: 100000000 invs in 2.6933s (37.1296 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3554s (73.7816 MTPS)
29trans: 100000000 trans in 1.6302s (61.3423 MTPS)
30comp: 100000000 comps in 0.2880s (347.2758 MCPS)
31inv: 100000000 invs in 0.6567s (152.2870 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMP: 100000000
5INV: 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
27Benchmark summary:
28moves: 100000000 moves in 1.3518s (73.9734 MTPS)
29trans: 100000000 trans in 1.6350s (61.1621 MTPS)
30comp: 100000000 comps in 0.3039s (329.0593 MCPS)
31inv: 100000000 invs in 0.6681s (149.6737 MIPS)
32Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMPOSE: 100000000
5INVERSE: 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
23Benchmark summary:
24moves: 100000000 moves in 0.0097s (10259.5134 MTPS)
25trans: 100000000 transformations in 20.1464s (4.9637 MTPS)
26compose: 100000000 compositions in 3.7322s (26.7940 MCPS)
27inverse: 100000000 inverses in 2.1003s (47.6116 MIPS)
28Total 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 @@
1Benchmarks settings:
2MOVES: 100000000
3TRANS: 100000000
4COMPOSE: 100000000
5INVERSE: 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
23Benchmark summary:
24moves: 100000000 moves in 0.0097s (10259.5134 MTPS)
25trans: 100000000 transformations in 20.1464s (4.9637 MTPS)
26compose: 100000000 compositions in 3.7322s (26.7940 MCPS)
27inverse: 100000000 inverses in 2.1003s (47.6116 MIPS)
28Total time: 25.9886

Generated with cgit - Back to sebastiano.tronto.net