Tuesday, November 10, 2026

TypeScript =10x=> Go =3x=> Rust

Go version is translation of TypeScript version of TS parser (by Microsoft)

Rust version is translation of Go version. (by Cloudflare, to make Rust=>WASM effective)

Both possible thanks to extensive tests available.

 TypeScript Got Ported To Rust... And It's 3x Faster Than Go - YouTube by Better Stack

  • The Project: A fully compatible TypeScript compiler written in Rust (tsrs) was recently built and released.

  • Performance Benchmark: When tested side-by-side on the TypeScript repository against the standard JavaScript version (tsc) and the Go port, the Rust port proved to be roughly 2.8x to 3x faster than the Go port (and significantly faster than the original JavaScript compiler).

  • How It Was Built: The video explores how developers managed to build and port a massive, complex codebase into Rust in just three weeks, largely leveraging comprehensive test suites and modern tooling.