#!/bin/bash # Speed, alone (no other process of this session), PyPy, at the final code commit. cd /data/emu/sega32x-python || exit 1 F=reference/m4/final/speed; B=/data/emu/images/x55/bios; PY=.venv-pypy/bin/python git rev-parse --short HEAD > $F/at.txt uptime > $F/load-start.txt for job in "testpico reference/build/testpico/hardware/testpico-30a5783.bin 110" \ "mars reference/m3/mars.32x 320" "240p reference/m3/240p.32x 200"; do set -- $job { /usr/bin/time -f "%e s wall, %U s user" $PY scripts/run_32x.py $2 --bios-dir $B \ --frames $3 --out $F/$1 --report-every 10 > $F/$1.log 2>&1 ; } 2> $F/$1.time uptime >> $F/load-between.txt done for round in 1 2; do { /usr/bin/time -f "%e s wall, %U s user" $PY scripts/run_32x.py reference/m3/240p.32x --bios-dir $B --frames 200 --out $F/ab-with --report-every 50 > $F/ab-with.log 2>&1 ; } 2>> $F/ab-with.time { /usr/bin/time -f "%e s wall, %U s user" $PY $F/nopicture.py reference/m3/240p.32x --bios-dir $B --frames 200 --out $F/ab-without --report-every 50 > $F/ab-without.log 2>&1 ; } 2>> $F/ab-without.time done uptime > $F/load-end.txt echo done > $F/done.txt