further improvements
Some checks failed
Build / build (push) Successful in 10m40s
Publish Image / publish (push) Failing after 34s
Test / build (push) Has been cancelled

This commit is contained in:
2024-04-01 17:02:44 -04:00
parent aebbe43999
commit f9e6e164b0
26 changed files with 168 additions and 138 deletions

24
compare.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
if [ $# -ne 1 ]; then
echo "Usage: $(basename "$0") <branch>"
exit 1
fi
compareWith="$1"
currentBranch="$(git branch --show-current)"
if [ -n "$(git status --porcelain)" ]; then
echo "$currentBranch is not clean, please stash or commit your changes!"
exit 1
fi
hyperfine \
-w 5 \
-c "git checkout $currentBranch" \
-p "make build" \
-p "git checkout $compareWith; make build" \
-n "$currentBranch" \
-n "$compareWith" \
'./monkey examples/fib.monkey' \
'./monkey examples/fib.monkey'