retroforth/benchmarks/nga-python.sh
crc e61c0364df benchmarks: add a simple choose benchmark (#26)
FossilOrigin-Name: a0cac831c406f978982a1a9af3eebe038c04be485e1c72ed834f3538b4def8d5
2020-12-18 20:18:13 +00:00

18 lines
360 B
Bash
Executable file

#!/bin/sh
cd ..
retro tools/amalgamate-python.retro >benchmarks/retro.py
cd benchmarks
cp ../ngaImage .
echo Python3
time python3 retro.py times.retro
time python3 retro.py push-drop.retro
time python3 retro.py choose.retro
echo PyPy
time pypy retro.py times.retro
time pypy retro.py push-drop.retro
time pypy retro.py choose.retro
rm -f retro.py ngaImage