aboutsummaryrefslogtreecommitdiff
path: root/benchmark/bench.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-22 23:34:53 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-22 23:43:36 +0200
commitb3622e04dfb8317b745f8c911d31dc80bc2f9d66 (patch)
tree825e54d062667a6cb76ff36730a8e36444fa20ba /benchmark/bench.sh
parent4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 (diff)
downloadnissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.tar.gz
nissy-core-b3622e04dfb8317b745f8c911d31dc80bc2f9d66.zip
Preparatory work for benchmarks, little fixes
Diffstat (limited to '')
-rwxr-xr-xbenchmark/bench.sh12
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
3BENCHBIN="benchmark/run"
4BENCHOUT="benchmark/results.txt"
5CUBEOBJ="cube.o"
6
7cc -std=c99 -pthread -O3 -o $BENCHBIN benchmark/bench.c $CUBEOBJ || exit 1;
8
9$BENCHBIN | tee $BENCHOUT
10echo "Results saved to $BENCHOUT"
11
12rm -rf $BENCHBIN $CUBEOBJ

Generated with cgit - Back to sebastiano.tronto.net