aboutsummaryrefslogtreecommitdiff
path: root/benchmark/bench.sh
blob: 839515ae40328ec76cc1b218e181015fcd882f0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

BENCHBIN="benchmark/run"
BENCHDIR="benchmark/results"
CUBEOBJ="cube.o"

cc -std=c99 -pthread -O3 -o $BENCHBIN benchmark/bench.c $CUBEOBJ || exit 1;

d="$(date +'%Y-%m-%d-%H-%M-%S')" 
mkdir -p "$BENCHDIR"
$BENCHBIN | tee "$BENCHDIR/results-$d.txt" "$BENCHDIR/results.txt"

echo ""
echo "Results saved to $BENCHDIR/results.txt"

rm -rf $BENCHBIN $CUBEOBJ

Generated with cgit - Back to sebastiano.tronto.net