Bun Check Type-Checks TypeScript Up to 6.4x Faster Than tsc. Should You Switch?

Type checking is the slowest honest thing most TypeScript projects do. Bundlers got fast years ago, test runners got fast, and then we all sat in CI waiting for tsc --noEmit to finish. TypeScript 7's Go-based compiler already narrowed that gap a lot. Now Bun says it can go further, with a type checker built straight into the runtime.
It's called bun check, it arrived in Bun v1.4.3, and the claims are bold: 100% of TypeScript 7.0.2's conformance tests passing, 3x to 6.4x faster than tsc, and a fraction of the memory. I've read through the release notes and the test methodology carefully. Here's what it is, what it isn't, and where I think it's worth trying.
What bun check actually is
According to the Bun team, bun check is a port of typescript-go, the Go codebase behind TypeScript 7. It reads your tsconfig.json, reports the same errors tsc would, and spreads the work across every CPU core. You don't even need the typescript package installed.
The important limitation is right there in the release notes: it only type checks. It doesn't emit JavaScript or .d.ts files, and there's no language server. Your editor keeps using TypeScript for squiggles and autocomplete. So this isn't a TypeScript replacement. It's a faster way to answer one question: does my project type check?
Expand
The TypeScript logo
Image: ™/®Microsoft via Wikimedia Commons, Public domain
The speed numbers
Bun benchmarked bun check against tsc 7.0.2 on a 16-core Apple silicon Mac. Here are its results for a few well-known codebases:
| Project | Files | bun check | tsc 7.0.2 | Speedup |
|---|---|---|---|---|
| VS Code src | 9,795 | 1.24s | 5.98s | 4.8x |
| mikro-orm | 2,883 | 1.20s | 5.97s | 5.0x |
| Next.js packages/next | 2,881 | 0.28s | 1.82s | 6.4x |
| Next.js root | 3,547 | 0.42s | 1.28s | 3.1x |
| Playwright | 706 | 0.15s | 0.64s | 4.2x |
| Nuxt | 839 | 0.27s | 0.80s | 3.0x |
Memory is the other half. Bun reports 2.2x to 4.9x less, with the VS Code source tree dropping from 7.97GB under tsc to 2.14GB under bun check, and mikro-orm from 6.67GB to 1.35GB.
Two caveats. These are Bun's own numbers on Bun's chosen machine. And they're compared against tsc 7, which is already the fast Go-based compiler, so these gains come on top of a big speedup most teams haven't even adopted yet. That's impressive, but I'd still measure on my own project and my own CI runners, which are rarely 16-core Macs.
How much should you trust the correctness claim?
This is the part that actually convinced me to take it seriously. Speed means nothing if the checker misses errors or invents new ones.
Bun says every commit runs TypeScript 7.0.2's full conformance suite: 51,210 tests across errors, expression types, symbols, emitted declarations and module resolution, all passing. That alone is a strong start, but conformance tests aren't the whole world.
So the team went further. They deliberately misconfigured 72 popular open-source repositories, things like missing node_modules, mismatched TypeScript versions and no build step, and compared bun check with tsc error by error: same file, line, column and code. Across 1,103 configurations and 286,267 errors, they found one mismatch, in vuejs/core, which only appears in tsc when two files are listed in a particular order.
They also fuzz. On every commit, 136,235 generated functions are diffed against tsc with zero mismatches. Larger offline runs covered more than three million generated programs and found 191 mismatches, 162 of which involve code that refers to itself while being declared. And they mutated Effect's source 913 times and compared every resulting error.
Expand
Programming code on a monitor
That's a more rigorous public testing story than most tools ship with. It doesn't mean there are no bugs. It means the remaining bugs are probably in strange corners rather than everyday code.
The --check flags are the clever part
The feature I'd actually use first isn't bun check on its own. It's the flag Bun added everywhere else:
-
bun run --checktype checks, then runs. If there's a type error, your code doesn't run. It works withpackage.jsonscripts and with--watch, checking again before every restart. -
bun test --checktype checks the test files and everything they import before running tests. A type error means no tests run. -
bun build --checktype checks, then bundles. A type error fails the build like any other error, and nothing is written. The JavaScript API takescheck: trueinBun.build.
That's a nice workflow change. Today, most projects run type checking as a separate CI step, often in parallel with tests, which means a test run can pass on code that doesn't type check. Folding the check into the same command closes that gap.
How to test it on your project
Bun gives you a direct comparison you can run yourself, straight from the release notes:
CodeCopy bunx -p typescript@7.0.2 tsc --noEmit --pretty false > tsc.txt
bun check --no-pretty > bun.txt
diff tsc.txt bun.txt
If the diff isn't empty, Bun says that's a bug in Bun and asks you to open an issue. I like that framing. It puts the burden of proof on the tool, where it belongs.
My suggested rollout:
- Run the diff locally on your main project. If it's clean, time both commands.
- Add
bun checkas a non-blocking CI job next to your existing tsc step for a week or two. Compare results on every pull request. - If they agree, swap. Make
bun checkthe blocking step and drop tsc from CI. - Keep TypeScript installed for your editor and for any build step that emits declarations, since
bun checkwon't do either.
What this means for TypeScript itself
It's worth pausing on how unusual this is. A runtime has taken the official compiler's own Go codebase, ported it, and is now promising to track it release by release. Bun says it will keep the conformance suite up to date as TypeScript itself updates, which means bun check lives or dies on staying in lockstep with Microsoft's releases.
That's a healthy kind of pressure. If a third party can type check the same code faster with the same results, it pushes everyone to find more speed. It also means that when TypeScript ships a new version, there may be a short window where bun check lags behind. If your team upgrades TypeScript the day it's released, check that Bun has caught up before you bump versions in a project that relies on bun check in CI.
Who should switch, and who shouldn't
Switch, or at least trial it, if you already use Bun, your monorepo's type check is a CI bottleneck, or your runners keep hitting memory limits during tsc. The memory numbers are especially interesting for big repos on modest CI machines.
Wait if you rely on tsc to emit .d.ts files for published libraries, since bun check can't. Same if your project uses unusual TypeScript features that sit in the fuzzing results' trouble areas, like heavily self-referential types.
Don't bother if you're not on Bun and your type check already finishes in a few seconds. The win is real, but switching runtimes to shave two seconds isn't worth it.
Expand
Close-up of code in an editor
The rest of Bun 1.4.3
bun check steals the show, but the release has other useful pieces for backend developers:
- 67% to 89% less CPU while a server sleeps, according to the release notes. That matters for idle services and anyone paying for CPU time.
-
Bun.FetchSessiongives a group of requests its own TLS, proxy and keep-alive settings and a separate connection pool. Sincesession.fetchis bound, you can hand it to any client that accepts a fetch function. - Better proxy handling in
fetch():NO_PROXYnow accepts wildcards, CIDR blocks, bare IPv6 addresses and host:port,ALL_PROXYworks as a fallback, and a refused CONNECT now rejects withERR_PROXY_TUNNELinstead of pretending the proxy's reply came from the origin. - Experimental
Bun.ModuleGraphruns many instances of one app in a single process with separate module state. Bun is clear that it's not a security sandbox. -
--disallow-code-generation-from-stringsmakeseval()andnew Function()throw across the whole process, including Workers.
The proxy fix is the sleeper hit for me. Corporate networks with fussy proxies are where many JavaScript tools quietly break, and these changes address real pain.
Should you care?
If you write TypeScript on Bun, yes. bun check is fast, and more importantly the team has backed its correctness claims with unusually thorough testing. The --check flags on run, test and build are a genuinely better workflow. Run the three-line diff on your project this week. If it comes back clean, you've probably just shortened your CI. If you're not on Bun, this is still worth watching, because it shows how much faster type checking can get even after TypeScript 7.
Frequently Asked Questions
What is bun check?
A TypeScript type checker built into Bun 1.4.3. It's a port of typescript-go, reads your tsconfig.json, reports the same errors as tsc and doesn't require the typescript package.
Is bun check faster than tsc?
In Bun's benchmarks on a 16-core Apple silicon Mac, it was 3x to 6.4x faster than tsc 7.0.2 and used 2.2x to 4.9x less memory. Measure on your own project and CI hardware.
Can bun check replace tsc completely?
No. It only type checks. It doesn't emit JavaScript or .d.ts files and has no language server, so you still need TypeScript for your editor and declaration output.
How do I compare bun check with tsc on my project?
Run tsc 7.0.2 with --noEmit and --pretty false into one file, run bun check --no-pretty into another, and diff them. Bun treats any difference as a bug.
Originally published on Mango Developer.

