Advent-of-Code-Aggregator/benchmark
2020-12-03 17:59:49 +01:00

10 lines
217 B
Bash
Executable file

#!/bin/sh
day="$(printf '%02d' "$1")"
part="$2"
inputfile="../inputs/$day-input"
[ -x "prepare" ] || exit 0
[ -x "run" ] || exit 0
./prepare "$day" "$part" "$inputfile"
hyperfine "./run '$day' '$part' '$inputfile'"