How fast tx0 is, and how it was measured

A change costs time in proportion to what it touches: unchanged files are not read, unchanged results are not recomputed, and directories whose fingerprint did not change are skipped as a whole.

Only what changed is read again

Each result is stored under the fingerprint of everything it depends on. Here, one edit in the eight-file sample project, with the output of the real binary.

A fingerprint is a hash of everything under a directory. When it did not change, nothing under it is read again.

  1. One file is edited. web/format.js gets a new comment.
  2. Only that file is read. Its size and times changed; the other 7 files are not opened.
  3. Fingerprints change on its path. shop/ and web/ get new ones; the other directories keep theirs.
  4. The rest comes from the cache. tx0 check takes 7 of 8 results from it.

The machine and the method

Every number on this site was measured with tx0 0.1.0-alpha.2, the release build, in its default tier (213 rules across the packs), on 27 November 2026.

The machine is a ThinkPad T14s Gen 1 (AMD Ryzen 7 PRO 4750U, 16 threads, 30 GB). It was running other work at the same time, at a load average of 24 to 33 on its 16 threads, so wall-clock times are slower than on an idle machine. Where it helps, the tables add the CPU time tx0 itself used, which depends much less on that load.

The trees are real projects: Kubernetes, Django, the VS Code sources and the Linux kernel. Each run worked on a hard-linked copy with a fresh cache.

Run it yourself

scripts/measure.sh in the website's repository runs every measurement and writes the JSON the pages are built from: the machine, its load before and after each run, the tx0 version, the tier and the number of rules. scripts/lsp-latency.py drives the language server the way an editor does.

$ TX0=$(command -v tx0) BENCH=~/trees scripts/measure.sh

Editor: from a keystroke to findings

tx0 lsp got 60 edits per file, one character at a time with 80 ms between them, the way someone types. Each edit is timed from sending the change to receiving the findings for that version of the file.

The design budget for checks inside one file is 10 ms per edit. Small files meet it; on files above 100 KB the server used about 12 to 17 ms of CPU per edit.

Language server latency per edit
FileSizeMedian90th pct.CPU per edit
active_deadline.gopkg/kubelet3 KB4 ms9 ms1.3 ms
textModel.tssrc/vs/editor/common/model109 KB32 ms65 ms17 ms
query.pydjango/db/models122 KB28 ms48 ms12 ms
kubelet.gopkg/kubelet171 KB24 ms41 ms15 ms

Agent hook: after an edit in Kubernetes

tx0 --timings hook pkg/kubelet/active_deadline.go after replacing that file with an edited copy, 5 times, in a Kubernetes checkout whose index was up to date. The hook first brings the index of the whole tree up to date, then checks the edited file and compares with the last commit.

Checking the file took a median of 3 ms. The whole hook took 0.8 s and 1.2 s of CPU, most of it in refreshing the index of the tree.

Post-edit hook runs
RunRefreshCheckWhole hookCPU
1532 ms5.3 ms0.8 s1.1 s
2557 ms5.1 ms0.8 s1.2 s
3541 ms2.9 ms0.8 s1.2 s
4381 ms3 ms0.6 s1.4 s
5430 ms1.6 ms0.6 s1.1 s

Index: tx0 watch on the Linux kernel

tx0 watch keeps the index of a tree current from change notifications (Linux for now). On the kernel, 97 292 files in 6 338 directories, it got 6 changes: a new file, four edited files and the new file deleted again.

The index was up to date 0.2 to 1.1 ms after each change, 0.3 ms in the median. This is the file index only; checking a changed file comes on top.

Index updates after each change
ChangeIndex updated in
new file1.1 ms
edit0.3 ms
edit0.3 ms
edit0.3 ms
edit0.3 ms
delete0.2 ms

Whole tree: tx0 check on Kubernetes

tx0 check in Kubernetes, 18 328 files checked in the default tier, first with an empty cache, then 5 more times with nothing changed.

The runs with nothing changed take every result from the cache.

Whole-tree check times
RunWallCPU
Empty cache16 s61 s
Nothing changed, median3.7 s17 s

13 findings in 12 files; 18328 files checked, 18328 from the cache, 0 findings suppressed

Design budgets

tx0 is built to answer every interactive request within 100 ms, and every edit within 10 ms for checks inside one file. These are goals the design is measured against, not results; the tables above say where tx0 stands today.