# Performance baselines Startup, idle and bundle-size numbers that the performance work in [#3924](https://github.com/debpalash/VoiceStudio/issues/3924) is judged against. Each change that claims a speed-up quotes a before/after from the same harness on the same machine. Earlier one-off measurements (first-launch slowness, per-import memory, model warm-up memory) are in [perf/baseline.md](perf/baseline.md). ## How to measure `scripts/bench/` is offline and touches nothing of the user's: it downloads nothing, loads no model, and runs every backend on a throwaway data dir with the model caches, the env file and analytics redirected into it. Outbound HTTP from the backend goes to a dead local proxy, the Electron app runs on a throwaway profile with the updater off, and every non-local renderer request is aborted. ```bash bun install --frozen-lockfile && bun run --cwd electron build # for bundle and app .venv/bin/python scripts/bench/bench.py # everything, 5 runs .venv/bin/python scripts/bench/bench.py --only backend,imports --runs 3 .venv/bin/python scripts/bench/bench.py --only app \ --app /Applications/VoiceStudio.app/Contents/MacOS/VoiceStudio # an installed build node scripts/bench/bundle.mjs # bundle sizes only ``` Results go to `bench-results/