Skip to content

Order types, symbols, and nodes by content instead of by ID - #65621

Draft
Jake Bailey (jakebailey) wants to merge 15 commits into
mainfrom
jakebailey/content-ordering
Draft

Jake Bailey (jakebailey) wants to merge 15 commits into
mainfrom
jakebailey/content-ordering

Conversation

@jakebailey

Copy link
Copy Markdown
Member

Fixes #17873
Fixes #34099
Fixes #60453
Fixes #64757

This is the second part of #65064, removing ordering by ID, which can apply to main.


Types, symbols, and nodes were ordered by their IDs whenever their content tied. IDs follow creation order, so union order, printed types, and everything derived from them depended on which code was checked first. Everything is now ordered by content, flags, and how it was derived, and types that are identical by content are interned into one type. Falling back to IDs now panics, except for the built-in types the checker creates in a fixed order. This caught a bunch of places where we were not caching things and ended up with types that were by all rights identical but had different IDs.

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) run dt
TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) test top1000
TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
run dt ✅ Started ❌ Results
user test this ✅ Started 👀 Results
test top1000 ✅ Started 👀 Results
perf test this faster ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), it looks like the DT test run failed. Please check the log for more details.

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

type-fest

tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,149 79,126 -23 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 106,303k (± 0.03%) 106,461k (± 0.02%) +151k (+ 0.14%) 106,387k 106,558k p=0.000 n=20
Memory Allocs 1,045,748 (± 0.01%) 1,050,598 (± 0.01%) +4,839 (+ 0.46%) 1,050,258 1,050,936 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.037s (± 2.37%) 0.036s (± 2.51%) 🟩-0.002s (- 4.14%) 0.032s 0.040s p=0.028 n=20
Bind Time 0.012s (± 9.51%) 0.012s (± 7.46%) ~ 0.009s 0.016s p=0.266 n=20
Check Time 0.376s (± 0.70%) 0.378s (± 0.49%) ~ 0.373s 0.389s p=0.076 n=20
Emit Time 0.216s (± 0.83%) 0.216s (± 0.68%) ~ 0.209s 0.222s p=0.896 n=20
Total Time 0.647s (± 0.56%) 0.650s (± 0.37%) ~ 0.639s 0.659s p=0.140 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,865 752,881 -984 (- 0.13%) ~ ~ p=0.000 n=20
Types 546,772 541,550 -5,222 (- 0.96%) ~ ~ p=0.000 n=20
Memory Used 642,224k (± 0.02%) 644,064k (± 0.01%) +1,847k (+ 0.29%) 643,840k 644,480k p=0.000 n=20
Memory Allocs 8,313,953 (± 0.09%) 8,490,025 (± 0.06%) +179,004 (+ 2.15%) 8,484,946 8,533,001 p=0.000 n=20
Config Time 0.013s (± 1.42%) 0.013s (± 1.16%) ~ 0.012s 0.014s p=0.786 n=20
Parse Time 0.208s (± 2.48%) 0.202s (± 2.35%) ~ 0.187s 0.218s p=0.097 n=20
Bind Time 0.062s (± 9.21%) 0.070s (±11.55%) ~ 0.052s 0.100s p=0.104 n=20
Check Time 1.100s (± 1.03%) 1.115s (± 0.91%) ~ 1.086s 1.152s p=0.058 n=20
Emit Time 0.738s (± 0.86%) 0.743s (± 0.98%) ~ 0.726s 0.778s p=0.490 n=20
Total Time 2.140s (± 0.70%) 2.162s (± 0.46%) +0.020s (+ 0.93%) 2.121s 2.198s p=0.023 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,789 666,504 -10,285 (- 1.52%) ~ ~ p=0.000 n=20
Types 937,638 913,308 -24,330 (- 2.59%) ~ ~ p=0.000 n=20
Memory Used 473,916k (± 0.01%) 474,803k (± 0.02%) +897k (+ 0.19%) 474,388k 475,018k p=0.000 n=20
Memory Allocs 11,787,523 (± 0.01%) 11,413,004 (± 0.01%) 🟩-374,690 (- 3.18%) 11,410,810 11,421,796 p=0.000 n=20
Config Time 0.003s (± 3.54%) 0.003s ~ ~ ~ p=1.000 n=20
Parse Time 0.083s (± 2.23%) 0.084s (± 2.35%) ~ 0.076s 0.091s p=0.368 n=20
Bind Time 0.023s (± 4.91%) 0.024s (± 7.62%) ~ 0.021s 0.038s p=0.393 n=20
Check Time 1.730s (± 0.40%) 1.805s (± 0.60%) 🔻+0.074s (+ 4.30%) 1.773s 1.843s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.889s (± 0.40%) 1.973s (± 0.53%) 🔻+0.083s (+ 4.41%) 1.929s 2.004s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,321 -57 (- 0.13%) ~ ~ p=0.000 n=20
Types 7,565 7,211 🟩-354 (- 4.68%) ~ ~ p=0.000 n=20
Memory Used 27,698k (± 0.03%) 27,678k (± 0.02%) -21k (- 0.08%) 27,657k 27,694k p=0.001 n=20
Memory Allocs 231,582 (± 0.04%) 236,685 (± 0.03%) +5,115 (+ 2.21%) 236,364 237,037 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.020s (± 2.91%) 0.020s (± 2.02%) ~ 0.019s 0.022s p=0.851 n=20
Bind Time 0.008s (±11.51%) 0.007s (±10.01%) ~ 0.005s 0.010s p=0.102 n=20
Check Time 0.017s (± 5.73%) 0.020s (± 6.33%) 🔻+0.003s (+17.65%) 0.016s 0.023s p=0.003 n=20
Emit Time 0.018s (± 5.96%) 0.017s (± 7.32%) ~ 0.014s 0.022s p=0.118 n=20
Total Time 0.066s (± 1.50%) 0.066s (± 1.31%) ~ 0.062s 0.069s p=0.490 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,348 1,230,713 -3,635 (- 0.29%) ~ ~ p=0.000 n=20
Types 892,415 885,668 -6,747 (- 0.76%) ~ ~ p=0.000 n=20
Memory Used 940,392k (± 0.01%) 944,700k (± 0.01%) +4,317k (+ 0.46%) 944,160k 945,339k p=0.000 n=20
Memory Allocs 11,705,674 (± 0.03%) 11,791,494 (± 0.03%) +85,162 (+ 0.73%) 11,782,829 11,811,736 p=0.000 n=20
Config Time 0.004s 0.004s ~ ~ ~ p=1.000 n=20
Parse Time 0.261s (± 1.28%) 0.263s (± 1.86%) ~ 0.239s 0.281s p=0.541 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.525s (± 0.49%) 1.551s (± 0.55%) +0.025s (+ 1.67%) 1.522s 1.588s p=0.000 n=20
Emit Time 0.800s (± 3.04%) 0.814s (± 3.01%) ~ 0.719s 0.898s p=0.622 n=20
Total Time 2.732s (± 0.81%) 2.781s (± 0.75%) +0.049s (+ 1.78%) 2.705s 2.872s p=0.027 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,413 3,647,770 -44,643 (- 1.21%) ~ ~ p=0.000 n=20
Types 1,351,476 1,296,502 🟩-54,974 (- 4.07%) ~ ~ p=0.000 n=20
Memory Used 1,653,407k (± 0.06%) 1,689,680k (± 0.05%) +36,351k (+ 2.20%) 1,685,830k 1,693,161k p=0.000 n=20
Memory Allocs 24,329,744 (± 0.06%) 24,873,011 (± 0.05%) +542,550 (+ 2.23%) 24,834,313 24,925,710 p=0.000 n=20
Config Time 0.013s (± 1.33%) 0.013s ~ ~ ~ p=0.149 n=20
Parse Time 0.447s (± 2.35%) 0.449s (± 1.61%) ~ 0.420s 0.477s p=0.798 n=20
Bind Time 0.002s (± 6.84%) 0.002s (± 5.09%) ~ 0.002s 0.003s p=0.414 n=20
Check Time 4.588s (± 0.45%) 4.683s (± 0.65%) +0.087s (+ 1.89%) 4.588s 4.844s p=0.000 n=20
Emit Time 0.480s (± 6.96%) 0.508s (± 6.89%) ~ 0.413s 0.620s p=0.231 n=20
Total Time 6.277s (± 0.64%) 6.405s (± 0.69%) +0.140s (+ 2.23%) 6.188s 6.503s p=0.001 n=20
sentry - native
⚠️ Failed failed
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,936 1,830,707 -8,229 (- 0.45%) ~ ~ p=0.000 n=20
Types 1,146,790 1,136,530 -10,260 (- 0.89%) ~ ~ p=0.000 n=20
Memory Used 938,446k (± 0.02%) 950,169k (± 0.01%) +11,733k (+ 1.25%) 949,381k 950,590k p=0.000 n=20
Memory Allocs 13,260,675 (± 0.14%) 13,435,167 (± 0.12%) +175,195 (+ 1.32%) 13,384,433 13,509,146 p=0.000 n=20
Config Time 0.013s (± 1.45%) 0.013s (± 2.10%) +0.000s (+ 0.00%) 0.013s 0.015s p=0.037 n=20
Parse Time 0.337s (± 1.61%) 0.339s (± 1.99%) ~ 0.317s 0.360s p=0.869 n=20
Bind Time 0.084s (±11.82%) 0.087s (±11.86%) ~ 0.068s 0.139s p=0.766 n=20
Check Time 2.862s (± 0.54%) 2.908s (± 0.65%) +0.046s (+ 1.61%) 2.843s 2.962s p=0.005 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.318s (± 0.35%) 3.373s (± 0.44%) +0.057s (+ 1.72%) 3.324s 3.427s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,450 1,181,911 -539 (- 0.05%) ~ ~ p=0.000 n=20
Types 435,363 433,578 -1,785 (- 0.41%) ~ ~ p=0.000 n=20
Memory Used 1,167,406k (± 0.41%) 1,163,501k (± 0.33%) ~ 1,149,506k 1,184,900k p=0.245 n=20
Memory Allocs 39,916,808 (± 0.07%) 40,290,239 (± 0.08%) +373,629 (+ 0.94%) 40,145,048 40,395,484 p=0.000 n=20
Config Time 0.005s (± 8.42%) 0.005s (± 7.17%) ~ 0.004s 0.006s p=0.659 n=20
Parse Time 0.290s (± 1.49%) 0.290s (± 2.32%) ~ 0.265s 0.323s p=1.000 n=20
Bind Time 0.000s 0.000s (±208.60%) ~ 0.000s 0.004s p=1.000 n=20
Check Time 1.711s (± 0.46%) 1.719s (± 0.45%) ~ 1.683s 1.746s p=0.133 n=20
Emit Time 0.295s (± 1.76%) 0.299s (± 1.56%) ~ 0.277s 0.313s p=0.105 n=20
Total Time 20.381s (± 0.24%) 20.509s (± 0.26%) +0.135s (+ 0.66%) 20.252s 20.707s p=0.004 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,140 262,124 -16 (- 0.01%) ~ ~ p=0.000 n=20
Types 195,066 194,750 -316 (- 0.16%) ~ ~ p=0.000 n=20
Memory Used 220,985k (± 0.03%) 221,370k (± 0.02%) +378k (+ 0.17%) 221,113k 221,545k p=0.000 n=20
Memory Allocs 1,884,981 (± 0.02%) 1,903,067 (± 0.02%) +17,996 (+ 0.95%) 1,901,543 1,904,277 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.104s (± 3.10%) 0.106s (± 3.84%) ~ 0.091s 0.122s p=0.395 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.835s (± 0.55%) 0.841s (± 0.65%) ~ 0.827s 0.867s p=0.216 n=20
Emit Time 0.095s (± 5.10%) 0.093s (± 5.68%) ~ 0.083s 0.127s p=0.623 n=20
Total Time 1.085s (± 0.48%) 1.089s (± 0.60%) ~ 1.066s 1.122s p=0.245 n=20
t3code-server - native
⚠️ Failed failed
tanstack-router - native
⚠️ Failed failed
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,300 230,298 -2 (- 0.00%) ~ ~ p=0.000 n=20
Types 180,492 180,315 -177 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 190,452k (± 0.01%) 190,728k (± 0.01%) +281k (+ 0.15%) 190,602k 190,804k p=0.000 n=20
Memory Allocs 1,284,165 (± 0.01%) 1,297,808 (± 0.01%) +13,638 (+ 1.06%) 1,297,389 1,298,276 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.075s (± 3.60%) 0.073s (± 3.84%) ~ 0.062s 0.082s p=0.306 n=20
Bind Time 0.029s (± 6.61%) 0.029s (± 6.63%) ~ 0.022s 0.037s p=0.348 n=20
Check Time 0.538s (± 0.71%) 0.537s (± 0.86%) ~ 0.526s 0.555s p=0.701 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.653s (± 0.68%) 0.651s (± 0.65%) ~ 0.635s 0.665s p=0.468 n=20
vscode - native
⚠️ Failed failed
webpack - native
Errors 647 647 ~ ~ ~ p=1.000 n=20
Symbols 920,711 916,342 -4,369 (- 0.47%) ~ ~ p=0.000 n=20
Types 627,543 625,302 -2,241 (- 0.36%) ~ ~ p=0.000 n=20
Memory Used 741,903k (± 0.02%) 745,475k (± 0.01%) +3,576k (+ 0.48%) 744,944k 745,935k p=0.000 n=20
Memory Allocs 6,379,360 (± 0.28%) 6,497,948 (± 0.08%) +125,857 (+ 1.97%) 6,484,720 6,528,320 p=0.000 n=20
Config Time 0.008s (± 1.77%) 0.008s (± 2.10%) ~ 0.008s 0.009s p=0.270 n=20
Parse Time 0.295s (± 2.00%) 0.299s (± 2.56%) ~ 0.277s 0.336s p=0.452 n=20
Bind Time 0.090s (±12.32%) 0.093s (±11.24%) ~ 0.066s 0.130s p=0.841 n=20
Check Time 3.672s (± 0.37%) 3.783s (± 0.33%) +0.109s (+ 2.97%) 3.734s 3.835s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 4.109s (± 0.50%) 4.227s (± 0.46%) +0.123s (+ 3.00%) 4.145s 4.290s p=0.000 n=20
xstate-main - native
⚠️ Failed failed
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 1000 repos with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

