Add versions, local Kuroko to benchmark

This commit is contained in:
K. Lange 2022-05-05 08:23:40 +09:00
parent 246316ad59
commit f8139f9352

View File

@ -148,11 +148,13 @@ stress-test:
$(MAKE) TESTWRAPPER='valgrind' test $(MAKE) TESTWRAPPER='valgrind' test
bench: bench:
@echo "Kuroko:" @echo "Kuroko: ($$(./kuroko --version))"
@for i in bench/*.krk; do ./kuroko "$$i"; done @for i in bench/*.krk; do ./kuroko "$$i"; done
@echo "CPython:" @echo "Kuroko ($$(kuroko --version)):"
@for i in bench/*.krk; do kuroko "$$i"; done
@echo "CPython ($$(python3 --version))"
@for i in bench/*.py; do python3 "$$i"; done @for i in bench/*.py; do python3 "$$i"; done
@echo "Micropython:" @echo "Micropython ($$(micropython -c 'import sys; print(sys.version)'))"
@for i in bench/*.py; do micropython -X heapsize=128M "$$i"; done @for i in bench/*.py; do micropython -X heapsize=128M "$$i"; done
# Really should be up to you to set, not us... # Really should be up to you to set, not us...