#!/bin/bash D=/data/emu/sega32x-python/reference/m1-gate cd /data/emu/sega32x-python R=/data/emu/roms/megadrive round=$1 [ "$round" = 1 ] && uptime > $D/speed-load-start.txt for g in "Sonic The Hedgehog (USA, Europe)" "Streets of Rage 2 (USA)" "Gunstar Heroes (USA)" "Castlevania - Bloodlines (USA)"; do for w in without with; do /usr/bin/time -f "%U %e" -o $D/t.tmp .venv-pypy/bin/python $D/speed_one.py $w "$R/$g.zip" "$D/png-$w-$round.png" 2> $D/err-$w.txt echo "$round|$w|$g|$(cat $D/t.tmp)|$(md5sum < $D/png-$w-$round.png | cut -c1-12)|$(tail -n1 $D/err-$w.txt)" >> $D/speed.txt done done [ "$round" = 3 ] && uptime > $D/speed-load-end.txt true