tsrs, a Rust port of the TypeScript compiler: beta and speed compared with tsgo
Cloudflare announced tsrs in October 2026, a Rust port of the TypeScript compiler. TypeScript 7, released in July 2026, reimplemented the compiler in Go, and that version is called tsgo[1]. A beta is already out and the repository is public. Development is led by Cloudflare, VoidZero (recently acquired by Cloudflare) and Max Schwenk of Owner.com, and the code is kept in the oxc-project repository.
The project is explicitly not a fork: tsrs is a function-by-function port of the Go implementation, aiming for compatibility with TypeScript 7.1 beta. Cloudflare's blog says tsrs is up to about 8 times faster than TypeScript 7.0.2 when both run with --checkers 4, and its peak memory is under one third of that. Rust has no garbage collector (GC[2]), so unlike Go it can run as a WebAssembly[3] binary without shipping a runtime. Some parts of tsrs use unsafe Rust[4] for memory management.
In the author's test on the VS Code repository (about 12,000 TS files, about 4.4 million lines) on an Apple M5 Max with 36GB of memory, type checking took 192.9 seconds with tsc 6.0.3, 13.9 seconds with 7.0.2, 8.7 seconds with 7.1.0-beta, 3.5 seconds with tsrs, and 1.8 seconds with tsrs --fast. The --fast option may behave differently from the original TypeScript. The author thinks tsrs is too early to use as a project dependency, but worth trying locally or in CI for projects already using tsgo.
Repository tsrs github.com
A Rust port of the TypeScript 7 compiler, aiming to match tsgo function by function and to type-check code faster.
Cloudflare shares (NET)
287.85 USD +1.6% since the news day, November 27
Price on November 26, 00:52 UTC Quotes: CNBC
Sources
-
JPZenn JA
tsgoより更に高速!?TypeScriptのRust実装tsrsの立ち位置と実測



