Advent-of-Code-Aggregator/benchmark
2020-12-04 17:07:30 +01:00

14 lines
297 B
Bash
Executable file

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