ClickHouse/ClickStack

5 of 10 projects failed to build with the old tsc and were ignored

packages/cli/tsconfig.json

sindresorhus/type-fest

tsconfig.json

TypeCellOS/BlockNote

9 of 112 projects failed to build with the old tsc and were ignored

packages/math-block/tsconfig.json

packages/diagram-block/tsconfig.json

umijs/umi

53 of 86 projects failed to build with the old tsc and were ignored

packages/testing/tsconfig.json

packages/preset-umi/src/libs/folderCache/empty.tsconfig.json

packages/plugin-run/tsconfig.json

packages/create-umi/tsconfig.json

packages/core/tsconfig.json

packages/bundler-utils/tsconfig.json

packages/bundler-esbuild/tsconfig.json

packages/babel-preset-umi/tsconfig.json

copilot/tsconfig.json

codemod/tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are some more interesting changes from running the top 1000 repos suite

Details

vercel/ai

63 of 122 projects failed to build with the old tsc and were ignored

examples/node-http-server/tsconfig.json

examples/next-workflow/tsconfig.json

examples/next-openai-upstash-rate-limits/tsconfig.json

examples/next-openai-telemetry-sentry/tsconfig.json

examples/next-openai-telemetry/tsconfig.json

examples/next-openai-pages/tsconfig.json

examples/next-openai-kasada-bot-protection/tsconfig.json

examples/next-langchain/tsconfig.json

examples/next-google-vertex/tsconfig.json

examples/next-fastapi/tsconfig.json

  • error TS2307: Cannot find module 'ai' or its corresponding type declarations.
    • Project Scope
    • Project Scope
  • error TS7006: Parameter 'message' implicitly has an 'any' type.
    • Project Scope
    • Project Scope
    • Project Scope
  • error TS7006: Parameter 'part' implicitly has an 'any' type.
    • Project Scope
    • Project Scope
    • Project Scope
  • error TS7006: Parameter 'index' implicitly has an 'any' type.
    • Project Scope
    • Project Scope

examples/next-agent/tsconfig.json

examples/next/tsconfig.json

examples/nest/tsconfig.build.json

examples/mcp/tsconfig.json

examples/fastify/tsconfig.json

examples/angular/tsconfig.app.json

examples/angular/tsconfig.server.json

examples/ai-e2e-next/tsconfig.json

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) run dt
TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) test top1000
TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), this PR is in an unmergable state, so is missing a merge commit to run against; please resolve conflicts and try again.

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) run dt
TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) test top1000
TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
run dt ✅ Started 👀 Results
user test this ✅ Started 👀 Results
test top1000 ✅ Started 👀 Results
perf test this faster ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

There were interesting changes:

Branch only errors: amzn__synthetics-playwright

Package: amzn__synthetics-playwright

Branch error:

Project scope: tsconfig.json

SuppressedError: An error was suppressed during disposal.
    at fail (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/lintCorsa.js:60:40)
    at next (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/lintCorsa.js:75:21)
    at __disposeResources (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/lintCorsa.js:81:16)
    at lintCorsaVersions (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/lintCorsa.js:143:17)
    at lint (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/lint.js:51:64)
    at testTypesVersion (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:240:39)
    at runTests (/mnt/vss/_work/1/s/DefinitelyTyped-tools/packages/dtslint/dist/index.js:156:43)

Full output in the log.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

type-fest

tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,149 79,126 -23 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 106,297k (± 0.02%) 106,460k (± 0.03%) +161k (+ 0.15%) 106,348k 106,612k p=0.000 n=20
Memory Allocs 1,045,692 (± 0.01%) 1,050,600 (± 0.01%) +4,880 (+ 0.47%) 1,050,326 1,051,386 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.036s (± 2.47%) 0.036s (± 2.54%) ~ 0.032s 0.039s p=0.732 n=20
Bind Time 0.013s (± 8.16%) 0.011s (± 7.55%) 🟩-0.002s (-18.35%) 0.009s 0.016s p=0.005 n=20
Check Time 0.379s (± 0.67%) 0.378s (± 0.57%) ~ 0.369s 0.386s p=0.641 n=20
Emit Time 0.214s (± 0.77%) 0.215s (± 0.96%) ~ 0.210s 0.225s p=0.365 n=20
Total Time 0.649s (± 0.56%) 0.647s (± 0.52%) ~ 0.629s 0.662s p=0.522 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,865 752,683 -1,182 (- 0.16%) ~ ~ p=0.000 n=20
Types 546,772 541,492 -5,280 (- 0.97%) ~ ~ p=0.000 n=20
Memory Used 642,193k (± 0.02%) 643,979k (± 0.01%) +1,793k (+ 0.28%) 643,697k 644,265k p=0.000 n=20
Memory Allocs 8,312,331 (± 0.06%) 8,489,664 (± 0.05%) +179,124 (+ 2.15%) 8,483,945 8,522,650 p=0.000 n=20
Config Time 0.013s (± 0.81%) 0.013s (± 1.10%) ~ 0.013s 0.014s p=0.174 n=20
Parse Time 0.207s (± 2.22%) 0.206s (± 2.41%) ~ 0.189s 0.222s p=0.622 n=20
Bind Time 0.063s (± 9.72%) 0.064s (±11.38%) ~ 0.052s 0.099s p=0.579 n=20
Check Time 1.099s (± 0.93%) 1.114s (± 0.88%) +0.015s (+ 1.41%) 1.079s 1.148s p=0.009 n=20
Emit Time 0.732s (± 0.70%) 0.744s (± 0.93%) +0.012s (+ 1.70%) 0.726s 0.767s p=0.011 n=20
Total Time 2.131s (± 0.56%) 2.159s (± 0.52%) +0.029s (+ 1.36%) 2.108s 2.199s p=0.002 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,789 665,575 -11,214 (- 1.66%) ~ ~ p=0.000 n=20
Types 937,638 912,473 -25,165 (- 2.68%) ~ ~ p=0.000 n=20
Memory Used 473,815k (± 0.01%) 474,679k (± 0.01%) +859k (+ 0.18%) 474,535k 474,886k p=0.000 n=20
Memory Allocs 11,788,895 (± 0.01%) 11,411,007 (± 0.02%) 🟩-378,330 (- 3.21%) 11,407,786 11,428,329 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.068s (± 3.35%) 0.067s (± 1.99%) ~ 0.063s 0.073s p=0.794 n=20
Bind Time 0.020s (± 8.47%) 0.020s (± 7.99%) ~ 0.017s 0.029s p=0.477 n=20
Check Time 1.464s (± 0.62%) 1.528s (± 0.66%) 🔻+0.062s (+ 4.26%) 1.491s 1.567s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.599s (± 0.42%) 1.662s (± 0.60%) +0.063s (+ 3.92%) 1.617s 1.695s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,321 -57 (- 0.13%) ~ ~ p=0.000 n=20
Types 7,565 7,211 🟩-354 (- 4.68%) ~ ~ p=0.000 n=20
Memory Used 27,701k (± 0.03%) 27,683k (± 0.03%) -18k (- 0.07%) 27,648k 27,719k p=0.001 n=20
Memory Allocs 231,639 (± 0.02%) 236,637 (± 0.04%) +4,987 (+ 2.15%) 236,347 237,043 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.017s (± 3.56%) 0.016s (± 3.45%) ~ 0.014s 0.019s p=0.205 n=20
Bind Time 0.005s (±11.92%) 0.006s (±11.07%) ~ 0.004s 0.008s p=0.093 n=20
Check Time 0.016s (± 5.96%) 0.015s (± 5.84%) ~ 0.013s 0.018s p=0.305 n=20
Emit Time 0.013s (± 6.54%) 0.014s (± 6.52%) ~ 0.012s 0.017s p=0.160 n=20
Total Time 0.053s (± 1.39%) 0.052s (± 1.34%) ~ 0.050s 0.056s p=0.737 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,348 1,227,121 -7,227 (- 0.59%) ~ ~ p=0.000 n=20
Types 892,415 885,301 -7,114 (- 0.80%) ~ ~ p=0.000 n=20
Memory Used 940,236k (± 0.01%) 943,961k (± 0.01%) +3,744k (+ 0.40%) 943,488k 944,479k p=0.000 n=20
Memory Allocs 11,704,264 (± 0.03%) 11,786,051 (± 0.01%) +82,925 (+ 0.71%) 11,780,949 11,791,795 p=0.000 n=20
Config Time 0.006s 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.329s (± 1.51%) 0.329s (± 1.47%) ~ 0.313s 0.350s p=0.956 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.821s (± 0.68%) 1.846s (± 0.55%) +0.028s (+ 1.52%) 1.807s 1.882s p=0.011 n=20
Emit Time 0.956s (± 3.00%) 0.950s (± 3.26%) ~ 0.840s 1.057s p=0.756 n=20
Total Time 3.280s (± 0.79%) 3.304s (± 0.76%) ~ 3.212s 3.427s p=0.231 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,413 3,600,578 -91,835 (- 2.49%) ~ ~ p=0.000 n=20
Types 1,351,476 1,273,877 🟩-77,599 (- 5.74%) ~ ~ p=0.000 n=20
Memory Used 1,652,404k (± 0.06%) 1,677,275k (± 0.09%) +24,780k (+ 1.50%) 1,671,790k 1,681,908k p=0.000 n=20
Memory Allocs 24,337,735 (± 0.11%) 24,833,121 (± 0.05%) +506,281 (+ 2.08%) 24,785,432 24,867,460 p=0.000 n=20
Config Time 0.016s (± 0.90%) 0.016s (± 0.65%) ~ 0.015s 0.016s p=1.000 n=20
Parse Time 0.544s (± 2.07%) 0.541s (± 1.68%) ~ 0.503s 0.568s p=0.648 n=20
Bind Time 0.002s (±18.96%) 0.002s (±18.87%) ~ 0.002s 0.006s p=1.000 n=20
Check Time 5.466s (± 0.47%) 5.509s (± 0.39%) +0.036s (+ 0.66%) 5.456s 5.642s p=0.009 n=20
Emit Time 0.589s (± 4.87%) 0.658s (± 6.75%) 🔻+0.068s (+11.62%) 0.492s 0.743s p=0.004 n=20
Total Time 7.559s (± 0.56%) 7.659s (± 0.39%) +0.098s (+ 1.30%) 7.532s 7.748s p=0.000 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,608 4,705,279 -76,329 (- 1.60%) ~ ~ p=0.000 n=20
Types 2,590,379 2,502,180 🟩-88,199 (- 3.40%) ~ ~ p=0.000 n=20
Memory Used 2,791,179k (± 0.03%) 2,824,384k (± 0.03%) +33,094k (+ 1.19%) 2,821,962k 2,828,346k p=0.000 n=20
Memory Allocs 73,769,995 (± 0.05%) 74,807,397 (± 0.12%) +1,025,662 (+ 1.39%) 74,486,561 75,391,547 p=0.000 n=20
Config Time 0.044s (± 0.71%) 0.044s (± 0.63%) ~ 0.043s 0.045s p=0.395 n=20
Parse Time 0.998s (± 2.00%) 0.987s (± 2.22%) ~ 0.909s 1.090s p=0.368 n=20
Bind Time 0.283s (± 9.17%) 0.286s (± 9.19%) ~ 0.231s 0.445s p=0.560 n=20
Check Time 13.188s (± 0.37%) 13.419s (± 0.38%) +0.231s (+ 1.75%) 13.266s 13.627s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.580s (± 0.34%) 14.807s (± 0.37%) +0.232s (+ 1.59%) 14.632s 15.091s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,936 1,830,007 -8,929 (- 0.49%) ~ ~ p=0.000 n=20
Types 1,146,790 1,136,421 -10,369 (- 0.90%) ~ ~ p=0.000 n=20
Memory Used 938,433k (± 0.01%) 950,068k (± 0.02%) +11,615k (+ 1.24%) 949,658k 950,811k p=0.000 n=20
Memory Allocs 13,231,801 (± 0.10%) 13,435,322 (± 0.10%) +202,255 (+ 1.53%) 13,385,094 13,493,953 p=0.000 n=20
Config Time 0.013s (± 1.75%) 0.013s (± 1.56%) ~ 0.013s 0.014s p=0.516 n=20
Parse Time 0.331s (± 1.90%) 0.334s (± 1.46%) ~ 0.310s 0.350s p=0.571 n=20
Bind Time 0.090s (±12.32%) 0.079s (± 9.43%) ~ 0.070s 0.130s p=0.117 n=20
Check Time 2.862s (± 0.64%) 2.937s (± 0.55%) +0.069s (+ 2.41%) 2.853s 2.994s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.320s (± 0.39%) 3.385s (± 0.40%) +0.064s (+ 1.91%) 3.332s 3.442s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,450 1,180,901 -1,549 (- 0.13%) ~ ~ p=0.000 n=20
Types 435,363 433,532 -1,831 (- 0.42%) ~ ~ p=0.000 n=20
Memory Used 1,164,902k (± 0.35%) 1,167,451k (± 0.35%) ~ 1,155,478k 1,185,526k p=0.330 n=20
Memory Allocs 39,926,071 (± 0.06%) 40,293,471 (± 0.08%) +365,956 (+ 0.92%) 40,145,611 40,395,983 p=0.000 n=20
Config Time 0.005s (±12.48%) 0.005s (± 7.78%) ~ 0.003s 0.006s p=0.474 n=20
Parse Time 0.291s (± 1.43%) 0.291s (± 1.71%) ~ 0.271s 0.312s p=0.922 n=20
Bind Time 0.000s (±208.60%) 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.705s (± 0.39%) 1.714s (± 0.44%) ~ 1.694s 1.755s p=0.090 n=20
Emit Time 0.303s (± 1.86%) 0.298s (± 1.85%) ~ 0.274s 0.320s p=0.123 n=20
Total Time 20.437s (± 0.37%) 20.415s (± 0.35%) ~ 20.188s 20.688s p=0.829 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,140 262,111 -29 (- 0.01%) ~ ~ p=0.000 n=20
Types 195,066 194,749 -317 (- 0.16%) ~ ~ p=0.000 n=20
Memory Used 220,981k (± 0.02%) 221,348k (± 0.02%) +377k (+ 0.17%) 221,144k 221,552k p=0.000 n=20
Memory Allocs 1,885,118 (± 0.02%) 1,902,636 (± 0.02%) +17,489 (+ 0.93%) 1,900,582 1,904,078 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.105s (± 3.47%) 0.100s (± 2.44%) 🟩-0.005s (- 4.50%) 0.091s 0.113s p=0.017 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.834s (± 0.37%) 0.831s (± 0.42%) ~ 0.821s 0.844s p=0.255 n=20
Emit Time 0.086s (± 4.03%) 0.091s (± 4.16%) ~ 0.080s 0.104s p=0.123 n=20
Total Time 1.073s (± 0.42%) 1.071s (± 0.60%) ~ 1.043s 1.096s p=0.832 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,344,903 4,260,071 -84,832 (- 1.95%) ~ ~ p=0.000 n=20
Types 3,038,847 3,006,168 -32,679 (- 1.08%) ~ ~ p=0.000 n=20
Memory Used 2,392,906k (± 0.02%) 2,394,945k (± 0.03%) +1,815k (+ 0.08%) 2,392,751k 2,400,193k p=0.000 n=20
Memory Allocs 36,909,550 (± 0.03%) 37,667,234 (± 0.04%) +759,086 (+ 2.06%) 37,616,159 37,738,053 p=0.000 n=20
Config Time 0.005s (± 5.10%) 0.005s (± 2.93%) 🔻+0.001s (+11.80%) 0.004s 0.005s p=0.009 n=20
Parse Time 0.432s (± 2.74%) 0.440s (± 2.12%) +0.009s (+ 2.19%) 0.403s 0.487s p=0.027 n=20
Bind Time 0.123s (± 9.73%) 0.121s (±10.21%) ~ 0.105s 0.194s p=0.920 n=20
Check Time 10.117s (± 0.35%) 10.179s (± 0.25%) +0.065s (+ 0.64%) 10.106s 10.298s p=0.004 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.691s (± 0.36%) 10.758s (± 0.29%) +0.066s (+ 0.62%) 10.672s 10.901s p=0.006 n=20
tanstack-router - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 567,192 561,732 -5,460 (- 0.96%) ~ ~ p=0.000 n=20
Types 395,857 385,936 -9,921 (- 2.51%) ~ ~ p=0.000 n=20
Memory Used 314,545k (± 0.01%) 315,441k (± 0.02%) +888k (+ 0.28%) 315,201k 315,651k p=0.000 n=20
Memory Allocs 4,145,480 (± 0.04%) 4,232,456 (± 0.04%) +87,352 (+ 2.11%) 4,228,250 4,240,236 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.083s (± 2.80%) 0.083s (± 3.07%) ~ 0.072s 0.091s p=0.955 n=20
Bind Time 0.027s (±14.37%) 0.028s (±10.56%) ~ 0.020s 0.041s p=0.601 n=20
Check Time 1.008s (± 0.69%) 1.018s (± 0.48%) +0.011s (+ 1.09%) 0.999s 1.038s p=0.017 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.148s (± 0.67%) 1.160s (± 0.67%) +0.012s (+ 1.04%) 1.138s 1.188s p=0.040 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,300 230,298 -2 (- 0.00%) ~ ~ p=0.000 n=20
Types 180,492 180,315 -177 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 190,413k (± 0.01%) 190,696k (± 0.02%) +287k (+ 0.15%) 190,561k 190,843k p=0.000 n=20
Memory Allocs 1,284,081 (± 0.01%) 1,297,584 (± 0.01%) +13,552 (+ 1.06%) 1,297,009 1,298,156 p=0.000 n=20
Config Time 0.001s (±15.95%) 0.001s (±10.98%) ~ 0.000s 0.001s p=1.000 n=20
Parse Time 0.088s (± 3.14%) 0.091s (± 3.85%) ~ 0.077s 0.105s p=0.182 n=20
Bind Time 0.038s (± 7.63%) 0.036s (± 6.45%) ~ 0.028s 0.046s p=0.349 n=20
Check Time 0.642s (± 0.75%) 0.646s (± 0.72%) ~ 0.628s 0.663s p=0.368 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.782s (± 0.59%) 0.787s (± 0.62%) ~ 0.768s 0.810s p=0.133 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,682,670 8,351,746 🟩-330,924 (- 3.81%) ~ ~ p=0.000 n=20
Types 5,024,462 4,723,509 🟩-300,953 (- 5.99%) ~ ~ p=0.000 n=20
Memory Used 5,786,115k (± 0.02%) 5,701,199k (± 0.02%) -85,022k (- 1.47%) 5,697,783k 5,704,430k p=0.000 n=20
Memory Allocs 64,198,832 (± 0.00%) 67,507,824 (± 0.03%) 🔻+3,297,412 (+ 5.14%) 67,484,827 67,649,573 p=0.000 n=20
Config Time 0.047s (± 0.67%) 0.047s (± 0.61%) ~ 0.046s 0.048s p=0.685 n=20
Parse Time 1.733s (± 1.90%) 1.717s (± 1.68%) ~ 1.620s 1.850s p=0.729 n=20
Bind Time 0.535s (± 9.41%) 0.547s (± 9.54%) ~ 0.465s 0.908s p=0.640 n=20
Check Time 14.088s (± 0.30%) 14.200s (± 0.60%) +0.134s (+ 0.95%) 13.803s 14.430s p=0.036 n=20
Emit Time 4.279s (± 7.38%) 4.442s (± 7.09%) ~ 3.678s 5.394s p=0.430 n=20
Total Time 20.754s (± 1.58%) 21.023s (± 1.37%) ~ 20.323s 22.038s p=0.189 n=20
webpack - native
Errors 649 649 ~ ~ ~ p=1.000 n=20
Symbols 931,404 926,570 -4,834 (- 0.52%) ~ ~ p=0.000 n=20
Types 637,939 635,500 -2,439 (- 0.38%) ~ ~ p=0.000 n=20
Memory Used 750,172k (± 0.01%) 754,547k (± 0.01%) +4,360k (+ 0.58%) 754,060k 754,868k p=0.000 n=20
Memory Allocs 6,455,645 (± 0.16%) 6,582,798 (± 0.12%) +128,300 (+ 1.99%) 6,569,737 6,644,522 p=0.000 n=20
Config Time 0.008s 0.008s (± 1.77%) ~ 0.008s 0.009s p=0.346 n=20
Parse Time 0.313s (± 2.62%) 0.312s (± 2.03%) ~ 0.282s 0.333s p=0.860 n=20
Bind Time 0.078s (±10.69%) 0.083s (±11.80%) ~ 0.066s 0.124s p=0.257 n=20
Check Time 3.448s (± 0.42%) 3.539s (± 0.48%) +0.089s (+ 2.58%) 3.487s 3.601s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.889s (± 0.53%) 3.985s (± 0.61%) +0.096s (+ 2.46%) 3.926s 4.075s p=0.000 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,089,749 3,545,528 🟩-544,221 (-13.31%) ~ ~ p=0.000 n=20
Types 4,206,415 3,357,121 🟩-849,294 (-20.19%) ~ ~ p=0.000 n=20
Memory Used 2,246,659k (± 0.01%) 1,952,289k (± 0.01%) 🟩-294,378k (-13.10%) 1,951,507k 1,953,326k p=0.000 n=20
Memory Allocs 45,015,160 (± 0.01%) 38,612,649 (± 0.02%) 🟩-6,404,373 (-14.23%) 38,590,948 38,665,847 p=0.000 n=20
Config Time 0.004s (± 2.64%) 0.004s ~ ~ ~ p=1.000 n=20
Parse Time 0.201s (± 1.77%) 0.199s (± 2.58%) ~ 0.182s 0.221s p=0.332 n=20
Bind Time 0.059s (± 9.95%) 0.065s (±11.04%) ~ 0.051s 0.097s p=0.207 n=20
Check Time 8.433s (± 0.27%) 7.901s (± 0.24%) 🟩-0.533s (- 6.32%) 7.859s 8.034s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 8.705s (± 0.25%) 8.177s (± 0.23%) 🟩-0.532s (- 6.12%) 8.123s 8.299s p=0.000 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 1000 repos with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

sindresorhus/type-fest

tsconfig.json

TypeCellOS/BlockNote

9 of 112 projects failed to build with the old tsc and were ignored

packages/math-block/tsconfig.json

