Skip to content
All findings

everystate (v0.4.5, c35d81d): reproduced on CPU, same results as TLC on 122 Examples models, 1.2x-11.7x faster, but the biggest wins are JVM start-up

Published 1 Dec 2026

everystate 0.4.5, the Rust TLA+ model checker, reproduces on linux/arm64 with the author's own harness. On 122 tlaplus/Examples models it gives the result and distinct-state count recorded in the manifest every time, like TLC. Speed-ups over Java TLC 2026.11.28 were 1.2x-11.7x on 1 worker (author: 1.2x-11.3x), but on models with 300k+ states the gain is 1.8x-4.2x; the 11x-160x rows are small models where TLC's start-up dominates.

Verdict: it runs and it reproduces. everystate 0.4.5 built from source on linux/arm64 in about a minute and passed the author's own benchmark harness (scripts/bench/bench-vs.mjs). It agreed with Java TLC on the distinct-state count of every one of 15 timed models and gave the manifest-recorded result on 122 of 122 tlaplus/Examples models. Measured speed-up over TLC on 1 worker: 1.2x to 11.7x (163x on a 34-state toy). The README claims "1.2x to 11.3x faster than TLC". The caveat: the large ratios come from small models, where TLC's JVM start-up dominates. On models with 300k+ states, everystate was 1.8x-4.2x faster on 1 worker and 2.2x-9.3x on 4.

Environment

  • everystate 0.4.5, tag v0.4.5 = c35d81d8330862618dc123380e193bcb032938a7, cargo build --release, rustc 1.100.1
  • TLC 2026.11.28.004411 (rev 40a7882, the tla2tools.jar of the tlaplus v1.8.0 release), OpenJDK 17.0.21, -XX:+UseParallelGC, default heap
  • tlaplus/Examples at 334c398 (the commit the harness pins), CommunityModules 057f66c, tlapm ff40755
  • Docker node:24 on linux/arm64, --cpus 4 --memory 8g, Apple M4 Max host. Reproduced 2026-12-01.

Setup trap: the pinned TLC jar cannot be downloaded

The harness's scripts/fetch-refs.sh (everystate 0.4.5) fetches everything except TLC, by design:

log
FAILED  tla2tools.jar: no address serves this build permanently (see the head of this script)        Put the file at .../refs/tla2tools.jar yourself; it must have sha256 e1f11b75c4b5bc4478ba0ac5cb6ae28e40a01b0016bc33e0aa97da22dfdbcd7f.

The author's numbers use a TLC nightly from 2026-11-06, which tlaplus only published at rolling addresses. The rolling and v1.8.0 assets serve a newer build today (sha256 df7cef5d…, TLC 2026.11.28). Fix: download that jar and point TLA2TOOLS= at it. The benchmark script accepts it, and the gates that check the SHA do not run here.

Claim vs measured: one worker (median of 3, wall seconds)

| model | distinct | everystate | TLC | measured | author | |---|---:|---:|---:|---:|---:| | TCommit | 34 | 0.00 | 0.43 | 163x | 84.4x | | Queue | 44,044 | 0.05 | 0.58 | 11.7x | 11.3x | | StaleShrinkV6Wait2x | 43,348 | 0.19 | 1.19 | 6.3x | 5.7x | | Philosophers | 128,889 | 0.26 | 1.52 | 5.8x | 2.8x | | Commit | 282,251 | 1.43 | 5.06 | 3.5x | 1.7x | | SimpleRegular | 277,726 | 1.94 | 4.97 | 2.6x | 1.7x | | MCbtree | 374,727 | 8.95 | 37.16 | 4.2x | 2.8x | | MCNanoMedium | 530,587 | 11.28 | 19.74 | 1.8x | 1.5x | | MCBakery | 655,200 | 4.99 | 9.76 | 2.0x | 1.6x | | MCLamportMutex | 724,274 | 8.24 | 15.35 | 1.9x | 1.3x | | GameOfLife | 65,536 | 8.59 | 10.08 | 1.2x | 1.2x |

The other four models (ACP_SB_TLC 5.7x, Barriers 2.2x, Paxos 2.8x, VoteProof 2.5x) are in repro/bench.md. Every row had the same distinct count in both checkers. Peak RSS was lower for everystate on every model: 22-640 MB against TLC's 115-942 MB (TLC sizes its heap from the container limit).

4 workers (8 larger models): 1.6x (GameOfLife) to 9.3x (MCbtree), against the author's 1.6x-3.1x.

Corpus: on 122 exhaustive Examples models recorded at ≤5 s, both checkers matched the manifest on 122/122 (105 successes, 14 safety and 3 liveness failures expected). Totals were 98.1 s for everystate and 492.1 s for TLC (5.0x; author 46.8 s vs 203.3 s, 4.3x). The only count that differs between the two is SpanningTree/SpanTreeRandom (65,396 vs 17,874 distinct). That model uses random choices, and the README says everystate's random choices differ from TLC's. The manifest records no count for it.

What to take from it

  • If you run many small specs (CI over a spec repo, an agent loop that re-checks after each edit), everystate removes TLC's ~0.4-1 s JVM start per run, and that is where the 5x-160x rows come from.
  • On single big models, expect about 2x on one worker. With -workers 4 the gap widened on most models here.
  • Absolute times were noisy: the host was not idle (load average ~10 on 16 cores during the main run), and a later GameOfLife re-run under heavier load gave 20 s for everystate on 1 worker instead of 8.6 s. Use the ratios, which come from runs taken minutes apart, not the seconds. The bench script runs engines one after another rather than interleaved.
  • Not tested: tla-ts (the harness's third engine), liveness memory (open issue #20 reports 9 GB where TLC needs 1.6 GB), and models over 5 s in the Examples manifest.
  • The npm package (npm install -g everystate) ships a native linux-arm64 binary and reports 0.4.5, so arm64 users don't get the slower WebAssembly fallback.

Final working recipe

repro/commands.sh and repro/Dockerfile: build v0.4.5 with cargo, run fetch-refs.sh, add the v1.8.0 tla2tools.jar by hand, then node scripts/bench/bench-vs.mjs --runs 3 --parts single,workers,corpus with TLA2TOOLS= set. Wall time at 4 CPUs: 24 minutes for all three parts (single ≈ 9, workers ≈ 4, corpus ≈ 10).

Sources

  • README and BENCHMARK.md: https://github.com/mattzcarey/everystate (the claim is in the "Benchmarks" section)
  • Harness: scripts/bench/bench-vs.mjs and scripts/fetch-refs.sh at v0.4.5
  • TLC release: https://github.com/tlaplus/tlaplus/releases/tag/v1.8.0