tsrs.run

tsrs vs tsc vs tsgo — TypeScript Checkers Compared

Side-by-side technical guide to comparing Oxc Rust tsrs, JavaScript tsc, native Go tsgo, and the single-threaded browser WASM Arena across parity, Peak RSS, and workspace scale.

Engine & runtime matrix

CheckerRuntime & targetConcurrency & input scopeBest suited for
tscJavaScript (Node CLI 5.x–6.x or browser worker)Full repo tsconfig, node_modules, emit & incrementalAuthoritative compatibility baseline & production emit
tsrs / tsrs --fastNative Rust (Oxc toolchain, TS 7.1 beta target)Full repo multi-threaded native CLI + fast modeBenchmarking Rust checking throughput & migration readiness
tsgo / tsc7Native Go (TypeScript 7 preview binary)Native CLI binary via --tsgo or --tsc7 flagCross-evaluating native TS 7 implementations locally
tsrs Arena (WASM)@tsrs/wasm + tsc JS inside browser Web WorkersSingle-threaded tab, max 20 files / 512 KiB, ES2022 libsQuick isolated repro links without cloning a repo

Engine Architectures

How do tsrs, tsc, and tsgo differ internally?

tsc is Microsoft's canonical JavaScript compiler running in Node.js (and browser workers). tsrs is a Rust reimplementation inside the Oxc toolchain targeting TypeScript 7.1 semantics. tsgo (tsc7) is the native Go port of TypeScript 7. npx tsrs-run lets you evaluate them identically against the same tsconfig.

What does tsrs --fast change during parity checks?

By default npx tsrs-run measures both standard tsrs and tsrs --fast alongside tsc. Parity from tsrs --fast is shown in a separate advisory parity table so throughput optimizations never obscure default strict checking fidelity.

Diagnostic Parity & Versions

How are diagnostics compared across tsc, tsrs, and tsgo?

Records are sorted deterministically by file, position, and TS error code into exact matches, line-shift only, wording only, and missing/extra records. Order-only shifts never inflate mismatch counts.

Why might tsrs and tsc report different errors on TS 6 vs TS 7?

Current tsrs releases target TypeScript 7.1 beta semantics while many projects still pin TypeScript 5.x or 6.x tsc. When baseline and candidate target versions diverge, differences are clearly flagged rather than mislabeled as compiler bugs.

Memory & Timing Integrity

Why inspect OS Peak RSS in addition to compiler timing?

Fast wall-clock execution on CI runners can still fail if Peak RSS blows past container limits. Measuring OS Peak RSS externally captures real resident memory across Node V8 heaps, Rust allocators, and Go runtimes on equal footing.

Why keep browser Arena timings separate from npx tsrs-run CLI benchmarks?

Browser WASM runs single-threaded inside browser tab sandboxes without native filesystem I/O, node_modules graphs, or process spawning overhead. Browser timing checks isolated snippet behavior; CLI benchmarks measure real repositories.

Choosing Your Workflow

When should I run npx tsrs-run vs /arena?

Run npx tsrs-run whenever you want migration readiness verdicts, Peak RSS, solution project reference checks, or tsgo vs tsrs benchmarks on real codebases. Use /arena when sharing a self-contained <20 file snippet via URL fragment or PNG card.

How should I share unexpected compiler differences?

In the CLI, pass --share for redacted hashes or --share --public when sanitized diagnostics help maintainers triage. In /arena, use Copy as issue or create a 90-day short link carrying full compiler options and version metadata.