Skip to main content

Cloudsoft Zone Build, deploy and scale with practical guides to PHP, Node.js, React, DevOps and AI automation. Explore the guides

Cloudsoft Zone
JavaScriptDevelopmentIndustry update

tsrs explained: can a Rust port make TypeScript checks 8x faster?

tsrs is an experimental Rust port of the TypeScript compiler from Cloudflare and VoidZero. What the 8x speed and 70% memory claims mean, and how to test it.

Cloudsoft Zone

3 min read

Wall of lava lamps in the entrance of a Cloudflare office.
Photograph: HaeB / CC BY-SA 4.0, via Wikimedia Commons
In this article

tsrs is an experimental Rust port of the TypeScript compiler, announced by Cloudflare on 20 October 2026. Cloudflare and VoidZero are building it with Max Schwenk of Owner.com, in collaboration with the TypeScript team, and it is incubated in the Oxc toolchain.

Early benchmarks show it up to 8× faster, with about 70% less memory, than TypeScript 7.0 using the same number of type-check workers. These are the authors' benchmarks, and the hardware is not listed.

Sources checked on 26 October 2026. Features, prices and availability can change; confirm the linked primary sources before acting.

tsrs compared with TypeScript 7: owner, status, speed and memory claims, output parity and WebAssembly support.
Claims are the projects’ own benchmarks, not independent tests. Editorial table.

What tsrs is, and what it is not

It is a faithful port, not a new language or a fork. The authors say the TypeScript team keeps full control of language design.

The goals are shorter waits for type checks and lower memory use, so full development environments can run in more places, including browsers. A WebAssembly package, @tsrs/wasm, is available. The authors argue Rust suits WebAssembly better than Go because Go's Wasm builds must include its garbage collector.

How tsrs compares with TypeScript 7

TypeScript 7 is Microsoft's official Go port; tsrs is an independent Rust port. The table compares what each project claims.

TypeScript 7 (Go)tsrs (Rust)
StatusOfficial compilerExperimental, no stable release
Speed claim7.1 beta up to 2.5× faster than 7.0Up to 8× faster than 7.0 at equal workers
Memory claimNot statedAbout 70% less than 7.0
Output parityReferenceKnown differences, such as diagnostic order

Some tsrs optimisations have already been contributed back to TypeScript 7.1, so the gap may narrow. By default tsrs uses an adaptive configuration that uses more memory and runs faster still, so match settings when you compare.

Rust source code on a dark editor screen.
tsrs ports the TypeScript checker to Rust; the TypeScript team keeps control of the language.

Test tsrs against a real monorepo

Run it beside your current checker; do not replace it yet. A side-by-side run shows speed and correctness together.

  1. On a branch, install the tsrs package from npm and run npx tsrs at the project root, following the repository README for options.
  2. Time cold and warm runs of your current check and of tsrs with the same worker count.
  3. Record peak memory with /usr/bin/time -v on Linux or /usr/bin/time -l on macOS.
  4. Diff the diagnostics after sorting them, because print order differs.
  5. Repeat on your largest package, not a small example.
Test plan for tsrs on a real monorepo: match worker counts, record time and memory, then diff sorted diagnostics.
Run tsrs beside your current checker; keep the official compiler as the CI gate.

Where tsrs could matter: browser and AI coding environments

Memory, not only speed, decides whether a type checker fits in a sandbox. Browser-based and AI coding environments run many isolated workspaces at once.

A smaller footprint could let an agent type-check its own changes inside a sandbox before proposing them. That depends on output parity, though. Until a stable release, keep the official compiler as the gate in CI.

Our verdict: tsrs is worth a benchmark afternoon for large monorepos, not a CI replacement. Related: upgrading to TypeScript 7. If slow builds are hurting your team, our React and Next.js frontend team can audit them.

Sources and further reading

Image credits

Explanatory diagrams: Cloudsoft Zone, CC BY-SA 4.0. Featured photograph: HaeB, CC BY-SA 4.0, via Wikimedia Commons. RustCodeOnScreen: Slashme, CC0, via Wikimedia Commons.

Frequently asked questions

  • Is tsrs ready for production builds?

    No. It is an experimental release with known output differences. Keep the official TypeScript compiler as your CI gate.

  • Is tsrs a fork of TypeScript?

    No. It is a port of the compiler; the authors say the TypeScript team keeps full control of language design.

  • Can tsrs run in a browser?

    A WebAssembly package, @tsrs/wasm, is available, and running toolchains in browsers is one of the project’s goals.

Advertise on CloudSoftZone

Your next customer could start right here.

Introduce your tool, product or business to readers exploring technology.

Advertise with us

Explore placements and request a private quote

Sources

  1. A Rust port of TypeScript — Cloudflare, 2026-10-20
  2. tsrs repository — Oxc on GitHub

Written with substantial AI assistance. Facts checked against cited sources. Editorial policy.

Comments

No comments yet. Be the first to join the conversation.

Leave a comment

Every comment is read by a moderator before it appears. Your email address is never published; it is used only to contact you about this comment.

Never published. Used only to contact you about this comment.

Loading the security check…

Comments are moderated before publication.