packages/diagram-block/tsconfig.json

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) run dt
TypeScript Bot (@typescript-bot) user test this
TypeScript Bot (@typescript-bot) test top1000
TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
run dt ✅ Started ✅ Results
user test this ✅ Started ✅ Results
test top1000 ✅ Started 👀 Results
perf test this faster ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Everything looks good!

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,149 79,126 -23 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 106,269k (± 0.03%) 106,445k (± 0.03%) +178k (+ 0.17%) 106,333k 106,579k p=0.000 n=20
Memory Allocs 1,045,740 (± 0.01%) 1,050,563 (± 0.00%) +4,833 (+ 0.46%) 1,050,431 1,050,704 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.037s (± 2.85%) 0.037s (± 2.37%) ~ 0.033s 0.040s p=0.931 n=20
Bind Time 0.012s (± 8.92%) 0.011s (± 8.09%) ~ 0.010s 0.016s p=0.330 n=20
Check Time 0.377s (± 0.74%) 0.381s (± 0.68%) ~ 0.372s 0.397s p=0.061 n=20
Emit Time 0.215s (± 0.77%) 0.216s (± 1.31%) ~ 0.209s 0.227s p=0.347 n=20
Total Time 0.647s (± 0.63%) 0.651s (± 0.73%) ~ 0.638s 0.681s p=0.294 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,865 752,683 -1,182 (- 0.16%) ~ ~ p=0.000 n=20
Types 546,772 541,489 -5,283 (- 0.97%) ~ ~ p=0.000 n=20
Memory Used 642,153k (± 0.01%) 644,085k (± 0.02%) +1,923k (+ 0.30%) 643,814k 644,535k p=0.000 n=20
Memory Allocs 8,312,334 (± 0.09%) 8,491,304 (± 0.03%) +182,349 (+ 2.19%) 8,485,918 8,502,712 p=0.000 n=20
Config Time 0.013s (± 1.41%) 0.013s (± 0.80%) ~ 0.013s 0.014s p=0.581 n=20
Parse Time 0.203s (± 2.43%) 0.210s (± 2.14%) ~ 0.192s 0.234s p=0.081 n=20
Bind Time 0.073s (±12.54%) 0.059s (± 8.27%) 🟩-0.014s (-18.66%) 0.052s 0.090s p=0.026 n=20
Check Time 1.090s (± 0.72%) 1.120s (± 0.58%) +0.030s (+ 2.79%) 1.088s 1.144s p=0.000 n=20
Emit Time 0.729s (± 1.00%) 0.747s (± 1.00%) +0.015s (+ 2.10%) 0.725s 0.776s p=0.001 n=20
Total Time 2.128s (± 0.69%) 2.166s (± 0.39%) +0.032s (+ 1.51%) 2.136s 2.195s p=0.000 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,789 666,417 -10,372 (- 1.53%) ~ ~ p=0.000 n=20
Types 937,638 916,927 -20,711 (- 2.21%) ~ ~ p=0.000 n=20
Memory Used 473,905k (± 0.01%) 476,345k (± 0.01%) +2,435k (+ 0.51%) 476,145k 476,663k p=0.000 n=20
Memory Allocs 11,788,369 (± 0.01%) 11,453,403 (± 0.01%) -334,585 (- 2.84%) 11,450,471 11,455,712 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.066s (± 2.86%) 0.067s (± 3.29%) ~ 0.058s 0.076s p=0.756 n=20
Bind Time 0.020s (±10.86%) 0.019s (± 9.46%) ~ 0.017s 0.032s p=0.127 n=20
Check Time 1.458s (± 0.40%) 1.527s (± 0.56%) 🔻+0.071s (+ 4.90%) 1.495s 1.569s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.588s (± 0.43%) 1.659s (± 0.59%) 🔻+0.073s (+ 4.59%) 1.622s 1.697s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,321 -57 (- 0.13%) ~ ~ p=0.000 n=20
Types 7,565 7,211 🟩-354 (- 4.68%) ~ ~ p=0.000 n=20
Memory Used 27,702k (± 0.02%) 27,678k (± 0.03%) -24k (- 0.08%) 27,649k 27,710k p=0.001 n=20
Memory Allocs 231,594 (± 0.04%) 236,756 (± 0.07%) +5,104 (+ 2.20%) 236,343 237,964 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.016s (± 3.85%) 0.017s (± 2.66%) ~ 0.015s 0.019s p=0.619 n=20
Bind Time 0.005s (±10.30%) 0.006s (±12.86%) ~ 0.004s 0.008s p=0.319 n=20
Check Time 0.016s (± 8.97%) 0.015s (± 6.53%) ~ 0.013s 0.018s p=0.408 n=20
Emit Time 0.013s (± 5.70%) 0.015s (± 7.62%) 🔻+0.002s (+12.92%) 0.012s 0.018s p=0.016 n=20
Total Time 0.053s (± 2.27%) 0.054s (± 1.84%) +0.001s (+ 2.83%) 0.049s 0.057s p=0.033 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,348 1,227,083 -7,265 (- 0.59%) ~ ~ p=0.000 n=20
Types 892,415 885,720 -6,695 (- 0.75%) ~ ~ p=0.000 n=20
Memory Used 940,376k (± 0.01%) 944,126k (± 0.01%) +3,776k (+ 0.40%) 943,827k 944,328k p=0.000 n=20
Memory Allocs 11,702,953 (± 0.01%) 11,795,531 (± 0.01%) +92,937 (+ 0.79%) 11,790,762 11,800,538 p=0.000 n=20
Config Time 0.006s (± 6.73%) 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.327s (± 1.15%) 0.329s (± 1.50%) ~ 0.301s 0.343s p=0.522 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.810s (± 0.46%) 1.843s (± 0.45%) +0.034s (+ 1.90%) 1.820s 1.876s p=0.000 n=20
Emit Time 0.968s (± 3.07%) 0.966s (± 2.43%) ~ 0.884s 1.051s p=0.985 n=20
Total Time 3.288s (± 0.84%) 3.322s (± 0.66%) +0.033s (+ 1.01%) 3.236s 3.408s p=0.040 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,413 3,593,308 -99,105 (- 2.68%) ~ ~ p=0.000 n=20
Types 1,351,476 1,254,299 🟩-97,177 (- 7.19%) ~ ~ p=0.000 n=20
Memory Used 1,652,800k (± 0.08%) 1,655,697k (± 0.08%) +2,905k (+ 0.18%) 1,650,106k 1,661,702k p=0.002 n=20
Memory Allocs 24,334,091 (± 0.05%) 24,757,633 (± 0.05%) +423,640 (+ 1.74%) 24,721,287 24,811,512 p=0.000 n=20
Config Time 0.016s (± 1.32%) 0.016s (± 0.95%) 0.000s ( 0.00%) 0.015s 0.017s p=0.048 n=20
Parse Time 0.545s (± 1.94%) 0.549s (± 1.58%) ~ 0.511s 0.578s p=0.490 n=20
Bind Time 0.002s (± 9.53%) 0.002s (± 5.09%) -0.000s (- 0.00%) 0.002s 0.003s p=0.024 n=20
Check Time 5.461s (± 0.39%) 5.453s (± 0.34%) ~ 5.399s 5.572s p=0.202 n=20
Emit Time 0.575s (± 5.06%) 0.644s (± 7.14%) 🔻+0.066s (+11.44%) 0.489s 0.747s p=0.012 n=20
Total Time 7.535s (± 0.70%) 7.585s (± 0.61%) ~ 7.360s 7.698s p=0.076 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,608 4,705,279 -76,329 (- 1.60%) ~ ~ p=0.000 n=20
Types 2,590,379 2,502,221 🟩-88,158 (- 3.40%) ~ ~ p=0.000 n=20
Memory Used 2,791,353k (± 0.03%) 2,823,682k (± 0.03%) +32,471k (+ 1.16%) 2,821,428k 2,830,693k p=0.000 n=20
Memory Allocs 73,772,340 (± 0.07%) 74,863,133 (± 0.12%) +1,091,513 (+ 1.48%) 74,576,731 75,475,241 p=0.000 n=20
Config Time 0.044s (± 0.69%) 0.044s (± 0.83%) ~ 0.043s 0.046s p=0.759 n=20
Parse Time 0.969s (± 2.36%) 1.011s (± 1.80%) 🔻+0.040s (+ 4.09%) 0.943s 1.133s p=0.009 n=20
Bind Time 0.328s (±12.14%) 0.276s (± 9.65%) ~ 0.241s 0.442s p=0.053 n=20
Check Time 13.167s (± 0.52%) 13.500s (± 0.22%) +0.338s (+ 2.57%) 13.315s 13.598s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.578s (± 0.48%) 14.896s (± 0.24%) +0.334s (+ 2.29%) 14.704s 15.103s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,936 1,830,007 -8,929 (- 0.49%) ~ ~ p=0.000 n=20
Types 1,146,790 1,136,444 -10,346 (- 0.90%) ~ ~ p=0.000 n=20
Memory Used 938,461k (± 0.01%) 950,117k (± 0.01%) +11,658k (+ 1.24%) 949,701k 950,799k p=0.000 n=20
Memory Allocs 13,249,695 (± 0.13%) 13,432,291 (± 0.12%) +184,552 (+ 1.39%) 13,387,629 13,505,710 p=0.000 n=20
Config Time 0.013s (± 2.05%) 0.013s (± 1.77%) ~ 0.013s 0.014s p=0.221 n=20
Parse Time 0.335s (± 2.00%) 0.331s (± 1.67%) ~ 0.310s 0.359s p=0.409 n=20
Bind Time 0.085s (±12.52%) 0.085s (±10.45%) ~ 0.068s 0.125s p=0.862 n=20
Check Time 2.868s (± 0.58%) 2.926s (± 0.57%) +0.057s (+ 1.99%) 2.858s 2.971s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.325s (± 0.34%) 3.380s (± 0.33%) +0.053s (+ 1.61%) 3.337s 3.420s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,450 1,180,901 -1,549 (- 0.13%) ~ ~ p=0.000 n=20
Types 435,363 433,538 -1,825 (- 0.42%) ~ ~ p=0.000 n=20
Memory Used 1,166,040k (± 0.34%) 1,166,339k (± 0.43%) ~ 1,152,993k 1,188,263k p=0.869 n=20
Memory Allocs 39,930,383 (± 0.07%) 40,305,635 (± 0.10%) +377,669 (+ 0.95%) 40,082,529 40,430,391 p=0.000 n=20
Config Time 0.005s (± 8.46%) 0.005s (± 9.71%) ~ 0.004s 0.008s p=0.448 n=20
Parse Time 0.288s (± 1.54%) 0.294s (± 1.74%) ~ 0.268s 0.322s p=0.090 n=20
Bind Time 0.000s (±208.60%) 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.704s (± 0.50%) 1.714s (± 0.48%) ~ 1.682s 1.744s p=0.177 n=20
Emit Time 0.299s (± 2.58%) 0.301s (± 1.84%) ~ 0.281s 0.320s p=0.571 n=20
Total Time 20.334s (± 0.35%) 20.428s (± 0.30%) +0.100s (+ 0.49%) 20.208s 20.669s p=0.040 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,140 262,111 -29 (- 0.01%) ~ ~ p=0.000 n=20
Types 195,066 194,753 -313 (- 0.16%) ~ ~ p=0.000 n=20
Memory Used 221,020k (± 0.03%) 221,396k (± 0.02%) +366k (+ 0.17%) 221,148k 221,563k p=0.000 n=20
Memory Allocs 1,884,987 (± 0.02%) 1,904,500 (± 0.02%) +19,644 (+ 1.04%) 1,903,075 1,905,610 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.104s (± 2.83%) 0.106s (± 2.99%) ~ 0.095s 0.121s p=0.615 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.833s (± 0.44%) 0.833s (± 0.47%) ~ 0.820s 0.854s p=0.828 n=20
Emit Time 0.092s (± 5.39%) 0.090s (± 4.86%) ~ 0.079s 0.118s p=0.201 n=20
Total Time 1.078s (± 0.58%) 1.076s (± 0.62%) ~ 1.048s 1.102s p=0.729 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,344,903 4,260,071 -84,832 (- 1.95%) ~ ~ p=0.000 n=20
Types 3,038,847 3,006,187 -32,660 (- 1.07%) ~ ~ p=0.000 n=20
Memory Used 2,392,462k (± 0.02%) 2,393,920k (± 0.02%) +1,500k (+ 0.06%) 2,392,598k 2,396,814k p=0.000 n=20
Memory Allocs 36,904,475 (± 0.05%) 37,671,439 (± 0.04%) +768,398 (+ 2.08%) 37,621,652 37,749,846 p=0.000 n=20
Config Time 0.006s (± 2.43%) 0.006s (± 2.52%) ~ 0.005s 0.007s p=0.571 n=20
Parse Time 0.557s (± 1.86%) 0.553s (± 1.67%) ~ 0.516s 0.581s p=0.674 n=20
Bind Time 0.144s (± 6.20%) 0.139s (± 2.02%) ~ 0.127s 0.155s p=0.818 n=20
Check Time 12.102s (± 0.52%) 12.296s (± 0.69%) +0.184s (+ 1.52%) 12.017s 12.690s p=0.004 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.826s (± 0.53%) 13.011s (± 0.63%) +0.181s (+ 1.41%) 12.720s 13.376s p=0.009 n=20
tanstack-router - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 567,192 561,513 -5,679 (- 1.00%) ~ ~ p=0.000 n=20
Types 395,857 384,476 -11,381 (- 2.88%) ~ ~ p=0.000 n=20
Memory Used 314,510k (± 0.02%) 314,993k (± 0.01%) +499k (+ 0.16%) 314,821k 315,147k p=0.000 n=20
Memory Allocs 4,145,834 (± 0.04%) 4,227,933 (± 0.12%) +80,673 (+ 1.95%) 4,221,998 4,272,544 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.083s (± 3.82%) 0.081s (± 3.60%) ~ 0.070s 0.090s p=0.587 n=20
Bind Time 0.024s (±11.83%) 0.026s (±12.67%) ~ 0.020s 0.040s p=0.414 n=20
Check Time 1.008s (± 0.43%) 1.022s (± 0.48%) +0.014s (+ 1.43%) 0.997s 1.036s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.143s (± 0.37%) 1.161s (± 0.59%) +0.017s (+ 1.45%) 1.132s 1.192s p=0.000 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,300 230,298 -2 (- 0.00%) ~ ~ p=0.000 n=20
Types 180,492 180,318 -174 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 190,417k (± 0.02%) 190,752k (± 0.01%) +337k (+ 0.18%) 190,642k 190,851k p=0.000 n=20
Memory Allocs 1,284,142 (± 0.01%) 1,298,842 (± 0.01%) +14,732 (+ 1.15%) 1,298,167 1,299,776 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.073s (± 2.23%) 0.073s (± 3.33%) ~ 0.063s 0.082s p=0.763 n=20
Bind Time 0.029s (± 6.28%) 0.029s (± 9.21%) ~ 0.022s 0.040s p=0.670 n=20
Check Time 0.534s (± 0.62%) 0.533s (± 0.59%) ~ 0.523s 0.547s p=0.622 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.648s (± 0.50%) 0.646s (± 0.46%) ~ 0.636s 0.666s p=0.622 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,682,600 8,347,479 🟩-335,121 (- 3.86%) ~ ~ p=0.000 n=20
Types 5,023,503 4,721,195 🟩-302,308 (- 6.02%) ~ ~ p=0.000 n=20
Memory Used 5,790,207k (± 0.02%) 5,705,455k (± 0.01%) -84,751k (- 1.46%) 5,702,385k 5,707,381k p=0.000 n=20
Memory Allocs 64,224,640 (± 0.02%) 66,632,430 (± 0.02%) +2,410,587 (+ 3.75%) 66,617,518 66,713,749 p=0.000 n=20
Config Time 0.047s (± 0.83%) 0.046s (± 0.69%) ~ 0.045s 0.048s p=0.626 n=20
Parse Time 1.755s (± 1.07%) 1.743s (± 1.58%) ~ 1.592s 1.834s p=0.729 n=20
Bind Time 0.504s (± 4.19%) 0.514s (± 8.27%) ~ 0.465s 0.847s p=0.609 n=20
Check Time 13.917s (± 0.39%) 14.044s (± 0.59%) +0.159s (+ 1.14%) 13.591s 14.308s p=0.036 n=20
Emit Time 3.896s (± 6.30%) 3.985s (± 7.35%) ~ 3.545s 5.345s p=0.784 n=20
Total Time 20.186s (± 1.17%) 20.400s (± 1.20%) ~ 20.041s 21.486s p=0.083 n=20
webpack - native
Errors 654 654 ~ ~ ~ p=1.000 n=20
Symbols 936,915 932,004 -4,911 (- 0.52%) ~ ~ p=0.000 n=20
Types 643,102 639,629 -3,473 (- 0.54%) ~ ~ p=0.000 n=20
Memory Used 755,889k (± 0.01%) 759,650k (± 0.02%) +3,802k (+ 0.50%) 758,914k 760,219k p=0.000 n=20
Memory Allocs 6,498,810 (± 0.11%) 6,635,952 (± 0.13%) +136,599 (+ 2.10%) 6,620,122 6,682,028 p=0.000 n=20
Config Time 0.007s (± 2.82%) 0.007s (± 3.07%) ~ 0.006s 0.007s p=0.777 n=20
Parse Time 0.243s (± 2.94%) 0.245s (± 2.37%) ~ 0.222s 0.265s p=0.546 n=20
Bind Time 0.075s (±13.02%) 0.073s (±14.21%) ~ 0.053s 0.115s p=0.595 n=20
Check Time 2.876s (± 0.34%) 2.960s (± 0.43%) +0.084s (+ 2.92%) 2.925s 3.004s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.236s (± 0.43%) 3.320s (± 0.54%) +0.082s (+ 2.54%) 3.267s 3.387s p=0.000 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,115,559 3,567,597 🟩-547,962 (-13.31%) ~ ~ p=0.000 n=20
Types 4,217,211 3,365,513 🟩-851,698 (-20.20%) ~ ~ p=0.000 n=20
Memory Used 2,271,342k (± 0.01%) 1,967,964k (± 0.01%) 🟩-303,396k (-13.36%) 1,967,321k 1,968,694k p=0.000 n=20
Memory Allocs 45,230,701 (± 0.01%) 38,894,586 (± 0.01%) 🟩-6,333,353 (-14.00%) 38,875,683 38,913,169 p=0.000 n=20
Config Time 0.005s (± 4.36%) 0.005s (± 4.67%) ~ 0.004s 0.005s p=0.783 n=20
Parse Time 0.254s (± 2.39%) 0.251s (± 1.95%) ~ 0.230s 0.265s p=0.441 n=20
Bind Time 0.074s (± 8.98%) 0.074s (± 9.55%) ~ 0.064s 0.113s p=0.751 n=20
Check Time 10.205s (± 0.38%) 9.232s (± 0.50%) 🟩-0.965s (- 9.45%) 9.063s 9.413s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.548s (± 0.34%) 9.573s (± 0.45%) 🟩-0.970s (- 9.19%) 9.419s 9.756s p=0.000 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 1000 repos with tsc comparing baseline and pr:

