tsrs.run

Method & limits

What the npx tsrs-run CLI and browser Arena measure, how diagnostic differences are compared, what each report contains, and what none of it can establish.

Scope

What is tsrs.run?

tsrs.run is an independent community project combining the local npx tsrs-run CLI for repository evaluations (tsrs, tsc, tsgo, OS Peak RSS, and diagnostic parity) with a single-threaded browser Arena for small reproducible snippets. Every run produces structured receipts with full context.

What is it not?

It is not an official tsrs, Oxc, Cloudflare, VoidZero or Microsoft site. It does not replace tsc or your editor, does not certify compatibility, and does not host arbitrary GitHub repository sandboxes on remote servers.

Measurement

How is time measured?

A run starts only when you press Run. Each checker loads its module and standard library first; loading and input preparation are excluded from the measured check. Each checker then performs one unrecorded warm-up and five measured checks. Order alternates between rounds: tsrs then tsc, then tsc then tsrs. A measurement is wall-clock time around one fresh check of the same prepared program in a single-threaded worker.

What do the numbers include?

Results show the median, the minimum–maximum range and every raw sample. A ratio appears only as a secondary label beside those numbers, never as a standalone headline. The result describes one device and one browser; it is not a native CLI benchmark and does not predict whole-repository performance.

What happens when a run fails?

If configuration cannot be parsed or applied, if a dependency is missing, or if a checker crashes, the comparison stops and reports the failure. It does not substitute default options, interpolate a missing measurement, or turn a failed run into zero diagnostics.

Engines

Which engines are compared?

The local npx tsrs-run CLI compares your repository tsc baseline against tsrs (Oxc Rust native) and tsrs --fast, plus optional tsgo/tsc7 binaries. The browser Arena pairs @tsrs/wasm (single-threaded) with browser tsc JavaScript (5.x–6.x) using the same standard-library closure. Native CLI and browser WASM metrics are always shown separately and never mixed.

How are versions shown?

Engine package versions are printed on every result, every export and every receipt. The TypeScript language version targeted by tsrs is derived from its build tag (for example ts7.1.0-beta) and shown separately from the tsc reference version. When those versions differ, diagnostic differences are labelled unconfirmed rather than reported as a bug.

Diagnostics

How are diagnostics compared?

Diagnostics are sorted by file, start position and error code before comparison. Three outcomes are possible: identical (same records, display order ignored); wording or span only (same file, position and code, but different message text, span length or severity); missing or extra (a record exists on one side only). Only the third outcome counts as a missing or extra diagnostic.

Which differences are known?

Known classes of difference are listed with the result when they occur: order-only, wording-only, span-only, and records present on one side only. Project references and extended configs are rejected rather than approximated. Conditional-type wording can differ between compiler versions, so a wording-only result is not evidence that either checker is wrong.

What if the reference version differs?

When tsrs targets a different TypeScript version than the tsc reference, every diagnostic difference is marked 'version may differ, unconfirmed'. In that state a one-click bug report is not offered; the receipt can still be copied for discussion.

How do I report a difference?

Copy as issue produces the same sections as the checker-difference template: Kind, Repro link, tsrs version, Reference checker, Expected, Actual, Compiler options, Native reproduction. Repro data stays in the URL fragment; only the link and versions are prefilled in the issue form. If the upstream template has not been adopted, paste the generated Markdown into a blank issue.

Receipt

What is in a receipt?

A receipt contains a title; the input fingerprint (file count, line count and SHA-256 of the canonical file contents); compiler options; checker names, versions and thread models; coarse browser and operating system; warm-up and measurement counts; median, range and raw samples; diagnostic counts and the comparison class for each side; a timestamp; and the fixed declaration line.

What do the exports contain?

The same receipt drives all three exports: a link with state in the URL fragment (never uploaded), Markdown, and a PNG image. Each export carries the declaration line 'Browser measurement · WASM single-thread · not a native benchmark' and both engine versions. The declaration cannot be removed or hidden by an export option, and a ratio is never exported as a separate headline graphic.

Privacy & storage

Does my code leave my machine or browser?

By default, both the npx tsrs-run CLI and the browser Arena stay offline on your machine. CLI evaluation makes zero HTTP requests unless you explicitly pass --share, which defaults to salted SHA-256 file hashes without source code. In Arena, hash links keep the repro inside the URL fragment.

Server short links are optional and upload the shared files, settings and result snapshot to Cloudflare KV for 90 days. A hash link needs no server storage and does not expire. Exported Markdown and images are static copies; an image alone cannot restore editable source files.

What usage data is collected?

When the first-party event endpoint is configured, anonymous session events count comparison and share steps. Events expire after 30 days and exclude code, file paths, diagnostic text and IP addresses. There is no cross-session identifier and no third-party analytics. Do Not Track and Global Privacy Control are respected.

Limits

What are the browser limits?

The browser comparison is single-threaded and bounded by the tab's memory (roughly 2 GB in current Chromium builds, less on some devices). It has no node_modules and no access to your repository. Very large files, many files, or a large standard-library closure can fail; the run then stops with an error and does not estimate a time.

What input is accepted?

Input is limited to 20 files and 512 KiB of TypeScript source plus tsconfig.json, with standard libraries up to ES2022. The comparison rejects project references, extended configs, plugins, watch mode, declaration or source-map emit, incremental builds and unsupported compiler options instead of changing them.

What can this comparison not tell me?

A result cannot establish which checker is correct, whether tsrs is faster on your repository, or how it will behave in CI. Browser timings exclude process startup, file system access and a multi-threaded native check. Diagnostic differences may come from the different TypeScript versions rather than from either implementation.

Independence

Who runs this site?

tsrs.run is an independent community project. It is not endorsed by, operated by, or affiliated with tsrs, Oxc, Cloudflare, VoidZero or Microsoft. Source for this site is at github.com/maxlee/tsrs-run; compiler sources are linked from their own repositories.

What about names and trademarks?

TypeScript is a trademark of Microsoft. tsrs is part of the Oxc toolchain, announced by Cloudflare and VoidZero. Engine names identify the software being compared. If the upstream package is renamed, the engine label changes with it; the site's identity is compare & share, not the engine name.