diff options
Diffstat (limited to 'benchmark')
| -rw-r--r-- | benchmark/bench.c | 11 | ||||
| -rwxr-xr-x | benchmark/bench.sh | 12 |
2 files changed, 23 insertions, 0 deletions
diff --git a/benchmark/bench.c b/benchmark/bench.c new file mode 100644 index 0000000..046e965 --- /dev/null +++ b/benchmark/bench.c | |||
| @@ -0,0 +1,11 @@ | |||
| 1 | #include <stdbool.h> | ||
| 2 | #include <stdint.h> | ||
| 3 | #include <stdio.h> | ||
| 4 | |||
| 5 | #include "../src/cube.h" | ||
| 6 | |||
| 7 | int main() { | ||
| 8 | printf("Benchmarks not yet set up\n"); | ||
| 9 | |||
| 10 | return 0; | ||
| 11 | } | ||
diff --git a/benchmark/bench.sh b/benchmark/bench.sh new file mode 100755 index 0000000..288db05 --- /dev/null +++ b/benchmark/bench.sh | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | BENCHBIN="benchmark/run" | ||
| 4 | BENCHOUT="benchmark/results.txt" | ||
| 5 | CUBEOBJ="cube.o" | ||
| 6 | |||
| 7 | cc -std=c99 -pthread -O3 -o $BENCHBIN benchmark/bench.c $CUBEOBJ || exit 1; | ||
| 8 | |||
| 9 | $BENCHBIN | tee $BENCHOUT | ||
| 10 | echo "Results saved to $BENCHOUT" | ||
| 11 | |||
| 12 | rm -rf $BENCHBIN $CUBEOBJ | ||