Something interesting changed - please have a look.

Details

tambo-ai/tambo

20 of 26 projects failed to build with the old tsc and were ignored

apps/web/tsconfig.json

apps/docs-mcp/tsconfig.json

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Everything looks good!

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,149 79,126 -23 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 106,291k (± 0.02%) 106,422k (± 0.03%) +128k (+ 0.12%) 106,306k 106,525k p=0.000 n=20
Memory Allocs 1,045,730 (± 0.01%) 1,050,533 (± 0.01%) +4,814 (+ 0.46%) 1,050,263 1,050,851 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.037s (± 3.42%) 0.037s (± 2.04%) ~ 0.034s 0.039s p=0.813 n=20
Bind Time 0.012s (± 9.10%) 0.012s (±10.63%) ~ 0.009s 0.017s p=0.760 n=20
Check Time 0.377s (± 0.77%) 0.379s (± 0.71%) ~ 0.372s 0.392s p=0.568 n=20
Emit Time 0.217s (± 1.13%) 0.215s (± 0.74%) ~ 0.209s 0.221s p=0.490 n=20
Total Time 0.650s (± 0.72%) 0.650s (± 0.57%) ~ 0.634s 0.662s p=0.891 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,865 752,683 -1,182 (- 0.16%) ~ ~ p=0.000 n=20
Types 546,772 541,489 -5,283 (- 0.97%) ~ ~ p=0.000 n=20
Memory Used 642,216k (± 0.01%) 644,059k (± 0.01%) +1,861k (+ 0.29%) 643,715k 644,389k p=0.000 n=20
Memory Allocs 8,307,320 (± 0.02%) 8,493,343 (± 0.06%) +184,210 (+ 2.22%) 8,486,332 8,536,492 p=0.000 n=20
Config Time 0.013s (± 1.10%) 0.013s (± 1.11%) ~ 0.012s 0.013s p=0.095 n=20
Parse Time 0.204s (± 2.57%) 0.206s (± 2.09%) ~ 0.191s 0.220s p=0.562 n=20
Bind Time 0.068s (±12.39%) 0.063s (±10.53%) ~ 0.053s 0.108s p=0.468 n=20
Check Time 1.093s (± 0.70%) 1.115s (± 0.81%) +0.023s (+ 2.07%) 1.084s 1.144s p=0.006 n=20
Emit Time 0.733s (± 0.77%) 0.739s (± 0.72%) ~ 0.724s 0.770s p=0.131 n=20
Total Time 2.130s (± 0.44%) 2.153s (± 0.45%) +0.022s (+ 1.03%) 2.118s 2.186s p=0.003 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,789 666,417 -10,372 (- 1.53%) ~ ~ p=0.000 n=20
Types 937,638 916,927 -20,711 (- 2.21%) ~ ~ p=0.000 n=20
Memory Used 473,848k (± 0.01%) 476,261k (± 0.01%) +2,417k (+ 0.51%) 476,011k 476,431k p=0.000 n=20
Memory Allocs 11,788,972 (± 0.02%) 11,453,402 (± 0.01%) -334,345 (- 2.84%) 11,451,552 11,456,954 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.068s (± 3.08%) 0.066s (± 3.24%) ~ 0.058s 0.073s p=0.216 n=20
Bind Time 0.019s (± 8.18%) 0.021s (±11.14%) ~ 0.017s 0.033s p=0.170 n=20
Check Time 1.464s (± 0.56%) 1.534s (± 0.62%) 🔻+0.068s (+ 4.67%) 1.506s 1.573s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.596s (± 0.47%) 1.670s (± 0.52%) 🔻+0.073s (+ 4.59%) 1.627s 1.702s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,321 -57 (- 0.13%) ~ ~ p=0.000 n=20
Types 7,565 7,211 🟩-354 (- 4.68%) ~ ~ p=0.000 n=20
Memory Used 27,702k (± 0.02%) 27,689k (± 0.03%) ~ 27,652k 27,715k p=0.083 n=20
Memory Allocs 231,567 (± 0.04%) 236,708 (± 0.04%) +5,174 (+ 2.23%) 236,303 237,214 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.017s (± 4.29%) 0.016s (± 3.66%) ~ 0.014s 0.018s p=0.162 n=20
Bind Time 0.005s (±12.29%) 0.006s (±11.87%) 🔻+0.001s (+29.10%) 0.004s 0.008s p=0.002 n=20
Check Time 0.016s (± 5.77%) 0.014s (± 6.54%) ~ 0.013s 0.018s p=0.064 n=20
Emit Time 0.013s (± 5.81%) 0.015s (± 7.01%) 🔻+0.002s (+16.07%) 0.012s 0.020s p=0.006 n=20
Total Time 0.053s (± 1.40%) 0.054s (± 1.21%) +0.001s (+ 1.95%) 0.052s 0.057s p=0.008 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,348 1,227,083 -7,265 (- 0.59%) ~ ~ p=0.000 n=20
Types 892,415 885,720 -6,695 (- 0.75%) ~ ~ p=0.000 n=20
Memory Used 940,462k (± 0.01%) 944,221k (± 0.01%) +3,749k (+ 0.40%) 943,769k 944,731k p=0.000 n=20
Memory Allocs 11,704,975 (± 0.03%) 11,797,901 (± 0.03%) +92,873 (+ 0.79%) 11,791,813 11,823,123 p=0.000 n=20
Config Time 0.006s 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.334s (± 1.33%) 0.328s (± 1.44%) ~ 0.307s 0.341s p=0.083 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.818s (± 0.57%) 1.843s (± 0.47%) +0.027s (+ 1.50%) 1.817s 1.880s p=0.005 n=20
Emit Time 0.976s (± 2.83%) 0.949s (± 3.02%) ~ 0.825s 1.041s p=0.231 n=20
Total Time 3.307s (± 0.66%) 3.297s (± 0.76%) ~ 3.175s 3.381s p=0.522 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,413 3,593,308 -99,105 (- 2.68%) ~ ~ p=0.000 n=20
Types 1,351,476 1,254,299 🟩-97,177 (- 7.19%) ~ ~ p=0.000 n=20
Memory Used 1,651,998k (± 0.06%) 1,655,557k (± 0.09%) +3,353k (+ 0.20%) 1,650,695k 1,660,655k p=0.002 n=20
Memory Allocs 24,325,046 (± 0.06%) 24,764,283 (± 0.08%) +430,640 (+ 1.77%) 24,716,579 24,924,415 p=0.000 n=20
Config Time 0.016s (± 1.08%) 0.016s (± 0.65%) ~ 0.016s 0.017s p=0.089 n=20
Parse Time 0.556s (± 2.28%) 0.549s (± 1.24%) ~ 0.508s 0.573s p=0.395 n=20
Bind Time 0.002s (± 7.95%) 0.002s (± 9.21%) ~ 0.002s 0.003s p=0.718 n=20
Check Time 5.448s (± 0.55%) 5.438s (± 0.30%) ~ 5.363s 5.531s p=0.674 n=20
Emit Time 0.565s (± 5.13%) 0.659s (± 6.40%) 🔻+0.105s (+18.52%) 0.494s 0.740s p=0.003 n=20
Total Time 7.502s (± 0.81%) 7.588s (± 0.61%) +0.072s (+ 0.96%) 7.315s 7.683s p=0.019 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,608 4,705,279 -76,329 (- 1.60%) ~ ~ p=0.000 n=20
Types 2,590,379 2,502,221 🟩-88,158 (- 3.40%) ~ ~ p=0.000 n=20
Memory Used 2,791,288k (± 0.03%) 2,823,892k (± 0.03%) +32,483k (+ 1.16%) 2,821,018k 2,829,046k p=0.000 n=20
Memory Allocs 73,774,436 (± 0.09%) 74,866,156 (± 0.10%) +1,096,174 (+ 1.49%) 74,630,654 75,316,961 p=0.000 n=20
Config Time 0.044s (± 0.86%) 0.044s (± 0.76%) ~ 0.043s 0.045s p=0.357 n=20
Parse Time 0.981s (± 2.43%) 0.975s (± 2.36%) ~ 0.913s 1.079s p=0.841 n=20
Bind Time 0.318s (±10.96%) 0.329s (±11.97%) ~ 0.248s 0.466s p=0.841 n=20
Check Time 13.122s (± 0.41%) 13.502s (± 0.41%) +0.387s (+ 2.95%) 13.285s 13.706s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.536s (± 0.32%) 14.920s (± 0.48%) +0.395s (+ 2.72%) 14.699s 15.223s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,936 1,830,007 -8,929 (- 0.49%) ~ ~ p=0.000 n=20
Types 1,146,790 1,136,444 -10,346 (- 0.90%) ~ ~ p=0.000 n=20
Memory Used 938,424k (± 0.01%) 950,139k (± 0.02%) +11,722k (+ 1.25%) 949,551k 950,911k p=0.000 n=20
Memory Allocs 13,271,186 (± 0.31%) 13,447,807 (± 0.18%) +188,341 (+ 1.42%) 13,386,996 13,623,327 p=0.000 n=20
Config Time 0.013s (± 1.10%) 0.014s (± 1.77%) +0.000s (+ 3.77%) 0.013s 0.014s p=0.004 n=20
Parse Time 0.331s (± 1.63%) 0.334s (± 1.67%) ~ 0.306s 0.350s p=0.452 n=20
Bind Time 0.094s (±12.68%) 0.087s (±12.28%) ~ 0.068s 0.139s p=0.380 n=20
Check Time 2.864s (± 0.69%) 2.925s (± 0.60%) +0.059s (+ 2.06%) 2.865s 2.973s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.326s (± 0.37%) 3.384s (± 0.32%) +0.057s (+ 1.70%) 3.346s 3.425s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,450 1,180,901 -1,549 (- 0.13%) ~ ~ p=0.000 n=20
Types 435,363 433,538 -1,825 (- 0.42%) ~ ~ p=0.000 n=20
Memory Used 1,165,671k (± 0.46%) 1,171,979k (± 0.45%) ~ 1,153,399k 1,191,870k p=0.053 n=20
Memory Allocs 39,916,153 (± 0.11%) 40,357,877 (± 0.06%) +438,981 (+ 1.10%) 40,264,002 40,486,981 p=0.000 n=20
Config Time 0.004s (± 7.99%) 0.005s (±11.09%) ~ 0.004s 0.008s p=0.079 n=20
Parse Time 0.288s (± 1.95%) 0.284s (± 1.96%) ~ 0.266s 0.307s p=0.312 n=20
Bind Time 0.000s (±208.60%) 0.000s (±208.60%) ~ 0.000s 0.001s p=1.000 n=20
Check Time 1.712s (± 0.35%) 1.710s (± 0.41%) ~ 1.689s 1.745s p=0.841 n=20
Emit Time 0.298s (± 2.72%) 0.305s (± 2.13%) ~ 0.285s 0.331s p=0.090 n=20
Total Time 20.411s (± 0.33%) 20.435s (± 0.30%) ~ 20.206s 20.701s p=0.571 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,140 262,111 -29 (- 0.01%) ~ ~ p=0.000 n=20
Types 195,066 194,753 -313 (- 0.16%) ~ ~ p=0.000 n=20
Memory Used 221,012k (± 0.02%) 221,366k (± 0.03%) +365k (+ 0.17%) 221,115k 221,632k p=0.000 n=20
Memory Allocs 1,885,062 (± 0.02%) 1,904,407 (± 0.02%) +19,289 (+ 1.02%) 1,903,006 1,905,972 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.103s (± 2.87%) 0.105s (± 3.96%) ~ 0.091s 0.124s p=0.832 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.833s (± 0.57%) 0.831s (± 0.41%) ~ 0.820s 0.847s p=0.643 n=20
Emit Time 0.090s (± 3.33%) 0.089s (± 4.56%) ~ 0.077s 0.109s p=0.560 n=20
Total Time 1.074s (± 0.60%) 1.075s (± 0.51%) ~ 1.054s 1.099s p=0.701 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,344,903 4,260,071 -84,832 (- 1.95%) ~ ~ p=0.000 n=20
Types 3,038,847 3,006,187 -32,660 (- 1.07%) ~ ~ p=0.000 n=20
Memory Used 2,392,408k (± 0.01%) 2,393,990k (± 0.02%) +1,543k (+ 0.06%) 2,392,695k 2,397,203k p=0.000 n=20
Memory Allocs 36,900,920 (± 0.04%) 37,663,830 (± 0.05%) +763,215 (+ 2.07%) 37,613,780 37,763,285 p=0.000 n=20
Config Time 0.006s 0.006s (± 1.75%) ~ 0.005s 0.006s p=1.000 n=20
Parse Time 0.555s (± 2.23%) 0.560s (± 1.77%) ~ 0.526s 0.607s p=0.595 n=20
Bind Time 0.142s (± 3.39%) 0.140s (± 2.08%) ~ 0.132s 0.160s p=0.486 n=20
Check Time 12.130s (± 0.24%) 12.427s (± 0.53%) +0.296s (+ 2.44%) 12.177s 12.712s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.848s (± 0.22%) 13.148s (± 0.50%) +0.297s (+ 2.31%) 12.886s 13.418s p=0.000 n=20
tanstack-router - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 567,192 561,513 -5,679 (- 1.00%) ~ ~ p=0.000 n=20
Types 395,857 384,476 -11,381 (- 2.88%) ~ ~ p=0.000 n=20
Memory Used 314,568k (± 0.02%) 314,944k (± 0.02%) +386k (+ 0.12%) 314,589k 315,168k p=0.000 n=20
Memory Allocs 4,145,717 (± 0.04%) 4,228,929 (± 0.13%) +81,750 (+ 1.97%) 4,222,501 4,277,498 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.083s (± 3.91%) 0.080s (± 4.51%) ~ 0.072s 0.094s p=0.096 n=20
Bind Time 0.028s (±12.46%) 0.026s (±11.67%) ~ 0.020s 0.040s p=0.394 n=20
Check Time 1.000s (± 0.64%) 1.019s (± 0.65%) +0.016s (+ 1.63%) 1.001s 1.052s p=0.003 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.144s (± 0.63%) 1.156s (± 0.71%) ~ 1.129s 1.191s p=0.090 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,300 230,298 -2 (- 0.00%) ~ ~ p=0.000 n=20
Types 180,492 180,318 -174 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 190,434k (± 0.02%) 190,731k (± 0.02%) +307k (+ 0.16%) 190,493k 190,874k p=0.000 n=20
Memory Allocs 1,284,328 (± 0.01%) 1,298,707 (± 0.01%) +14,407 (+ 1.12%) 1,298,091 1,299,164 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.072s (± 3.40%) 0.072s (± 2.75%) ~ 0.062s 0.078s p=0.563 n=20
Bind Time 0.029s (± 6.57%) 0.028s (± 7.22%) ~ 0.022s 0.040s p=0.756 n=20
Check Time 0.537s (± 0.71%) 0.536s (± 0.68%) ~ 0.524s 0.550s p=0.812 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.650s (± 0.61%) 0.647s (± 0.45%) ~ 0.633s 0.656s p=0.365 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,700,498 8,365,263 🟩-335,235 (- 3.85%) ~ ~ p=0.000 n=20
Types 5,050,417 4,747,955 🟩-302,462 (- 5.99%) ~ ~ p=0.000 n=20
Memory Used 5,795,134k (± 0.01%) 5,711,043k (± 0.02%) -84,252k (- 1.45%) 5,707,274k 5,715,854k p=0.000 n=20
Memory Allocs 64,412,759 (± 0.05%) 66,769,171 (± 0.01%) +2,376,118 (+ 3.69%) 66,751,245 66,820,783 p=0.000 n=20
Config Time 0.047s (± 0.59%) 0.046s (± 0.49%) ~ 0.046s 0.047s p=0.614 n=20
Parse Time 1.711s (± 2.35%) 1.768s (± 1.41%) +0.063s (+ 3.71%) 1.673s 1.854s p=0.029 n=20
Bind Time 0.595s (±12.46%) 0.492s (± 3.35%) 🟩-0.090s (-15.06%) 0.466s 0.606s p=0.017 n=20
Check Time 14.005s (± 0.53%) 14.193s (± 0.43%) +0.188s (+ 1.34%) 13.706s 14.368s p=0.001 n=20
Emit Time 4.412s (± 7.84%) 3.913s (± 5.75%) 🟩-0.554s (-12.55%) 3.625s 5.414s p=0.027 n=20
Total Time 20.842s (± 1.65%) 20.479s (± 0.93%) ~ 20.239s 21.699s p=0.261 n=20
webpack - native
Errors 654 654 ~ ~ ~ p=1.000 n=20
Symbols 931,950 927,088 -4,862 (- 0.52%) ~ ~ p=0.000 n=20
Types 639,299 635,852 -3,447 (- 0.54%) ~ ~ p=0.000 n=20
Memory Used 757,801k (± 0.01%) 761,423k (± 0.01%) +3,618k (+ 0.48%) 761,044k 761,820k p=0.000 n=20
Memory Allocs 6,493,249 (± 0.19%) 6,623,676 (± 0.11%) +134,104 (+ 2.07%) 6,610,314 6,674,026 p=0.000 n=20
Config Time 0.007s (± 3.07%) 0.007s (± 2.49%) ~ 0.006s 0.007s p=0.484 n=20
Parse Time 0.247s (± 2.75%) 0.246s (± 3.41%) ~ 0.219s 0.289s p=0.674 n=20
Bind Time 0.067s (±11.39%) 0.076s (±12.97%) ~ 0.054s 0.111s p=0.156 n=20
Check Time 2.928s (± 0.38%) 3.035s (± 0.39%) +0.108s (+ 3.68%) 2.987s 3.072s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.284s (± 0.47%) 3.399s (± 0.54%) +0.116s (+ 3.54%) 3.338s 3.466s p=0.000 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,115,559 3,567,597 🟩-547,962 (-13.31%) ~ ~ p=0.000 n=20
Types 4,217,211 3,365,513 🟩-851,698 (-20.20%) ~ ~ p=0.000 n=20
Memory Used 2,271,445k (± 0.01%) 1,967,860k (± 0.01%) 🟩-303,576k (-13.36%) 1,967,108k 1,968,804k p=0.000 n=20
Memory Allocs 45,227,572 (± 0.01%) 38,894,088 (± 0.01%) 🟩-6,334,908 (-14.01%) 38,882,475 38,920,042 p=0.000 n=20
Config Time 0.005s (± 4.36%) 0.005s (± 3.99%) ~ 0.004s 0.005s p=0.144 n=20
Parse Time 0.252s (± 2.00%) 0.254s (± 1.56%) ~ 0.240s 0.265s p=0.614 n=20
Bind Time 0.077s (± 8.24%) 0.070s (± 4.91%) ~ 0.063s 0.094s p=0.175 n=20
Check Time 10.204s (± 0.41%) 9.278s (± 0.42%) 🟩-0.926s (- 9.08%) 9.047s 9.405s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.549s (± 0.37%) 9.616s (± 0.40%) 🟩-0.934s (- 8.85%) 9.410s 9.744s p=0.000 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 1000 repos with tsc comparing baseline and pr:

