#!/usr/bin/env bash # Batch 3: every kept change against the one before it, both built with fat LTO and one codegen # unit (without it the codegen-unit partition moves a build by several per cent either way). cd /data/emu/pcengine-rust-fast B=external/bins; O=external/chain3; mkdir -p $O ab() { nice python3 scripts/ab.py $B/$1 $B/$2 --frames $3 --cpu $4 ${5:+--extra "$5"} > $O/$1-$2${6:-}.txt 2>&1; } ( ab L00 L01 600 31; ab L01 L02 600 31; ab L02 L03 600 31; ab L03 L04 1000 31 ab L04 L05 1000 31; ab L05 L06 1500 31; ab forkpoint L00 600 31 ) & ( ab L06 L07 600 23 "--device lockstep-port" -port; ab L07 L08 1500 23; ab L08 L10 1500 23 ab L10 L11 600 23 "--device lockstep-port" -port; ab L11 L11 1500 23 "" -aa ) & wait for f in $O/*.txt; do echo "$(basename $f .txt): $(tail -qn 1 $f)"; done