diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-22 23:34:53 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-10-22 23:43:36 +0200 |
| commit | b3622e04dfb8317b745f8c911d31dc80bc2f9d66 (patch) | |
| tree | 825e54d062667a6cb76ff36730a8e36444fa20ba /benchmark/bench.sh | |
| parent | 4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 (diff) | |
| download | nissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.tar.gz nissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.zip | |
Preparatory work for benchmarks, little fixes
Diffstat (limited to '')
| -rwxr-xr-x | benchmark/bench.sh | 12 |
1 files changed, 12 insertions, 0 deletions
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 | ||