Everything looks good!

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) test it

@typescript-automation

typescript-automation Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Starting jobs; this comment will be updated as builds start and complete.

Command Status Results
test top400 ✅ Started ✅ Results
user test this ✅ Started ✅ Results
run dt ✅ Started ✅ Results
perf test this faster ✅ Started 👀 Results

@typescript-automation

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@jakebailey), the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the user tests with tsc comparing baseline and pr:

Everything looks good!

@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Everything looks good!

@jakebailey
Jake Bailey (jakebailey) force-pushed the jakebailey/content-ordering branch 3 times, most recently from 2d9432b to 7138620 Compare November 24, 2026 06:40
@typescript-automation

Copy link
Copy Markdown
Contributor

Jake Bailey (@jakebailey)
The results of the perf run you requested are in!

Here they are:

tsc

Comparison Report - baseline..pr
Metric baseline pr Delta Best Worst p-value
Compiler-Unions - native
Errors 41 41 ~ ~ ~ p=1.000 n=20
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=20
Types 79,149 79,126 -23 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 106,288k (± 0.03%) 106,465k (± 0.03%) +174k (+ 0.16%) 106,371k 106,579k p=0.000 n=20
Memory Allocs 1,045,832 (± 0.01%) 1,050,622 (± 0.01%) +4,788 (+ 0.46%) 1,050,282 1,051,079 p=0.000 n=20
Config Time 0.000s (±143.57%) 0.000s ~ ~ ~ p=0.487 n=20
Parse Time 0.045s (± 2.75%) 0.045s (± 2.06%) ~ 0.041s 0.049s p=0.131 n=20
Bind Time 0.015s (± 7.94%) 0.015s (± 7.41%) ~ 0.012s 0.019s p=0.740 n=20
Check Time 0.452s (± 0.56%) 0.458s (± 0.64%) +0.006s (+ 1.38%) 0.448s 0.468s p=0.006 n=20
Emit Time 0.261s (± 0.96%) 0.261s (± 1.02%) ~ 0.253s 0.273s p=1.000 n=20
Total Time 0.781s (± 0.49%) 0.787s (± 0.38%) ~ 0.775s 0.796s p=0.080 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,731 752,549 -1,182 (- 0.16%) ~ ~ p=0.000 n=20
Types 546,699 541,416 -5,283 (- 0.97%) ~ ~ p=0.000 n=20
Memory Used 642,662k (± 0.01%) 644,410k (± 0.01%) +1,749k (+ 0.27%) 644,149k 644,769k p=0.000 n=20
Memory Allocs 8,306,002 (± 0.01%) 8,490,800 (± 0.03%) +184,037 (+ 2.22%) 8,486,096 8,509,777 p=0.000 n=20
Config Time 0.013s (± 1.33%) 0.013s ~ ~ ~ p=0.149 n=20
Parse Time 0.206s (± 2.72%) 0.210s (± 2.15%) ~ 0.192s 0.226s p=0.210 n=20
Bind Time 0.066s (±12.55%) 0.057s (± 5.35%) 🟩-0.006s (- 9.02%) 0.050s 0.075s p=0.045 n=20
Check Time 1.106s (± 1.06%) 1.126s (± 0.80%) +0.019s (+ 1.73%) 1.083s 1.151s p=0.027 n=20
Emit Time 0.740s (± 1.11%) 0.745s (± 0.77%) ~ 0.726s 0.764s p=0.198 n=20
Total Time 2.149s (± 0.70%) 2.164s (± 0.57%) ~ 2.111s 2.213s p=0.105 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,777 666,405 -10,372 (- 1.53%) ~ ~ p=0.000 n=20
Types 937,629 916,918 -20,711 (- 2.21%) ~ ~ p=0.000 n=20
Memory Used 473,841k (± 0.01%) 476,294k (± 0.01%) +2,454k (+ 0.52%) 475,969k 476,561k p=0.000 n=20
Memory Allocs 11,787,828 (± 0.01%) 11,455,161 (± 0.02%) -333,766 (- 2.83%) 11,451,048 11,470,297 p=0.000 n=20
Config Time 0.003s (± 3.54%) 0.003s ~ ~ ~ p=1.000 n=20
Parse Time 0.083s (± 2.62%) 0.085s (± 2.74%) ~ 0.078s 0.094s p=0.513 n=20
Bind Time 0.025s (± 8.05%) 0.025s (± 8.29%) ~ 0.021s 0.037s p=0.636 n=20
Check Time 1.745s (± 0.57%) 1.820s (± 0.70%) 🔻+0.076s (+ 4.35%) 1.785s 1.868s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.905s (± 0.49%) 1.984s (± 0.60%) 🔻+0.081s (+ 4.24%) 1.946s 2.028s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,321 -57 (- 0.13%) ~ ~ p=0.000 n=20
Types 7,565 7,211 🟩-354 (- 4.68%) ~ ~ p=0.000 n=20
Memory Used 27,694k (± 0.02%) 27,688k (± 0.03%) ~ 27,653k 27,721k p=0.169 n=20
Memory Allocs 231,604 (± 0.05%) 236,628 (± 0.04%) +5,067 (+ 2.19%) 236,221 237,185 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.020s (± 2.20%) 0.021s (± 2.79%) ~ 0.018s 0.023s p=0.350 n=20
Bind Time 0.007s (±11.22%) 0.007s (±11.21%) ~ 0.005s 0.010s p=0.217 n=20
Check Time 0.017s (± 7.02%) 0.019s (± 6.22%) ~ 0.016s 0.022s p=0.078 n=20
Emit Time 0.018s (± 7.19%) 0.017s (± 6.07%) ~ 0.014s 0.022s p=0.268 n=20
Total Time 0.066s (± 1.41%) 0.066s (± 1.07%) ~ 0.062s 0.068s p=0.887 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,260 1,226,995 -7,265 (- 0.59%) ~ ~ p=0.000 n=20
Types 892,037 885,342 -6,695 (- 0.75%) ~ ~ p=0.000 n=20
Memory Used 940,362k (± 0.02%) 943,984k (± 0.02%) +3,624k (+ 0.39%) 943,257k 944,490k p=0.000 n=20
Memory Allocs 11,710,274 (± 0.10%) 11,796,492 (± 0.02%) +91,821 (+ 0.78%) 11,790,192 11,812,895 p=0.000 n=20
Config Time 0.006s (± 1.75%) 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.329s (± 1.65%) 0.329s (± 0.93%) ~ 0.317s 0.341s p=0.860 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.801s (± 0.49%) 1.838s (± 0.62%) +0.037s (+ 2.04%) 1.794s 1.877s p=0.000 n=20
Emit Time 0.973s (± 1.96%) 0.951s (± 3.61%) ~ 0.840s 1.049s p=0.182 n=20
Total Time 3.278s (± 0.54%) 3.295s (± 0.93%) ~ 3.212s 3.393s p=0.349 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,413 3,593,308 -99,105 (- 2.68%) ~ ~ p=0.000 n=20
Types 1,351,476 1,254,299 🟩-97,177 (- 7.19%) ~ ~ p=0.000 n=20
Memory Used 1,652,746k (± 0.05%) 1,656,371k (± 0.07%) +3,232k (+ 0.20%) 1,651,718k 1,660,807k p=0.000 n=20
Memory Allocs 24,323,025 (± 0.06%) 24,771,608 (± 0.05%) +448,344 (+ 1.84%) 24,729,731 24,809,958 p=0.000 n=20
Config Time 0.016s (± 1.21%) 0.016s (± 0.95%) ~ 0.015s 0.017s p=0.410 n=20
Parse Time 0.557s (± 1.98%) 0.545s (± 1.66%) ~ 0.520s 0.580s p=0.143 n=20
Bind Time 0.002s (± 7.95%) 0.002s (± 8.70%) ~ 0.002s 0.003s p=0.544 n=20
Check Time 5.469s (± 0.31%) 5.466s (± 0.32%) ~ 5.405s 5.537s p=0.498 n=20
Emit Time 0.600s (± 7.10%) 0.583s (± 6.11%) ~ 0.494s 0.745s p=0.498 n=20
Total Time 7.573s (± 0.86%) 7.550s (± 0.69%) ~ 7.312s 7.700s p=0.522 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,644 4,705,315 -76,329 (- 1.60%) ~ ~ p=0.000 n=20
Types 2,590,383 2,502,223 🟩-88,160 (- 3.40%) ~ ~ p=0.000 n=20
Memory Used 2,791,676k (± 0.03%) 2,824,867k (± 0.02%) +33,132k (+ 1.19%) 2,822,003k 2,827,461k p=0.000 n=20
Memory Allocs 73,791,242 (± 0.07%) 74,863,439 (± 0.13%) +1,049,089 (+ 1.42%) 74,537,378 75,476,835 p=0.000 n=20
Config Time 0.036s (± 3.17%) 0.036s (± 0.67%) ~ 0.035s 0.036s p=0.113 n=20
Parse Time 0.800s (± 1.49%) 0.817s (± 2.93%) ~ 0.732s 0.940s p=0.225 n=20
Bind Time 0.229s (± 8.04%) 0.229s (±10.98%) ~ 0.184s 0.374s p=0.347 n=20
Check Time 11.137s (± 0.31%) 11.422s (± 0.39%) +0.287s (+ 2.57%) 11.203s 11.610s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.257s (± 0.28%) 12.559s (± 0.40%) +0.302s (+ 2.47%) 12.361s 12.808s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,838,865 1,829,936 -8,929 (- 0.49%) ~ ~ p=0.000 n=20
Types 1,146,817 1,136,471 -10,346 (- 0.90%) ~ ~ p=0.000 n=20
Memory Used 938,454k (± 0.02%) 950,000k (± 0.02%) +11,590k (+ 1.24%) 948,769k 950,465k p=0.000 n=20
Memory Allocs 13,253,299 (± 0.14%) 13,445,434 (± 0.14%) +194,369 (+ 1.47%) 13,391,073 13,542,211 p=0.000 n=20
Config Time 0.013s (± 1.45%) 0.013s (± 1.71%) +0.000s (+ 0.00%) 0.013s 0.014s p=0.050 n=20
Parse Time 0.336s (± 1.97%) 0.336s (± 1.69%) ~ 0.312s 0.356s p=0.734 n=20
Bind Time 0.081s (± 9.15%) 0.082s (±11.01%) ~ 0.067s 0.142s p=0.922 n=20
Check Time 2.870s (± 0.56%) 2.927s (± 0.60%) +0.060s (+ 2.08%) 2.865s 2.989s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.325s (± 0.39%) 3.381s (± 0.42%) +0.056s (+ 1.69%) 3.336s 3.446s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,486 1,180,937 -1,549 (- 0.13%) ~ ~ p=0.000 n=20
Types 435,482 433,657 -1,825 (- 0.42%) ~ ~ p=0.000 n=20
Memory Used 1,169,323k (± 0.42%) 1,167,814k (± 0.35%) ~ 1,155,353k 1,194,405k p=0.784 n=20
Memory Allocs 39,976,377 (± 0.07%) 40,359,052 (± 0.08%) +380,479 (+ 0.95%) 40,190,018 40,505,041 p=0.000 n=20
Config Time 0.003s (±12.79%) 0.003s (± 6.84%) ~ 0.002s 0.003s p=0.831 n=20
Parse Time 0.230s (± 2.00%) 0.235s (± 1.95%) ~ 0.212s 0.247s p=0.076 n=20
Bind Time 0.000s 0.000s (±208.60%) ~ 0.000s 0.001s p=1.000 n=20
Check Time 1.432s (± 0.37%) 1.441s (± 0.40%) ~ 1.422s 1.463s p=0.058 n=20
Emit Time 0.254s (± 2.60%) 0.250s (± 2.03%) ~ 0.233s 0.276s p=0.349 n=20
Total Time 16.959s (± 0.30%) 17.035s (± 0.39%) ~ 16.806s 17.369s p=0.070 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,136 262,107 -29 (- 0.01%) ~ ~ p=0.000 n=20
Types 195,074 194,761 -313 (- 0.16%) ~ ~ p=0.000 n=20
Memory Used 221,430k (± 0.02%) 221,810k (± 0.02%) +369k (+ 0.17%) 221,648k 221,996k p=0.000 n=20
Memory Allocs 1,884,945 (± 0.02%) 1,904,965 (± 0.02%) +20,047 (+ 1.06%) 1,903,037 1,907,117 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.105s (± 3.77%) 0.101s (± 3.62%) ~ 0.088s 0.117s p=0.123 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.834s (± 0.50%) 0.836s (± 0.51%) ~ 0.824s 0.860s p=0.738 n=20
Emit Time 0.093s (± 4.56%) 0.095s (± 4.84%) ~ 0.080s 0.113s p=0.614 n=20
Total Time 1.083s (± 0.56%) 1.082s (± 0.56%) ~ 1.057s 1.106s p=1.000 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,344,905 4,260,073 -84,832 (- 1.95%) ~ ~ p=0.000 n=20
Types 3,038,855 3,006,195 -32,660 (- 1.07%) ~ ~ p=0.000 n=20
Memory Used 2,392,811k (± 0.02%) 2,393,706k (± 0.02%) +669k (+ 0.03%) 2,391,438k 2,397,322k p=0.048 n=20
Memory Allocs 36,897,756 (± 0.04%) 37,687,648 (± 0.06%) +789,138 (+ 2.14%) 37,639,977 37,779,403 p=0.000 n=20
Config Time 0.006s (± 1.75%) 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.549s (± 1.92%) 0.550s (± 1.93%) ~ 0.510s 0.602s p=0.869 n=20
Bind Time 0.150s (±10.17%) 0.144s (± 5.50%) ~ 0.132s 0.189s p=0.891 n=20
Check Time 12.172s (± 0.49%) 12.419s (± 0.54%) +0.238s (+ 1.96%) 12.105s 12.697s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.893s (± 0.49%) 13.135s (± 0.54%) +0.228s (+ 1.77%) 12.827s 13.460s p=0.000 n=20
tanstack-router - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 567,259 561,574 -5,685 (- 1.00%) ~ ~ p=0.000 n=20
Types 395,492 384,111 -11,381 (- 2.88%) ~ ~ p=0.000 n=20
Memory Used 311,025k (± 0.01%) 311,490k (± 0.01%) +467k (+ 0.15%) 311,351k 311,595k p=0.000 n=20
Memory Allocs 3,964,341 (± 0.03%) 4,044,900 (± 0.03%) +80,753 (+ 2.04%) 4,042,033 4,053,155 p=0.000 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.081s (± 2.64%) 0.081s (± 3.23%) ~ 0.072s 0.091s p=0.422 n=20
Bind Time 0.026s (±13.61%) 0.025s (±11.14%) ~ 0.020s 0.039s p=0.808 n=20
Check Time 1.005s (± 0.55%) 1.020s (± 0.55%) +0.016s (+ 1.64%) 1.000s 1.055s p=0.002 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.118s (± 0.56%) 1.132s (± 0.55%) +0.014s (+ 1.26%) 1.114s 1.170s p=0.006 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,300 230,298 -2 (- 0.00%) ~ ~ p=0.000 n=20
Types 180,510 180,336 -174 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 190,419k (± 0.02%) 190,695k (± 0.01%) +276k (+ 0.14%) 190,587k 190,796k p=0.000 n=20
Memory Allocs 1,284,117 (± 0.01%) 1,298,594 (± 0.01%) +14,488 (+ 1.13%) 1,298,225 1,299,178 p=0.000 n=20
Config Time 0.001s (±23.93%) 0.001s (±27.63%) ~ 0.000s 0.001s p=1.000 n=20
Parse Time 0.088s (± 3.08%) 0.090s (± 3.84%) ~ 0.078s 0.100s p=0.560 n=20
Bind Time 0.037s (± 8.26%) 0.037s (± 7.59%) ~ 0.026s 0.044s p=0.709 n=20
Check Time 0.640s (± 0.88%) 0.641s (± 0.73%) ~ 0.629s 0.667s p=0.779 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.779s (± 0.54%) 0.781s (± 0.66%) ~ 0.766s 0.815s p=0.384 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,701,795 8,364,452 🟩-337,343 (- 3.88%) ~ ~ p=0.000 n=20
Types 5,039,557 4,736,354 🟩-303,203 (- 6.02%) ~ ~ p=0.000 n=20
Memory Used 5,798,432k (± 0.02%) 5,713,200k (± 0.02%) -85,212k (- 1.47%) 5,709,734k 5,719,865k p=0.000 n=20
Memory Allocs 64,401,979 (± 0.01%) 66,865,509 (± 0.03%) +2,458,891 (+ 3.82%) 66,834,872 66,959,712 p=0.000 n=20
Config Time 0.057s (± 0.41%) 0.058s (± 0.54%) ~ 0.057s 0.059s p=0.120 n=20
Parse Time 2.137s (± 1.69%) 2.143s (± 2.03%) ~ 1.978s 2.281s p=0.956 n=20
Bind Time 0.691s (± 9.55%) 0.692s (±10.23%) ~ 0.580s 1.092s p=0.738 n=20
Check Time 16.467s (± 0.67%) 16.729s (± 0.64%) +0.259s (+ 1.57%) 16.391s 17.157s p=0.001 n=20
Emit Time 5.351s (± 7.35%) 5.283s (± 6.23%) ~ 4.463s 6.371s p=0.812 n=20
Total Time 24.792s (± 1.34%) 24.993s (± 1.09%) ~ 24.216s 25.992s p=0.368 n=20
webpack - native
Errors 654 654 ~ ~ ~ p=1.000 n=20
Symbols 940,393 935,543 -4,850 (- 0.52%) ~ ~ p=0.000 n=20
Types 642,958 639,480 -3,478 (- 0.54%) ~ ~ p=0.000 n=20
Memory Used 759,208k (± 0.02%) 762,459k (± 0.01%) +3,258k (+ 0.43%) 761,945k 762,794k p=0.000 n=20
Memory Allocs 6,512,079 (± 0.09%) 6,647,843 (± 0.08%) +135,083 (+ 2.07%) 6,634,877 6,671,538 p=0.000 n=20
Config Time 0.007s (± 3.07%) 0.007s (± 2.82%) ~ 0.006s 0.007s p=0.777 n=20
Parse Time 0.251s (± 2.85%) 0.246s (± 3.04%) ~ 0.220s 0.278s p=0.349 n=20
Bind Time 0.075s (±12.87%) 0.073s (±13.04%) ~ 0.053s 0.112s p=0.869 n=20
Check Time 2.789s (± 0.30%) 2.870s (± 0.38%) +0.078s (+ 2.81%) 2.838s 2.918s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.157s (± 0.51%) 3.231s (± 0.57%) +0.075s (+ 2.37%) 3.181s 3.314s p=0.000 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,115,561 3,567,599 🟩-547,962 (-13.31%) ~ ~ p=0.000 n=20
Types 4,217,216 3,365,519 🟩-851,697 (-20.20%) ~ ~ p=0.000 n=20
Memory Used 2,271,319k (± 0.01%) 1,967,952k (± 0.01%) 🟩-303,336k (-13.36%) 1,967,141k 1,968,593k p=0.000 n=20
Memory Allocs 45,229,123 (± 0.01%) 38,892,902 (± 0.01%) 🟩-6,336,728 (-14.01%) 38,872,299 38,915,729 p=0.000 n=20
Config Time 0.005s (± 4.36%) 0.005s (± 5.10%) ~ 0.004s 0.005s p=0.930 n=20
Parse Time 0.249s (± 1.66%) 0.251s (± 2.20%) ~ 0.227s 0.269s p=0.388 n=20
Bind Time 0.078s (±11.09%) 0.077s (±10.27%) ~ 0.065s 0.120s p=0.841 n=20
Check Time 10.210s (± 0.40%) 9.233s (± 0.45%) 🟩-0.988s (- 9.67%) 9.053s 9.436s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.552s (± 0.34%) 9.576s (± 0.40%) 🟩-0.984s (- 9.33%) 9.414s 9.777s p=0.000 n=20
System info unknown
Hosts
  • native
