Advent-of-Code-Aggregator/benchmark
Felix Van der Jeugt 279a47175f
update submodules
2020-12-12 00:49:29 +01:00

20 lines
344 B
Bash
Executable file

#!/bin/sh
day="$(printf '%02d' "$1")"
part="$2"
inputfile="../inputs/$day-input"
[ -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