aboutsummaryrefslogtreecommitdiffstats
path: root/.auto/measure.sh
blob: 49b16bc2ea84ce3e5d458208bd5a5f1489253e8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
# ida-tui performance benchmark driver.
#
# Fast pre-checks first (a syntax error should cost a second, not a worker boot
# and two database opens), then the real bench.
set -euo pipefail
cd "$(dirname "$0")/.."

PY="${IDATUI_PYTHON:-$HOME/ida-venv/bin/python}"

# ~0.4s: catches a syntax error / bad import before we pay for idalib.
python3 -m compileall -q idatui server tests .auto/bench.py >/dev/null

exec "$PY" .auto/bench.py "$@"