Scenarios
  • Compiler-Unions - native
  • angular-1 - native
  • arktype - native
  • class-transformer - native
  • effect - native
  • mui-docs - native
  • sentry - native
  • social-app - native
  • strada-build-src - native
  • strada-compiler - native
  • t3code-server - native
  • tanstack-router - native
  • ts-pre-modules - native
  • vscode - native
  • webpack - native
  • xstate-main - native
Benchmark Name Iterations
Current pr 20
Baseline baseline 20

Developer Information:

Download Benchmarks

These tests are added before the changes they cover, so that each
change shows in their baselines.
isDeeplyNestedType counts only occurrences of a recursion identity newer
than the previous one, using type ids for "newer", so whether a
comparison gave up as deeply nested depended on which code had been
checked before. It now compares generations: a type's generation is one
more than the highest generation of the types it was built from.

An occurrence of a higher generation was built by the recursion and
counts. One of a lower generation is a nested type argument or member,
and counts only if it is a conditional type, an indexed access, or
another type that evaluating a step can make with fewer layers, and
the previous occurrence was not built from it. A copy of the previous
union or intersection with the same constituents, such as one that lost
its alias, is the same level of nesting (seen in BlockNote and
type-fest), unless both have aliases, whose type arguments can keep
growing while the constituents stay the same (seen in tambo).

