Performance baseline
These are the first measured numbers for the MVP. They are a baseline for regressions, not a benchmark against other editors. Methods are in benchmarking.
All measurements ran on a 4-vCPU cloud VM with no GPU: the window was rendered by Mesa's software rasterizer (llvmpipe) under Xvfb. Software rendering adds memory and CPU that a GPU driver would not, and frame presentation latency was not measured. Results on desktop hardware will differ and still need to be collected.
Environment
| Date | 2026-12-05, commit on branch claude/lucid-mendel-mgi96w |
| CPU / RAM | Intel Xeon @ 2.30 GHz, 4 vCPUs / 16 GiB |
| OS | Ubuntu 24.04, Linux 6.18 (VM) |
| Display | Xvfb 1440×900×24, Mesa llvmpipe (OpenGL, software) |
| Build | --release (thin LTO, codegen-units = 1), Rust 1.97.0 |
| Language servers | none unless stated; rust-analyzer 1.97.0 where stated |
Targets and status
| Provisional target | Measured | Status |
|---|---|---|
| Warm startup to a usable window < 1 s | 99 ms median to first presented frame (n = 10); 198 ms on the first run after dropping the page cache | Met in this environment |
| Idle memory before language servers < 150–200 MiB | 123 MiB RSS / 117 MiB PSS, one process, one file open | Met here (includes software renderer) |
| Typing within a 60 Hz frame (16.7 ms) | Frame CPU p95 ≤ 10.3 ms, max ≤ 13.3 ms on files up to 900 KB | Met for CPU time; presentation not measured |
| No language servers at launch | 0 server processes after opening a folder and files in an untrusted folder | Met (also covered by tests) |
| No unbounded background work | No indexing exists; parsing is incremental and budgeted; idle window draws 0 frames | Met |
Desktop application
Startup (--perf-startup, demo/src/main.rs, restricted folder, n = 10):
| Metric | First run (cold cache) | Warm median | Warm min |
|---|---|---|---|
| UI built | 159 ms | 71 ms | 67 ms |
| First frame presented | 198 ms | 99 ms | 93 ms |
Idle: after startup animations finish (~0.4 s) the window draws no frames until something happens, so idle CPU is zero (verified with AXIOM_DEBUG_REPAINT).
Memory (--perf-idle-memory, one Rust file open):
| Scenario | Processes | RSS | PSS |
|---|---|---|---|
| Restricted folder, 5 s idle | axiom | 123 MiB | 117 MiB |
| Trusted folder, 30 s idle | axiom | 123 MiB | 117 MiB |
| rust-analyzer | 577 MiB | 566 MiB | |
| rust-analyzer proc-macro server | 26 MiB | 15 MiB | |
| total | 726 MiB | 699 MiB |
rust-analyzer dominates as soon as semantic features are on, even for a ten-line crate (it loads the standard library). This is why servers start lazily, only in trusted folders, and stop after an idle grace period, and why the status bar shows the whole process tree.
Typing (--perf-typing 300, one keystroke per frame at the start of the file, i.e. while the code is invalid; three runs each):
| File | Frame CPU median | p95 | max |
|---|---|---|---|
| 100 KB Rust (4 118 lines) | 1.8–2.2 ms | 8.3–8.7 ms | 9.2–11.2 ms |
| 900 KB Rust (36 709 lines) | 5.3–7.4 ms | 8.9–10.3 ms | 10.7–13.3 ms |
| 100 KB Rust, before the 6 ms keystroke parse budget | 2.9–3.1 ms | 21.8–24.6 ms | 28.9–42.1 ms |
The last row is why the keystroke parse budget exists: Tree-sitter error recovery occasionally took over 20 ms.
Core (axiom-perf, n = 30)
| Scenario | Median | p95 | Max |
|---|---|---|---|
| Create session + open workspace (500-file sample) | 0.17 ms | 0.44 ms | 0.60 ms |
| Open 2 KB Rust file | 0.28 ms | 0.37 ms | 0.47 ms |
| Open 100 KB Rust / TypeScript file | 13.6 / 12.0 ms | 14.8 / 12.5 ms | 19.0 / 12.6 ms |
| Open 900 KB Rust file (full parse) | 113 ms | 146 ms | 151 ms |
| Open 2 MB file (over syntax limit, plain) | 2.6 ms | 2.7 ms | 7.8 ms |
| Open 1 MB plain text | 1.3 ms | 1.3 ms | 1.5 ms |
| Keystroke in 100 KB Rust (n = 500) | 0.21 ms | 0.23 ms | 0.54 ms |
| Keystroke in 900 KB Rust (n = 500) | 3.5 ms | 3.7 ms | 6.7 ms |
| Keystroke in 2 MB file (no syntax) | 0.002 ms | 0.002 ms | 0.05 ms |
| Spans + decorations for 60 visible lines, alternating documents (n = 210) | 0.20 ms | 0.30 ms | 0.34 ms |
| Fake language server: open document → running (n = 10) | 1.7 ms | 2.1 ms | 2.1 ms |
| rust-analyzer: open document → initialised (n = 1) | 35 ms | — | — |
Almost all of the keystroke cost is the incremental Tree-sitter reparse (0.19 of 0.21 ms at 100 KB; 3.3 of 3.5 ms at 900 KB).
Memory of the benchmark process (no UI, no renderer):
| Point | RSS | PSS |
|---|---|---|
| Before creating a session | 5.6 MiB | 4.2 MiB |
| Workspace open, no documents | 7.0 MiB | 5.7 MiB |
| + small/medium files and 1 MB text (fresh) | 19.3 MiB | 18.0 MiB |
| + one 900 KB Rust file with syntax tree | 56.1 MiB | 54.7 MiB |
| + one 2 MB file without syntax | 62.0 MiB | 60.7 MiB |
| after closing them | 56.2 MiB | 54.8 MiB |
A syntax tree costs roughly 40 bytes per source byte, which set the 1 MiB syntax limit. Closing documents frees memory to the allocator, but glibc keeps the pages, so RSS does not fall.
Findings turned into tickets
- Opening a file near the syntax limit blocks the UI for about 0.1 s (initial parse on the UI thread).
- Files over 1 MiB lose highlighting; background or viewport-limited parsing would lift the limit.
- Memory freed after closing documents is not returned to the OS.
- No measurements yet on macOS, Windows or real GPUs.
See the backlog.
Release assessments
Performance budgets are engineering targets, not automated acceptance thresholds. Prepare a human-reviewed assessment before release. Benchmark results and benchmark job status must not block merges, CI, deployments or releases. See the testing and CI strategy.