diff --git a/benchmark b/benchmark index 7050750..8b06e97 100755 --- a/benchmark +++ b/benchmark @@ -4,11 +4,16 @@ 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 +[ -x "run" ] || exit 0 + hyperfine "./run '$day' '$part' '$inputfile'" + +if [ -x "clean" ]; then + ./clean +fi