Skip to content

Language support: run-cache reasons carry measured timings for the five languages without one - #559

Merged
pdbethke merged 1 commit into
mainfrom
docs/run-cache-measured
Nov 19, 2026
Merged

pdbethke merged 1 commit into
mainfrom
docs/run-cache-measured

Conversation

@pdbethke

Copy link
Copy Markdown
Owner

The support page said the benefit of a shared tool cache was "not yet measured" for Rust, JavaScript, TypeScript, Ruby and PHP. This replaces that with timings, one real project per language, and adds a bytecode-cache timing to Python's reason. No behaviour changes: internal/lang/parity.go reasons and the two generated pages.

Measured 2026-11-18 on one 32-core machine, outside the sandbox, median of 3 to 5 runs. "Warm" is a warm cache after one source file changed, which is what a planted fault is.

language project cold warm
Rust indexmap 41a8708, cargo test 4.3 s 0.9 s worth building
JavaScript dayjs d3e43be, jest 22.4 3.3 s 1.7 s worth a look on a current jest
JS / TypeScript ufo f06c800, vitest 4.1 0.37 s 0.35 s nothing
Python starlette 271c277, pytest 9.0 s 7.0 s overstated: cold emptied the installed packages' bytecode too
PHP ramsey/uuid 7a16331, PHPUnit, OPcache file cache 10.6 s 10.2 s inside run-to-run spread
Ruby hashie e4aaac1, rspec 6.6 s run, 0.3 s of it loading files no cache to share

Not covered: nothing was measured inside the jail; one project per language; no large Rust crate; jest 22 is old and 3 of dayjs's 794 tests fail on this machine in every run; ts-jest, tsc incremental and bootsnap were not measured.

Checks run: go test ./internal/lang, ^TestDocs, gen-language-support.sh --check, gen-record-fields.sh --check, licensing. The whole suite was not run.

🤖 Generated with Claude Code

…d tool cache would save per run in Rust, JavaScript, TypeScript, Ruby, PHP and Python, measured on one real project each, so the support page says which of them is worth building for (Rust, and jest) and which is not.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@pdbethke
pdbethke merged commit 2c7af39 into main Nov 19, 2026
10 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant