Skip to content

TypeScript 7 Benchmarks: Measured Speed Across Three Repos

TypeScript 7 benchmarks on three real repos: official Microsoft figures plus measured GA type-check times, TypeScript 6 vs the native TypeScript 7 tsc.

· · 10 min read

Updated: November 27, 2026

Table of median type-check times for three repositories, with TypeScript 7 from 4.4x to 5.8x faster

Run this yourself. The script that produced these numbers, and that will produce yours: typescript-7-benchmark/ in the Coding Dunia code-examples repo. It installs both compilers, type-checks a generated project with each, and prints your own CPU, Node version and date alongside the table.

Correction, November 22, 2026. From July 24 to August 5, 2026, the commands in "How did I measure it?" told you to install @typescript/native-preview and run tsgo to get TypeScript 7. That was out of date. TypeScript 7 went GA on July 8, 2026 as the standard typescript package, and its compiler is tsc. @typescript/native-preview was the name of the pre-release nightly package. The commands now use typescript@7 and tsc. I didn't note the change when I made it.

TypeScript 7 speed is the whole reason Project Corsa exists, so I stopped trusting the headline slides and measured it on the three TypeScript workspaces of the monorepo that builds this site. Type-checking with tsc from typescript@6.0.3 versus the native tsc from typescript@7.0.2, median times fell from 4.98s, 2.64s, and 6.19s on TS 6 to 1.14s, 0.47s, and 1.07s on TS 7. That's 4.4x for a small API-automation package, 5.6x for an Astro dashboard, and 5.8x for a 74k-line shared library. Nothing hit Microsoft's 11.9x headline, because these repos are a fraction of VS Code's size and fixed costs weigh more. Want the Project Corsa background first? Read the TypeScript 7 hub guide.

Microsoft's official TypeScript 7 benchmarks

Microsoft published a tight set of numbers with the GA release. Type-checking the VS Code codebase dropped from 125.7 seconds on TypeScript 6 to 10.6 seconds on TypeScript 7 at the default --checkers 4, an 11.9x speedup, and to 7.51 seconds (16.7x) with --checkers 8 on the same machine. The 77.8 to 7.5 seconds you'll still see quoted comes from the March 2025 preview announcement, measured against an older baseline, not from the GA release. Editor responsiveness on files with existing type errors improved noticeably too, since the checker no longer has to walk the whole project on a self-hosted JavaScript implementation.

Those are real, reproducible figures. But VS Code is a 1.5 million line codebase, and I wanted to know whether the gains hold on the kind of app most of us ship.

One note on reading multipliers, here and everywhere else. Every speedup number is tied to one specific repo and one machine. Microsoft's 11.9x is VS Code on their hardware; the roughly 10x quoted in the GA announcement summary comes from different codebases; the 4x to 6x below is this site's own monorepo on a 4-core container. The multipliers differ because the repos differ, not because anyone's numbers are wrong. The only figure that matters for you comes from running both compilers on your own code, which takes about five minutes with the commands below.

How I measured it

Same machine every run: a plain 4-core Linux container with 16 GB RAM. Node 22.22 runs the TS 6 compiler; the TS 7 binary is native Go and needs no Node at all. TS 6 is typescript@6.0.3, the last JavaScript-based compiler line. TS 7 is typescript@7.0.2, the GA release, where the native compiler ships as the ordinary tsc:

# TS 6 (JavaScript compiler, runs on Node)
npm install -D typescript@6
./node_modules/.bin/tsc --noEmit

# TS 7 (native Go compiler, no runtime needed)
npm install -D typescript@7
./node_modules/.bin/tsc --noEmit

