Skip to main content

Benchmarking

Two tools produce the numbers on the performance page. Always use release builds and record the environment.

Core benchmarks: axiom-perf​

cargo build --release --workspace --bins
target/release/axiom-perf --iterations 30 # table
target/release/axiom-perf --iterations 30 --json # machine-readable
target/release/axiom-perf --rust-analyzer # also start the real rust-analyzer

It generates a deterministic sample workspace (500 small Rust/TypeScript files in 20 directories, 100 KB, 900 KB and 2 MB files, a 1 MB text file, excluded build directories) in a temporary directory and measures: session + workspace open, file open by size and language, typing/backspace/undo per keystroke (including the share spent re-parsing), typing that produces invalid code, the per-frame work of drawing 60 lines of another document, caret movement, language-service activation, and process-tree memory at several points.

Desktop measurements​

axiom --perf-startup FILE # time to first built UI and first presented frame, then exit
axiom --perf-idle-memory 30 FILE # process-tree memory after 30 s, then exit
axiom --perf-typing 300 FILE # type 300 chars (one per frame), report UI pass and frame CPU

Output is one JSON line per metric. Headless machines can use xvfb-run -a -s "-screen 0 1440x900x24".

Rules​

  • Report hardware, OS, build mode, renderer, sample count, warm or cold, and which language servers ran.
  • Report medians and p95 (and max for latency); a single number hides variance.
  • Compare before and after on the same machine in the same session.
  • Never estimate a number you did not measure. If a target is missed, publish the measurement and open a ticket.
  • Memory figures include child processes. Prefer PSS on Linux; RSS double-counts shared libraries.