#!/usr/bin/env bash # SPDX-License-Identifier: MIT # Speed: this crate's `run()` (examples/speed.rs) against the reference's own measurement # (its scripts/speed.py on its PyPy venv), the same running chip, in multiples of NTSC real # time (1.79 MHz). A measurement for the boards' planning, not a gate. set -euo pipefail source "$(dirname "$0")/env.sh" require_reference (cd "$ROOT" && nice -n 19 cargo build --release -q --example speed) timeout 600 nice -n 19 "$ROOT/target/release/examples/speed" (cd "$POKEY_PYTHON" && timeout 600 nice -n 19 "$REFERENCE_PYTHON" -I scripts/speed.py)