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.
- One file is edited.
web/format.jsgets a new comment. - Only that file is read. Its size and times changed; the other 7 files are not opened.
- Fingerprints change on its path. shop/ and web/ get new ones; the other directories keep theirs.
- The rest comes from the cache.
tx0 checktakes 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.
| File | Size | Median | 90th pct. | CPU per edit |
|---|---|---|---|---|
active_deadline.gopkg/kubelet | 3 KB | 4 ms | 9 ms | 1.3 ms |
textModel.tssrc/vs/editor/common/model | 109 KB | 32 ms | 65 ms | 17 ms |
query.pydjango/db/models | 122 KB | 28 ms | 48 ms | 12 ms |
kubelet.gopkg/kubelet | 171 KB | 24 ms | 41 ms | 15 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.
| Run | Refresh | Check | Whole hook | CPU |
|---|---|---|---|---|
| 1 | 532 ms | 5.3 ms | 0.8 s | 1.1 s |
| 2 | 557 ms | 5.1 ms | 0.8 s | 1.2 s |
| 3 | 541 ms | 2.9 ms | 0.8 s | 1.2 s |
| 4 | 381 ms | 3 ms | 0.6 s | 1.4 s |
| 5 | 430 ms | 1.6 ms | 0.6 s | 1.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.
| Change | Index updated in |
|---|---|
| new file | 1.1 ms |
| edit | 0.3 ms |
| edit | 0.3 ms |
| edit | 0.3 ms |
| edit | 0.3 ms |
| delete | 0.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.
| Run | Wall | CPU |
|---|---|---|
| Empty cache | 16 s | 61 s |
| Nothing changed, median | 3.7 s | 17 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.