Advent-of-Code-Aggregator/benchmark

20 lines
335 B
Text
Raw Normal View History

2020-12-03 17:59:49 +01:00
#!/bin/sh
day="$(printf '%02d' "$1")"
part="$2"
inputfile="../inputs/$day-input"
[ -x "prepare" ] || exit 0
2020-12-04 17:07:30 +01:00
if ! ./prepare "$day" "$part" "$inputfile"; then
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
exit
fi
[ -x "run" ] || exit 0
2020-12-03 17:59:49 +01:00
hyperfine "./run '$day' '$part' '$inputfile'"
if [ -x "clean" ]; then
./clean
fi