Comparing the RpcStub types of capnweb, which form a variance
circularity, recurses through deeply nested instantiations, and reached
the instantiation limit before this (seen in cloudflare-os).

Fixes 17873
Fixes 34099
Fixes 60453
Fixes 64757
CompareTypes orders the constituents of unions, and so printed types,
union deduplication, and everything derived from them. Many types it
cannot tell apart fell through to the type id, which follows creation
order, so these results depended on which code had been checked before.
Most such ties were copies: checking the same expression again
(inference passes, overload resolution, contextual re-checks) created a
new type with identical content every time.

Types that are the same by content are now interned, so the same
inputs yield the same type whenever and however often they are
computed:

- object literal types;
- spread results and the property symbols they synthesize;
- widened, regular, and padded copies of object literals;
- object rest types;
- types implied by binding patterns;
- intersections with the same constituents, flags, and alias.

Interned object types are keyed by their members in table order, so
spreads such as { ...a, ...b } and { ...b, ...a } stay distinct and
each keeps its own property order.

Types that remain distinct are ordered by how they were derived:

- type parameters sharing a symbol (tuple elements, clones made for
  signature and mapped type instantiation, distributive and
  restrictive copies) by the kind of copy, then by their origin and
  the instantiation they were made for;
- fresh and regular literal types, array literal types after the
  references they were cloned from, and object literal copies by the
  flags they were created with;
- object literal, rest, and binding pattern types by the declarations
  and names of their members;
- tuple targets by their label declarations;
- indexed access types by their access flags.

The pseudo-type printer reused the declared type of an inferred
property assignment when the expression's widened type matched, but
that type is widened without the context of its object literal and
can differ from the real one. It is now reused only when equivalent.

Interning lets a comparison reuse a cached relation result that would
otherwise have been computed again for a fresh copy of a type. A result
computed while the return type of a signature still being resolved
reads as any holds only until that return type is known, so it is no
longer cached. Otherwise, relating the arguments of a call whose return
type is being inferred from them caches a success, and the call no
longer reports that no overload matches (seen in lexical).
compareNodes ordered nodes of a file by position only, so distinct
nodes starting together, such as a source file and its first statement
or adjacent missing nodes, compared as equal, and sorting them kept
whichever order they were found in. They are now ordered as they
appear in the tree, so that a node compares equal only to itself.
Symbols the checker derives from a declared one, such as the members of
mapped types or readonly copies of object literal properties, share its
declaration and name, so compareSymbols ordered them by symbol id.
Symbol ids are assigned in the order symbols are first used, which
depends on which code was checked before. They are now ordered by
whether they are transient and by their check flags first.
Object types derived from others, such as spreads and widened copies,
are interned by their member symbols in member table order and by
their index signatures. Object literal types are interned by the
flags, name types, and types of their members. Both were ordered only
by the declarations, optionality, and types of their members. A spread
over a union can make types that differ only in the order of their
members, such as { ...a, ...b } and { ...b, ...a }, and these were left
to the type id. Widened copies of types implied by binding patterns
have no symbol and were not ordered by their members at all.

They are now ordered by everything they are interned by, the member
symbols last, so that a type compares equal only to itself.
The instantiations of a conditional type are cached on its root, but
distributive and tail-recursive evaluation create deferred conditional
types without that cache, so the same deferred conditional type, with
the same root, mappings, and alias, could be created more than once.
Such copies can be told apart only by type id, which follows the order
in which code was checked. Deferred conditional types are now interned
by their root, the content of their mapper, and their alias.

Those made for a constraint stay apart from the others, as the
instantiation caches of a conditional type already keep them:
evaluating a conditional type for a constraint can include its true
branch where evaluating it otherwise would not. Sharing the deferred
types made for one with the other reused the comparisons reached from
them, and checking calls with SetOptional of generic keys then exceeded
the instantiation depth limit (seen in type-fest).

Instantiations of InferData and UnpackKeyValue, whose recursion is
bounded, are no longer reported as infinitely circular when inferred
through a closure (boundedRecursiveTypeInferredThroughClosure).
Symbols the checker makes from others, such as the properties a spread
merges or copies, the members of mapped types, instantiated symbols,
and the copies of a module symbol made for each import of it, share the
declaration, name, and flags of the symbol they are made from, and were
ordered by symbol id, which follows the order in which symbols are
first used. They are now ordered by the symbols, types, and imports
they are made from, which are recorded when they are created.

The symbols made for unresolved names share their name, and are
ordered by the unresolved names that qualify them, as Bidi.Event and
Protocol.Cdp.Event are when neither module is found (seen in
puppeteer and DefinitelyTyped).
The type of a module with a synthetic default import is a spread under
a type literal symbol, and widening it makes a copy with the same
symbol. Neither is an object literal, so nothing but their type ids
distinguished them. Unnamed object types are now also ordered by the
flags recording how they were created.
Instantiations of distinct object literal types made by the same
declaration, such as the copies a call makes when it infers from an
argument twice, were ordered only by their mappers. Instantiations with
mappers of the same content then compared as equal and fell back to
the type id (seen in t3code). They are now ordered by the type they
instantiate first.
Inferring from string literals to keyof T infers to T from an object
type with an any-typed property per literal, which was made anew every
time, so inferring from the same literals twice yielded types that
could be told apart only by type id (seen in tanstack-router). They
are now interned by the literals and whether the source includes
string.
The members of a type implied by a binding pattern have no
declarations, so types implied by two patterns with the same names,
and their widened copies, could be told apart only by their member
symbols, which were ordered by symbol id (seen in vscode). Each member
now records the binding element declaring it, as TypeScript's checker
does, and is ordered by that element. Types that record the pattern
implying them are also ordered by that pattern before their members.
compareTypeMappers compared simple, array, and merged mappers by their
mappings and treated all others as equal. Symbols instantiated through
composite mappers with different mappings then compared as equal and
fell back to the symbol id (seen in sentry). Composite mappers are now
compared by the two mappers they compose, and deferred conditional
types are interned by them too.
Spreading a union of one object type and empty objects makes an object
type with the properties of the object type made optional. A new type
with new properties was made every time, so spreading the same union
twice yielded types that could be told apart only by their properties'
symbol ids (seen in tanstack-router). They are now interned by the
object type and whether the spread is readonly.
Type ids follow the order in which types are created, and symbol ids
the order in which symbols are first used, both of which depend on
which code was checked before. Ordering by them made union order,
printed types, and everything derived from them depend on check order.
Types and symbols are now ordered by their content, so that a value
compares equal only to itself and a sorted list of them is a set by
identity. Reaching the id fallback means two distinct values cannot be
told apart, and is now an assertion failure, except for the types
created with the checker, such as the intrinsic types and the variance
markers, whose order of creation is fixed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team For Backlog Bug PRs that fix a backlog bug

Projects

None yet

2 participants