TypeScript 7.1 beta compiles a 353,000-line project in 2.8s versus 12.4s on 6.0.3
A developer benchmarked TypeScript 6.0.3, 7.0.2, and 7.1.0-beta on the nestjs/nest repository, which spans about 2,934 files and 353,000 lines. Running tsc --noEmit three times each on the same machine, the 7.1.0-beta compiler finished in 2.76 seconds, against 12.42 seconds for 6.0.3 and 4.95 seconds for 7.0.2. The gains were 2.5x for 7.0.2 and 4.5x for the beta, well short of the 8-12x Microsoft has advertised for its own codebase. Peak memory use rose by about 65% in the stable 7.0.2 release, though the 7.1.0-beta reportedly came in slightly below the older compiler. The 7.0 release also removed the programmatic JavaScript API, which breaks tools such as ts-node that depend on createProgram.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in