I ran --noEmit five times per compiler per repo and timed each with a plain shell timer, not hyperfine (it wasn't installed). I report the median of the five runs; runs stayed within about 10 percent of their median, apart from two slow outliers (5501 ms and 1333 ms) that the median ignores anyway. Both compilers ran against the same tsconfig files with skipLibCheck: true and moduleResolution forced to bundler on the command line, because these packages still say node and TS 7 rejects it with TS5108: Option 'moduleResolution=node10' has been removed. Both reported the exact same error count on each repo, 0, 6, and 94, so both were demonstrably doing the same work. The raw run log, in milliseconds per full check:

dom-manager  ts6  4977  4944  4933  5056  5501
dom-manager  ts7  1136  1083  1187  1333  1086
dashboard    ts6  2630  2670  2800  2616  2635
dashboard    ts7   484   442   425   473   481
shared       ts6  6160  6395  6185  6305  6100
shared       ts7  1063  1093  1066  1049  1066

Results on three real repos

The three repos are the three TypeScript workspaces of the Yarn monorepo behind this site: a small Gmail-and-Jira automation package (dom-manager), an Astro analytics dashboard, and the shared blog toolkit library that renders every page you're reading. It's production code, type errors included. LOC counts source .ts only, excluding tests, .d.ts, and node_modules.

Reposource LOCTS 6 medianTS 7 medianSpeedup
automation package~2.4k4.98s1.14s4.4x
Astro dashboard~7k2.64s0.47s5.6x
shared library~74k6.19s1.07s5.8x

The surprise is the smallest repo. At 2.4k lines the automation package should be the quickest check on the table, yet it takes almost twice as long as the dashboard, which has three times the code. The reason is that it imports the googleapis client, and that one dependency drags an enormous declaration-file graph into every check. Line count didn't predict the time; the imported type surface did. The same repo also gained the least from TS 7, 4.4x against 5.8x, because parsing and binding that mountain of declarations is work no compiler rewrite can skip. The chart shows the per-repo speedups.

Median type-check speedup, TS 7 vs TS 6 (higher is better) automation ~2.4k 4.4x dashboard ~7k 5.6x shared lib ~74k 5.8x tsc 6.0.3 vs tsc 7.0.2 (native), median of 5 runs, 4-core Linux, 16 GB. Higher is better.

None of these repos hit Microsoft's 11.9x, and none should: that figure comes from a 1.5 million line codebase where checker throughput dominates and fixed startup costs vanish. On repos this size you get a very consistent 4x to 6x instead, which is still a large change in absolute terms. A 6-second check dropping to 1 second turns type-checking from a pause you feel into something you stop noticing, and the whole monorepo now checks in under 3 seconds total. Scale that up to a million-line codebase like the one Microsoft measured and the change in workflow matters more than the raw seconds.

Line count didn't predict the type-check time, the imported type surface did: a 2.4k-line package checked slower than a 7k-line app.

One caveat on my numbers: I measured full checks, not --incremental rebuilds, and the filesystem cache was warm for every run, so treat these as steady-state figures, not cold CI starts. Warm here means the OS file cache, not TypeScript's own build-info cache. An incremental editor loop would be quicker on both compilers, but these runs did not isolate it. If the tight edit-save-recheck loop is your main workflow, benchmark that specifically on your own project.

Does the --checkers flag help on small repos?

On the small-to-medium repos I ran, not really. There isn't enough work to spread across cores when the single-threaded check already finishes in under a few seconds. Where it shows is Microsoft's own data: the VS Code check dropped from 125.7s to 10.6s at the default --checkers 4, and to 7.51s with --checkers 8 on the same machine. It pays off on big monorepos and does little anywhere else.

# spread type-checking across 8 parallel workers
npx tsc --noEmit --checkers 8

My rule of thumb: below roughly 100k lines, skip it; my repos were nowhere near needing it. Above that, benchmark --checkers against your core count and keep whatever wins. It helps most in CI, where a runner sits idle on spare cores anyway. I broke down that pipeline setup in the TypeScript 7 GitHub Actions guide.

--checkers, --builders and --singleThreaded together

Three flags control parallelism in TypeScript 7, and they multiply instead of adding up. The numbers below come from Microsoft's announcement post; I haven't benchmarked --builders on the repos above, so there's no timing for it here.

FlagWhat it controlsDefaultReach for it when
--checkersType-checking workers inside one project (marked experimental)4Big codebase and more cores than 4, or a small CI runner that needs fewer
--buildersProject references built in parallel under --build (experimental)Not stated in the postA monorepo whose reference graph is wide, not a single long chain
--singleThreadedTurns parallelism off: one checker, parsing and emit on one threadOffDebugging, comparing against 6.0, or running under an external orchestrator

The multiplication is what catches people. Microsoft's own example: --checkers 4 --builders 4 allows up to 16 type-checkers at once, which the post says may be excessive. On a 4-core CI runner that's 16 workers fighting over the same cores and the same memory. My rule of thumb, and it's a guess I haven't measured: keep checkers x builders at or below your core count, and lower --checkers before you lower --builders on a memory-starved runner.

# monorepo build on an 8-core runner: 2 projects at a time, 4 checkers each
npx tsc --build --builders 2 --checkers 4

# reproduce a flaky result with no parallelism at all
npx tsc --noEmit --singleThreaded

One more thing to pin in CI. The announcement says changing the checker count can, rarely, surface order-dependent results, so fixing --checkers to the same value on every machine is a cheap way to keep local and CI output comparable. A wider reference graph also won't help --builders much if one package everything depends on has to finish first; the dependency graph caps the gain, whatever number you pass.

Where the gains shrink

Your results will vary, sometimes a lot. Type-check speed depends on how gnarly your types are more than on line count. A 20k line file full of deep conditional and mapped types can check slower than a 200k line app of plain interfaces. Heavy .d.ts files from big dependencies, recursive generics, and giant union types all tax the checker, and they tax both compilers.

Repo character compresses or stretches the gap. The declaration-heaviest repo I tested, the googleapis-importing automation package, saw the smallest win at 4.4x precisely because its bottleneck is chewing through a huge dependency type graph, which the Go rewrite speeds up less than plain checking. So don't upgrade expecting a clean 11x everywhere. Expect a large win on heavy full checks and CI, a smaller one where the check was already fast, and the least on type-computation-heavy code. Run your own numbers before you promise a stakeholder anything. On these numbers the upgrade is worth doing for any project that runs a full type check in CI.

Frequently Asked Questions

How much faster is TypeScript 7 in benchmarks?
Microsoft reports 8x to 12x faster full builds. Type-checking the VS Code codebase dropped from 125.7 seconds on TypeScript 6 to 10.6 seconds on TypeScript 7 at default settings, an 11.9x speedup. In my own GA re-run (typescript@6.0.3 vs typescript@7.0.2) on a 4-core Linux container, median speedups ranged from 4.4x to 5.8x across three workspaces of a production monorepo. Smaller repos on smaller machines land under Microsoft's 8x to 12x headline band, and that's expected.
What is the difference between cold and warm type-check benchmarks?
A cold run type-checks everything from scratch, with no build-info cache. A warm incremental run only rechecks what changed after you edit a file, which is what your editor and pre-commit hook do all day. Both compilers are quick on warm incremental runs, so the dramatic multipliers you see quoted come from full, from-scratch checks like CI. Benchmark both for your own project.
Does the --checkers flag make TypeScript 7 faster?
Mainly on large codebases. The --checkers flag spreads type-checking across parallel workers. Microsoft's GA numbers show what it buys on a codebase the size of VS Code: 10.6 seconds at the default --checkers 4 and 7.51 seconds with --checkers 8 on the same machine, against 125.7 seconds on TypeScript 6. On the small-to-medium repos I benchmarked, parallel checkers have little to win because the single-threaded check is already sub-second to a few seconds, so the flag is really a big-monorepo optimization.
Do TypeScript 7 speed gains vary by codebase?
Yes, a lot. Type-check time depends on how complex your types are, not just line count. Deep conditional and mapped types, recursive generics, and large union types tax the checker heavily. A small file of gnarly types can check slower than a huge file of plain interfaces, so you should benchmark your own project before promising a specific number.