Advent-of-Code-Aggregator/2021/benchmark

21 lines
352 B
Plaintext
Raw Normal View History

2020-12-03 16:59:49 +00:00
#!/bin/sh
day="$(printf '%02d' ${1##0})"
2020-12-03 16:59:49 +00:00
part="$2"
inputfile="$PWD/../inputs/${day}.txt"
2020-12-03 16:59:49 +00:00
[ -x "prepare" ] || exit 0
2020-12-04 16:07:30 +00:00
if ! ./prepare "$day" "$part" "$inputfile"; then
echo 'eh ge hebt precies niet alles geïnstalleerd staan'
2020-12-10 20:21:46 +00:00
else
if [ -x "run" ]; then
hyperfine "./run '$day' '$part' '$inputfile'"
fi
2020-12-04 16:07:30 +00:00
fi
if [ -x "clean" ]; then
./clean
fi
2020-12-11 23:49:29 +00:00
true