Skip to main content

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.

Read the environment before the numbers

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​

Date2026-12-05, commit on branch claude/lucid-mendel-mgi96w
CPU / RAMIntel Xeon @ 2.30 GHz, 4 vCPUs / 16 GiB
OSUbuntu 24.04, Linux 6.18 (VM)
DisplayXvfb 1440×900×24, Mesa llvmpipe (OpenGL, software)
Build--release (thin LTO, codegen-units = 1), Rust 1.97.0
Language serversnone unless stated; rust-analyzer 1.97.0 where stated

Targets and status​

Provisional targetMeasuredStatus
Warm startup to a usable window < 1 s99 ms median to first presented frame (n = 10); 198 ms on the first run after dropping the page cacheMet in this environment
Idle memory before language servers < 150–200 MiB123 MiB RSS / 117 MiB PSS, one process, one file openMet 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 KBMet for CPU time; presentation not measured
No language servers at launch0 server processes after opening a folder and files in an untrusted folderMet (also covered by tests)
No unbounded background workNo indexing exists; parsing is incremental and budgeted; idle window draws 0 framesMet

Desktop application​

Startup (--perf-startup, demo/src/main.rs, restricted folder, n = 10):

MetricFirst run (cold cache)Warm medianWarm min
UI built159 ms71 ms67 ms
First frame presented198 ms99 ms93 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):

ScenarioProcessesRSSPSS
Restricted folder, 5 s idleaxiom123 MiB117 MiB
Trusted folder, 30 s idleaxiom123 MiB117 MiB
rust-analyzer577 MiB566 MiB
rust-analyzer proc-macro server26 MiB15 MiB
total726 MiB699 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):

FileFrame CPU medianp95max
100 KB Rust (4 118 lines)1.8–2.2 ms8.3–8.7 ms9.2–11.2 ms
900 KB Rust (36 709 lines)5.3–7.4 ms8.9–10.3 ms10.7–13.3 ms
100 KB Rust, before the 6 ms keystroke parse budget2.9–3.1 ms21.8–24.6 ms28.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)​

ScenarioMedianp95Max
Create session + open workspace (500-file sample)0.17 ms0.44 ms0.60 ms
Open 2 KB Rust file0.28 ms0.37 ms0.47 ms
Open 100 KB Rust / TypeScript file13.6 / 12.0 ms14.8 / 12.5 ms19.0 / 12.6 ms
Open 900 KB Rust file (full parse)113 ms146 ms151 ms
Open 2 MB file (over syntax limit, plain)2.6 ms2.7 ms7.8 ms
Open 1 MB plain text1.3 ms1.3 ms1.5 ms
Keystroke in 100 KB Rust (n = 500)0.21 ms0.23 ms0.54 ms
Keystroke in 900 KB Rust (n = 500)3.5 ms3.7 ms6.7 ms
Keystroke in 2 MB file (no syntax)0.002 ms0.002 ms0.05 ms
Spans + decorations for 60 visible lines, alternating documents (n = 210)0.20 ms0.30 ms0.34 ms
Fake language server: open document → running (n = 10)1.7 ms2.1 ms2.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):

PointRSSPSS
Before creating a session5.6 MiB4.2 MiB
Workspace open, no documents7.0 MiB5.7 MiB
+ small/medium files and 1 MB text (fresh)19.3 MiB18.0 MiB
+ one 900 KB Rust file with syntax tree56.1 MiB54.7 MiB
+ one 2 MB file without syntax62.0 MiB60.7 MiB
after closing them56.2 MiB54.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.