Advent-of-Code-Aggregator/2021/benchmark
Felix Van der Jeugt b10de59f31
no octal numbers
2021-12-09 22:46:48 +01:00

20 lines
352 B
Bash
Executable file

#!/bin/sh
day="$1"
part="$2"
inputfile="$PWD/../inputs/$(printf '%02d' "${day##0}").txt"
[ -x "prepare" ] || exit 0
if ! ./prepare "$day" "$part" "$inputfile"; then
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
else
if [ -x "run" ]; then
hyperfine "./run '$day' '$part' '$inputfile'"
fi
fi
if [ -x "clean" ]; then
./clean
fi
true