Skip to content

Speed up property and index signature lookups - #65043

Merged
Jake Bailey (jakebailey) merged 5 commits into
microsoft:mainfrom
jakebailey:perf/member-lookup
Nov 19, 2026
Merged

Jake Bailey (jakebailey) merged 5 commits into
microsoft:mainfrom
jakebailey:perf/member-lookup

Conversation

@jakebailey

@jakebailey Jake Bailey (jakebailey) commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Thanks Steven (@teamchong) for finding these!

FWIW this looks way better if you view each commit without whitespace, or at least the whole thing https://github.com/microsoft/TypeScript/pull/65043/changes?w=1

Copilot AI balanced review requested due to automatic review settings October 29, 2026 22:38
@github-project-automation github-project-automation Bot moved this to Not started in PR Backlog Oct 29, 2026
@typescript-automation typescript-automation Bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Oct 29, 2026
@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
perf test this faster ✅ Started 👀 Results

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are identified for the checker lookup optimizations.

No open issues 🎉

What changed in this PR

This PR optimizes property and index-signature lookups in the native TypeScript checker by reducing common-path work and allocations.

Changes:

  • Adds fast paths for resolved object members, apparent types, and type reduction.
  • Avoids unnecessary literal-type creation and allocations during index-signature and contextual-property lookups.
  • Skips cloning static member tables when no base members need to be inherited.
File Description
tsc/​internal/​checker/​checker.go Optimizes checker lookups with fast paths, deferred allocations, and conditional member-table cloning.

Review effort: Balanced

@jakebailey Jake Bailey (jakebailey) added the Domain: Performance Performance related label Oct 29, 2026
@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,466 88,466 ~ ~ ~ p=1.000 n=20
Types 79,607 79,184 -423 (- 0.53%) ~ ~ p=0.000 n=20
Memory Used 104,133k (± 0.02%) 104,121k (± 0.03%) ~ 104,019k 104,220k p=0.490 n=20
Memory Allocs 1,263,820 (± 0.01%) 1,263,286 (± 0.01%) -534 (- 0.04%) 1,263,004 1,263,561 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.025s (±18.66%) 0.023s (± 2.35%) ~ 0.021s 0.025s p=0.821 n=20
Bind Time 0.009s (±14.30%) 0.009s (± 6.89%) ~ 0.007s 0.012s p=0.829 n=20
Check Time 0.215s (± 1.63%) 0.204s (± 0.66%) 🟩-0.010s (- 4.75%) 0.199s 0.210s p=0.000 n=20
Emit Time 0.138s (± 0.74%) 0.138s (± 0.50%) ~ 0.136s 0.141s p=0.524 n=20
Total Time 0.390s (± 2.52%) 0.378s (± 0.31%) 🟩-0.012s (- 3.12%) 0.372s 0.381s p=0.000 n=20
angular-1 - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 586,556 (± 0.02%) 586,519 (± 0.02%) ~ 586,030 586,791 p=0.733 n=20
Types 241,687 (± 0.00%) 239,573 (± 0.00%) -2,114 (- 0.87%) 239,571 239,583 p=0.000 n=20
Memory Used 517,985k (± 0.01%) 517,715k (± 0.01%) -270k (- 0.05%) 517,482k 517,989k p=0.000 n=20
Memory Allocs 7,804,334 (± 0.14%) 7,800,774 (± 0.12%) ~ 7,784,743 7,847,690 p=0.461 n=20
Config Time 0.009s (± 1.15%) 0.009s ~ ~ ~ p=1.000 n=20
Parse Time 0.127s (± 1.96%) 0.126s (± 2.51%) ~ 0.114s 0.136s p=0.673 n=20
Bind Time 0.043s (± 9.20%) 0.045s (±10.35%) ~ 0.037s 0.068s p=0.586 n=20
Check Time 0s 0s ~ ~ ~ p=1.000 n=20
Emit Time 0.852s (± 0.98%) 0.851s (± 0.89%) ~ 0.822s 0.878s p=0.931 n=20
Total Time 1.042s (± 1.23%) 1.041s (± 1.08%) ~ 1.007s 1.090s p=0.952 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 685,920 685,920 ~ ~ ~ p=1.000 n=20
Types 939,467 939,206 -261 (- 0.03%) ~ ~ p=0.000 n=20
Memory Used 497,266k (± 0.01%) 497,218k (± 0.01%) -48k (- 0.01%) 497,039k 497,369k p=0.022 n=20
Memory Allocs 12,107,878 (± 0.01%) 12,107,878 (± 0.01%) ~ 12,103,591 12,113,155 p=0.820 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.043s (± 3.37%) 0.044s (± 2.93%) ~ 0.039s 0.049s p=0.210 n=20
Bind Time 0.014s (± 9.91%) 0.014s (±10.08%) ~ 0.011s 0.021s p=0.888 n=20
Check Time 1.003s (± 0.75%) 0.985s (± 0.79%) -0.018s (- 1.78%) 0.959s 1.025s p=0.001 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.090s (± 0.75%) 1.075s (± 0.56%) -0.015s (- 1.42%) 1.056s 1.108s p=0.003 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,376 45,376 ~ ~ ~ p=1.000 n=20
Types 7,573 7,565 -8 (- 0.11%) ~ ~ p=0.000 n=20
Memory Used 27,842k (± 0.01%) 27,837k (± 0.02%) ~ 27,814k 27,856k p=0.171 n=20
Memory Allocs 248,783 (± 0.05%) 248,589 (± 0.05%) -194 (- 0.08%) 248,235 249,278 p=0.023 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.011s (± 3.88%) 0.011s (± 4.42%) ~ 0.009s 0.012s p=0.916 n=20
Bind Time 0.003s (±13.57%) 0.003s (± 9.29%) ~ 0.002s 0.005s p=0.166 n=20
Check Time 0.008s (± 5.72%) 0.008s (± 5.20%) ~ 0.007s 0.009s p=0.590 n=20
Emit Time 0.009s (± 6.37%) 0.009s (± 5.99%) ~ 0.007s 0.011s p=0.596 n=20
Total Time 0.032s (± 2.07%) 0.032s (± 1.95%) ~ 0.029s 0.034s p=0.854 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,235,115 1,235,115 ~ ~ ~ p=1.000 n=20
Types 894,113 893,278 -835 (- 0.09%) ~ ~ p=0.000 n=20
Memory Used 940,635k (± 0.02%) 940,428k (± 0.02%) ~ 939,677k 941,392k p=0.069 n=20
Memory Allocs 12,670,681 (± 0.03%) 12,670,765 (± 0.03%) ~ 12,661,076 12,697,993 p=0.862 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.148s (± 1.35%) 0.149s (± 1.64%) ~ 0.142s 0.160s p=0.432 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.936s (± 0.71%) 0.921s (± 0.74%) -0.015s (- 1.64%) 0.897s 0.947s p=0.005 n=20
Emit Time 0.498s (± 2.19%) 0.506s (± 1.98%) ~ 0.465s 0.550s p=0.317 n=20
Total Time 1.675s (± 0.55%) 1.671s (± 0.50%) ~ 1.642s 1.715s p=0.256 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,784,019 3,784,019 ~ ~ ~ p=1.000 n=20
Types 1,355,974 1,354,375 -1,599 (- 0.12%) ~ ~ p=0.000 n=20
Memory Used 1,836,713k (± 0.09%) 1,835,485k (± 0.07%) ~ 1,831,583k 1,839,890k p=0.301 n=20
Memory Allocs 26,015,818 (± 0.14%) 26,004,973 (± 0.11%) ~ 25,924,906 26,108,125 p=0.678 n=20
Config Time 0.009s (± 2.73%) 0.009s (± 2.82%) ~ 0.008s 0.009s p=0.751 n=20
Parse Time 0.299s (± 2.24%) 0.299s (± 1.72%) ~ 0.282s 0.321s p=0.963 n=20
Bind Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Check Time 3.265s (± 1.28%) 3.224s (± 1.45%) ~ 3.042s 3.403s p=0.292 n=20
Emit Time 0.258s (± 2.04%) 0.256s (± 2.01%) ~ 0.237s 0.279s p=0.587 n=20
Total Time 4.345s (± 1.28%) 4.301s (± 1.38%) ~ 4.031s 4.509s p=0.373 n=20
sentry - native
Errors 2 2 ~ ~ ~ p=1.000 n=20
Symbols 4,793,245 4,793,245 ~ ~ ~ p=1.000 n=20
Types 2,607,045 2,604,654 -2,391 (- 0.09%) ~ ~ p=0.000 n=20
Memory Used 2,882,235k (± 0.04%) 2,879,947k (± 0.03%) -2,288k (- 0.08%) 2,877,727k 2,883,490k p=0.003 n=20
Memory Allocs 75,452,587 (± 0.39%) 75,223,344 (± 0.24%) ~ 74,819,955 76,299,611 p=0.301 n=20
Config Time 0.025s (± 0.84%) 0.025s (± 0.98%) ~ 0.024s 0.025s p=0.191 n=20
Parse Time 0.483s (± 4.57%) 0.465s (± 4.14%) ~ 0.423s 0.593s p=0.208 n=20
Bind Time 0.158s (± 9.92%) 0.178s (± 9.91%) 🔻+0.020s (+12.64%) 0.139s 0.244s p=0.030 n=20
Check Time 6.741s (± 0.54%) 6.619s (± 0.44%) -0.122s (- 1.81%) 6.538s 6.748s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 7.456s (± 0.54%) 7.343s (± 0.40%) -0.113s (- 1.52%) 7.238s 7.453s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,883,074 1,883,074 ~ ~ ~ p=1.000 n=20
Types 1,158,168 1,157,065 -1,103 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 972,433k (± 0.01%) 971,996k (± 0.01%) -437k (- 0.04%) 971,495k 972,366k p=0.000 n=20
Memory Allocs 13,552,506 (± 0.09%) 13,579,684 (± 0.28%) ~ 13,512,666 13,824,095 p=0.947 n=20
Config Time 0.008s (± 1.30%) 0.008s ~ ~ ~ p=1.000 n=20
Parse Time 0.165s (± 3.07%) 0.161s (± 2.62%) ~ 0.147s 0.182s p=0.317 n=20
Bind Time 0.044s (± 7.40%) 0.051s (±12.43%) ~ 0.041s 0.077s p=0.181 n=20
Check Time 1.537s (± 0.66%) 1.530s (± 0.75%) ~ 1.495s 1.587s p=0.267 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.772s (± 0.61%) 1.767s (± 0.84%) ~ 1.723s 1.823s p=0.507 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,184,972 1,184,972 ~ ~ ~ p=1.000 n=20
Types 438,963 435,976 -2,987 (- 0.68%) ~ ~ p=0.000 n=20
Memory Used 1,167,825k (± 0.33%) 1,166,790k (± 0.33%) ~ 1,152,702k 1,183,823k p=0.602 n=20
Memory Allocs 47,696,097 (± 0.11%) 47,651,206 (± 0.12%) ~ 47,418,517 47,879,221 p=0.277 n=20
Config Time 0.002s (±17.44%) 0.002s (±11.84%) ~ 0.001s 0.002s p=0.320 n=20
Parse Time 0.140s (± 1.36%) 0.139s (± 1.37%) ~ 0.132s 0.147s p=0.233 n=20
Bind Time 0.000s 0.000s (±208.60%) ~ 0.000s 0.001s p=1.000 n=20
Check Time 0.809s (± 0.40%) 0.807s (± 0.66%) ~ 0.795s 0.850s p=0.100 n=20
Emit Time 0.141s (± 1.92%) 0.140s (± 1.27%) ~ 0.135s 0.149s p=0.586 n=20
Total Time 9.378s (± 0.30%) 9.360s (± 0.79%) ~ 9.195s 9.931s p=0.081 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 263,511 263,511 ~ ~ ~ p=1.000 n=20
Types 196,116 195,166 -950 (- 0.48%) ~ ~ p=0.000 n=20
Memory Used 224,612k (± 0.02%) 224,510k (± 0.02%) -102k (- 0.05%) 224,315k 224,632k p=0.001 n=20
Memory Allocs 2,401,550 (± 0.01%) 2,400,331 (± 0.01%) -1,219 (- 0.05%) 2,399,183 2,401,287 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.050s (± 3.59%) 0.049s (± 2.72%) ~ 0.044s 0.056s p=0.246 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.394s (± 5.63%) 0.387s (± 3.15%) ~ 0.368s 0.492s p=0.693 n=20
Emit Time 0.048s (± 5.16%) 0.048s (± 4.77%) ~ 0.041s 0.057s p=0.930 n=20
Total Time 0.520s (± 4.46%) 0.510s (± 2.23%) ~ 0.491s 0.606s p=0.151 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,350,661 4,350,661 ~ ~ ~ p=1.000 n=20
Types 3,040,644 3,038,632 -2,012 (- 0.07%) ~ ~ p=0.000 n=20
Memory Used 2,433,806k (± 0.03%) 2,433,076k (± 0.02%) ~ 2,431,799k 2,435,211k p=0.063 n=20
Memory Allocs 37,372,053 (± 0.08%) 37,397,732 (± 0.11%) ~ 37,297,768 37,718,224 p=0.355 n=20
Config Time 0.003s 0.003s ~ ~ ~ p=1.000 n=20
Parse Time 0.252s (± 1.74%) 0.252s (± 2.52%) ~ 0.225s 0.279s p=0.931 n=20
Bind Time 0.088s (± 9.54%) 0.089s (± 9.96%) ~ 0.075s 0.136s p=0.702 n=20
Check Time 7.219s (± 0.59%) 7.142s (± 0.65%) -0.077s (- 1.06%) 7.033s 7.387s p=0.011 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 7.573s (± 0.57%) 7.496s (± 0.62%) -0.077s (- 1.02%) 7.380s 7.726s p=0.013 n=20
tanstack-router - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 571,756 571,756 ~ ~ ~ p=1.000 n=20
Types 397,689 397,368 -321 (- 0.08%) ~ ~ p=0.000 n=20
Memory Used 331,443k (± 0.01%) 331,365k (± 0.01%) -78k (- 0.02%) 331,188k 331,545k p=0.009 n=20
Memory Allocs 4,388,230 (± 0.28%) 4,390,475 (± 0.23%) ~ 4,375,348 4,445,364 p=0.134 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.040s (± 3.94%) 0.040s (± 4.35%) ~ 0.035s 0.047s p=0.721 n=20
Bind Time 0.013s (±11.58%) 0.013s (± 8.48%) ~ 0.011s 0.019s p=0.909 n=20
Check Time 0.570s (± 1.04%) 0.563s (± 1.23%) ~ 0.537s 0.596s p=0.075 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.643s (± 1.07%) 0.635s (± 1.20%) ~ 0.608s 0.669s p=0.092 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 231,616 231,616 ~ ~ ~ p=1.000 n=20
Types 181,195 180,608 -587 (- 0.32%) ~ ~ p=0.000 n=20
Memory Used 193,502k (± 0.02%) 193,489k (± 0.01%) ~ 193,437k 193,579k p=0.337 n=20
Memory Allocs 1,317,922 (± 0.01%) 1,317,467 (± 0.02%) -455 (- 0.03%) 1,316,746 1,318,335 p=0.001 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.042s (± 2.75%) 0.043s (± 2.70%) ~ 0.039s 0.047s p=0.792 n=20
Bind Time 0.020s (± 5.88%) 0.021s (± 5.04%) ~ 0.017s 0.026s p=0.681 n=20
Check Time 0.294s (± 0.82%) 0.288s (± 0.91%) -0.005s (- 1.87%) 0.279s 0.298s p=0.001 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.362s (± 0.52%) 0.358s (± 0.70%) -0.005s (- 1.27%) 0.349s 0.368s p=0.005 n=20
vscode - native
Errors 11 11 ~ ~ ~ p=1.000 n=20
Symbols 7,495,105 7,495,105 ~ ~ ~ p=1.000 n=20
Types 4,406,091 4,390,662 -15,429 (- 0.35%) ~ ~ p=0.000 n=20
Memory Used 5,204,759k (± 0.03%) 5,202,723k (± 0.02%) -2,035k (- 0.04%) 5,199,675k 5,206,401k p=0.023 n=20
Memory Allocs 57,155,141 (± 0.03%) 57,113,196 (± 0.02%) -41,945 (- 0.07%) 57,085,958 57,178,854 p=0.001 n=20
Config Time 0.034s (± 1.28%) 0.034s (± 1.29%) ~ 0.033s 0.035s p=0.666 n=20
Parse Time 0.921s (± 1.77%) 0.926s (± 2.02%) ~ 0.869s 0.999s p=0.805 n=20
Bind Time 0.330s (±12.11%) 0.305s (± 1.16%) ~ 0.289s 0.318s p=0.783 n=20
Check Time 8.350s (± 1.20%) 8.233s (± 1.10%) ~ 7.985s 8.561s p=0.059 n=20
Emit Time 2.824s (± 4.55%) 2.792s (± 2.67%) ~ 2.659s 3.369s p=0.703 n=20
Total Time 12.517s (± 1.45%) 12.346s (± 1.13%) ~ 11.958s 12.957s p=0.134 n=20
webpack - native
Errors 616 616 ~ ~ ~ p=1.000 n=20
Symbols 917,188 917,188 ~ ~ ~ p=1.000 n=20
Types 636,859 623,227 -13,632 (- 2.14%) ~ ~ p=0.000 n=20
Memory Used 693,459k (± 0.01%) 691,671k (± 0.01%) -1,788k (- 0.26%) 691,398k 692,021k p=0.000 n=20
Memory Allocs 6,499,966 (± 0.04%) 6,482,229 (± 0.03%) -17,737 (- 0.27%) 6,475,185 6,495,212 p=0.000 n=20
Config Time 0.004s 0.004s ~ ~ ~ p=1.000 n=20
Parse Time 0.136s (± 3.02%) 0.141s (± 3.40%) ~ 0.121s 0.161s p=0.125 n=20
Bind Time 0.045s (± 9.51%) 0.046s (±11.92%) ~ 0.037s 0.074s p=0.642 n=20
Check Time 1.124s (± 0.58%) 1.103s (± 0.36%) -0.021s (- 1.90%) 1.084s 1.114s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.333s (± 0.54%) 1.317s (± 0.51%) -0.016s (- 1.22%) 1.294s 1.354s p=0.002 n=20
xstate-main - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 640,490 640,490 ~ ~ ~ p=1.000 n=20
Types 387,984 387,726 -258 (- 0.07%) ~ ~ p=0.000 n=20
Memory Used 350,933k (± 0.03%) 350,827k (± 0.02%) ~ 350,633k 351,108k p=0.063 n=20
Memory Allocs 3,994,723 (± 0.10%) 3,991,730 (± 0.08%) ~ 3,978,568 4,005,354 p=0.512 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.061s (± 3.10%) 0.062s (± 3.13%) ~ 0.055s 0.068s p=0.973 n=20
Bind Time 0.021s (±10.53%) 0.020s (± 8.09%) ~ 0.017s 0.028s p=0.916 n=20
Check Time 0.416s (± 0.80%) 0.412s (± 0.74%) ~ 0.400s 0.424s p=0.118 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.504s (± 0.87%) 0.500s (± 0.81%) ~ 0.486s 0.516s p=0.291 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

@jakebailey

Copy link
Copy Markdown
Member Author

FWIW this looks way better if you view each commit without whitespace, or at least the whole thing https://github.com/microsoft/TypeScript/pull/65043/changes?w=1

Both functions are called on nearly every property, signature, and
index lookup, and the overwhelmingly common input is a plain object
type, for which both return the type unchanged. They were only able
to reach that answer after a chain of flag tests (and, for
getApparentType, a non-inlinable call), and getReducedApparentType
paid for it three times.

Split each into a small inlinable wrapper that returns early for
types that cannot change (non-mapped object types for the apparent
type, anything other than a union or intersection for reduction),
and let getReducedApparentType skip all three steps for non-mapped
object types.

Co-authored-by: Steven Chong <25894545+teamchong@users.noreply.github.com>
getApplicableIndexInfoForName runs for every property name that is
missing from a union constituent, and most types have no index
signatures at all. It still created (and interned) a string literal
type for the name before discovering there was nothing to match.
Check for index infos first.

findApplicableIndexInfo also allocated an 8-element slice on every
call to collect applicable infos, although at most one is applicable
in almost all cases. Track the first applicable info directly and only
collect value types once a second one is found.

Co-authored-by: Steven Chong <25894545+teamchong@users.noreply.github.com>
Synthesizing a union or intersection property looks the name up in
every constituent. Constituents are most often object types whose
members are already resolved, where the lookup amounts to a single
member table probe, yet each one went through getApparentType and
the general getPropertyOfTypeEx path (reduced apparent type, member
resolution, module and value checks) first.

For such constituents, read the member directly when it is a plain
value, or when it is missing and Object/Function augmentation is not
requested. All other cases (module types, aliases, missing members
that may come from the global Object or Function types) still take
the full lookup, so the resulting property is unchanged.

Co-authored-by: Steven Chong <25894545+teamchong@users.noreply.github.com>
getTypeOfPropertyOfContextualType runs for every property of every
contextually typed object literal. It passed a closure to mapTypeEx
even though the contextual type is usually not a union, so the
closure was allocated only to be called once. Handle non-union types
directly and keep mapTypeEx for unions.

Also, as with getApplicableIndexInfoForName, don't create a string
literal type for the property name when the contextual type has no
index signatures that it could be matched against.

Co-authored-by: Steven Chong <25894545+teamchong@users.noreply.github.com>
Resolving the members of a derived class's constructor type cloned the
class's exports table so that static members of the base constructor
could be added to it. But the base constructor's properties are often
all shadowed: every class has its own 'prototype', and many bases have
no other statics. In that case the clone was identical to the original
and the members were stored a second time for nothing.

Find the first base property that would actually be inherited and only
clone the table when there is one. The base constructor's properties
are still resolved at the same point, so resolution order is unchanged.

Co-authored-by: Steven Chong <25894545+teamchong@users.noreply.github.com>
@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
perf test this faster ✅ Started 👀 Results

@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=40
Symbols 88,381 88,381 ~ ~ ~ p=1.000 n=40
Types 79,508 79,149 -359 (- 0.45%) ~ ~ p=0.000 n=40
Memory Used 106,374k (± 0.02%) 106,368k (± 0.02%) ~ 106,188k 106,508k p=0.451 n=40
Memory Allocs 1,046,790 (± 0.00%) 1,046,361 (± 0.01%) -420 (- 0.04%) 1,045,973 1,046,838 p=0.000 n=40
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Parse Time 0.022s (± 1.64%) 0.022s (± 1.72%) ~ 0.020s 0.026s p=0.192 n=40
Bind Time 0.008s (± 2.99%) 0.008s (± 4.07%) ~ 0.006s 0.011s p=0.415 n=40
Check Time 0.210s (± 0.89%) 0.206s (± 1.18%) -0.005s (- 2.18%) 0.196s 0.245s p=0.000 n=40
Emit Time 0.139s (± 1.22%) 0.139s (± 0.94%) ~ 0.128s 0.151s p=0.894 n=40
Total Time 0.383s (± 0.66%) 0.380s (± 0.80%) -0.004s (- 0.97%) 0.359s 0.418s p=0.034 n=40
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=40
Symbols 754,008 754,008 ~ ~ ~ p=1.000 n=40
Types 548,695 546,922 -1,773 (- 0.32%) ~ ~ p=0.000 n=40
Memory Used 643,257k (± 0.01%) 642,751k (± 0.01%) -515k (- 0.08%) 642,193k 643,176k p=0.000 n=40
Memory Allocs 8,317,395 (± 0.07%) 8,310,681 (± 0.02%) -4,788 (- 0.06%) 8,305,950 8,335,848 p=0.000 n=40
Config Time 0.007s (± 1.40%) 0.007s (± 1.79%) ~ 0.006s 0.009s p=1.000 n=40
Parse Time 0.123s (± 3.20%) 0.124s (± 3.08%) ~ 0.106s 0.171s p=0.490 n=40
Bind Time 0.049s (± 7.68%) 0.043s (± 7.26%) 🟩-0.006s (-11.52%) 0.037s 0.090s p=0.024 n=40
Check Time 0.656s (± 0.93%) 0.651s (± 0.92%) ~ 0.611s 0.703s p=0.209 n=40
Emit Time 0.407s (± 0.68%) 0.413s (± 2.29%) ~ 0.393s 0.583s p=0.388 n=40
Total Time 1.254s (± 0.52%) 1.251s (± 1.06%) ~ 1.192s 1.420s p=0.221 n=40
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 676,938 676,938 ~ ~ ~ p=1.000 n=40
Types 937,070 936,842 -228 (- 0.02%) ~ ~ p=0.000 n=40
Memory Used 473,709k (± 0.01%) 473,688k (± 0.01%) ~ 473,482k 473,919k p=0.413 n=40
Memory Allocs 11,790,884 (± 0.02%) 11,790,118 (± 0.02%) ~ 11,783,202 11,829,275 p=0.174 n=40
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=40
Parse Time 0.045s (± 2.93%) 0.043s (± 3.41%) ~ 0.036s 0.054s p=0.177 n=40
Bind Time 0.014s (± 5.71%) 0.013s (± 6.20%) ~ 0.011s 0.023s p=0.387 n=40
Check Time 0.894s (± 1.45%) 0.873s (± 1.09%) -0.017s (- 1.94%) 0.814s 0.953s p=0.000 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.982s (± 1.39%) 0.959s (± 1.08%) -0.019s (- 1.93%) 0.890s 1.043s p=0.000 n=40
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 45,376 45,376 ~ ~ ~ p=1.000 n=40
Types 7,573 7,565 -8 (- 0.11%) ~ ~ p=0.000 n=40
Memory Used 27,748k (± 0.02%) 27,746k (± 0.02%) ~ 27,713k 27,784k p=0.616 n=40
Memory Allocs 232,067 (± 0.03%) 231,984 (± 0.05%) ~ 231,291 232,824 p=0.170 n=40
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=40
Parse Time 0.011s (± 2.66%) 0.012s (± 8.04%) ~ 0.010s 0.030s p=0.118 n=40
Bind Time 0.003s (± 7.20%) 0.004s (±15.14%) ~ 0.002s 0.013s p=0.128 n=40
Check Time 0.008s (± 4.01%) 0.008s (± 6.11%) ~ 0.006s 0.016s p=0.919 n=40
Emit Time 0.008s (± 3.96%) 0.008s (± 4.90%) ~ 0.006s 0.011s p=0.702 n=40
Total Time 0.031s (± 1.59%) 0.032s (± 6.41%) ~ 0.029s 0.073s p=0.795 n=40
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=40
Symbols 1,234,359 1,234,359 ~ ~ ~ p=1.000 n=40
Types 893,315 892,488 -827 (- 0.09%) ~ ~ p=0.000 n=40
Memory Used 941,402k (± 0.02%) 941,140k (± 0.01%) -273k (- 0.03%) 940,310k 942,094k p=0.009 n=40
Memory Allocs 11,726,957 (± 0.05%) 11,724,671 (± 0.04%) ~ 11,708,567 11,766,821 p=0.501 n=40
Config Time 0.002s (± 3.75%) 0.002s (± 5.15%) ~ 0.002s 0.004s p=0.784 n=40
Parse Time 0.150s (± 1.53%) 0.150s (± 2.11%) ~ 0.136s 0.200s p=0.950 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.907s (± 1.20%) 0.886s (± 0.92%) -0.020s (- 2.20%) 0.838s 0.946s p=0.004 n=40
Emit Time 0.492s (± 1.75%) 0.493s (± 1.51%) ~ 0.453s 0.570s p=0.826 n=40
Total Time 1.649s (± 0.69%) 1.627s (± 0.86%) -0.024s (- 1.43%) 1.556s 1.738s p=0.011 n=40
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=40
Symbols 3,730,768 3,730,768 ~ ~ ~ p=1.000 n=40
Types 1,354,170 1,352,557 -1,613 (- 0.12%) ~ ~ p=0.000 n=40
Memory Used 1,667,706k (± 0.05%) 1,667,493k (± 0.05%) ~ 1,662,565k 1,672,821k p=0.536 n=40
Memory Allocs 24,430,423 (± 0.07%) 24,401,975 (± 0.06%) -23,660 (- 0.10%) 24,317,889 24,628,980 p=0.004 n=40
Config Time 0.006s (± 3.93%) 0.006s (± 1.39%) ~ 0.006s 0.007s p=1.000 n=40
Parse Time 0.274s (± 1.89%) 0.271s (± 1.86%) ~ 0.232s 0.321s p=0.503 n=40
Bind Time 0.001s (±17.46%) 0.001s (±18.06%) ~ 0.001s 0.005s p=0.714 n=40
Check Time 2.770s (± 0.65%) 2.700s (± 0.92%) -0.079s (- 2.86%) 2.594s 2.994s p=0.000 n=40
Emit Time 0.251s (± 2.61%) 0.265s (± 4.43%) ~ 0.237s 0.389s p=0.061 n=40
Total Time 3.789s (± 0.58%) 3.721s (± 0.76%) -0.076s (- 2.00%) 3.573s 4.009s p=0.000 n=40
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=40
Symbols 4,782,800 4,782,800 ~ ~ ~ p=1.000 n=40
Types 2,605,443 2,603,085 -2,358 (- 0.09%) ~ ~ p=0.000 n=40
Memory Used 2,799,146k (± 0.03%) 2,798,073k (± 0.02%) ~ 2,794,669k 2,804,148k p=0.051 n=40
Memory Allocs 73,878,521 (± 0.07%) 73,899,022 (± 0.04%) ~ 73,663,153 74,158,232 p=0.232 n=40
Config Time 0.019s (± 1.68%) 0.019s (± 1.85%) ~ 0.017s 0.024s p=0.936 n=40
Parse Time 0.489s (± 2.49%) 0.482s (± 2.64%) ~ 0.412s 0.644s p=0.566 n=40
Bind Time 0.156s (± 6.59%) 0.148s (± 5.67%) ~ 0.122s 0.242s p=0.446 n=40
Check Time 6.813s (± 0.47%) 6.727s (± 0.53%) -0.083s (- 1.22%) 6.514s 6.999s p=0.002 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 7.531s (± 0.43%) 7.427s (± 0.52%) -0.099s (- 1.31%) 7.230s 7.728s p=0.000 n=40
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 1,872,618 1,872,618 ~ ~ ~ p=1.000 n=40
Types 1,150,836 1,149,463 -1,373 (- 0.12%) ~ ~ p=0.000 n=40
Memory Used 948,671k (± 0.02%) 948,322k (± 0.01%) -333k (- 0.04%) 947,476k 948,973k p=0.001 n=40
Memory Allocs 13,367,010 (± 0.11%) 13,372,210 (± 0.16%) ~ 13,313,341 13,637,408 p=0.646 n=40
Config Time 0.006s (± 2.38%) 0.005s (± 2.91%) 0.000s ( 0.00%) 0.005s 0.007s p=0.014 n=40
Parse Time 0.155s (± 2.57%) 0.159s (± 3.69%) ~ 0.139s 0.228s p=0.300 n=40
Bind Time 0.040s (± 5.00%) 0.042s (± 6.85%) ~ 0.033s 0.065s p=0.601 n=40
Check Time 1.412s (± 0.91%) 1.397s (± 1.17%) -0.019s (- 1.34%) 1.313s 1.582s p=0.011 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 1.631s (± 0.83%) 1.621s (± 1.18%) ~ 1.537s 1.837s p=0.068 n=40
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 1,183,341 1,183,341 ~ ~ ~ p=1.000 n=40
Types 437,605 435,437 -2,168 (- 0.50%) ~ ~ p=0.000 n=40
Memory Used 1,157,122k (± 0.23%) 1,157,640k (± 0.27%) ~ 1,138,232k 1,178,646k p=0.735 n=40
Memory Allocs 39,750,629 (± 0.07%) 39,741,595 (± 0.07%) ~ 39,566,173 39,933,645 p=0.666 n=40
Config Time 0.002s (±12.19%) 0.002s (±10.52%) ~ 0.000s 0.003s p=0.838 n=40
Parse Time 0.141s (± 1.12%) 0.142s (± 1.27%) ~ 0.127s 0.156s p=0.216 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.819s (± 0.93%) 0.820s (± 1.07%) ~ 0.777s 0.890s p=0.994 n=40
Emit Time 0.143s (± 1.64%) 0.144s (± 1.83%) ~ 0.132s 0.168s p=0.455 n=40
Total Time 9.535s (± 0.74%) 9.580s (± 1.13%) ~ 9.134s 10.440s p=0.879 n=40
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 262,982 262,982 ~ ~ ~ p=1.000 n=40
Types 195,974 195,118 -856 (- 0.44%) ~ ~ p=0.000 n=40
Memory Used 221,417k (± 0.01%) 221,339k (± 0.01%) -78k (- 0.04%) 221,122k 221,532k p=0.001 n=40
Memory Allocs 1,888,681 (± 0.01%) 1,887,913 (± 0.02%) -784 (- 0.04%) 1,885,806 1,891,922 p=0.000 n=40
Config Time 0.001s (±74.65%) 0.000s (±81.96%) ~ 0.000s 0.006s p=0.466 n=40
Parse Time 0.053s (± 2.75%) 0.053s (± 2.17%) ~ 0.046s 0.060s p=0.976 n=40
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Check Time 0.401s (± 0.66%) 0.396s (± 0.72%) -0.005s (- 1.37%) 0.384s 0.416s p=0.002 n=40
Emit Time 0.049s (± 3.68%) 0.050s (± 3.86%) ~ 0.042s 0.066s p=0.964 n=40
Total Time 0.533s (± 0.82%) 0.528s (± 0.77%) -0.006s (- 1.04%) 0.506s 0.559s p=0.035 n=40
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 4,345,071 4,345,071 ~ ~ ~ p=1.000 n=40
Types 3,040,936 3,038,960 -1,976 (- 0.06%) ~ ~ p=0.000 n=40
Memory Used 2,393,814k (± 0.03%) 2,393,314k (± 0.02%) ~ 2,391,420k 2,396,734k p=0.545 n=40
Memory Allocs 36,909,732 (± 0.05%) 36,904,460 (± 0.03%) ~ 36,840,704 37,020,956 p=0.765 n=40
Config Time 0.002s (± 6.43%) 0.002s (± 6.37%) ~ 0.002s 0.003s p=0.051 n=40
Parse Time 0.243s (± 1.74%) 0.239s (± 1.40%) ~ 0.219s 0.272s p=0.115 n=40
Bind Time 0.086s (± 6.41%) 0.087s (± 6.98%) ~ 0.070s 0.136s p=0.620 n=40
Check Time 5.744s (± 0.78%) 5.641s (± 0.71%) -0.101s (- 1.76%) 5.481s 6.003s p=0.000 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 6.089s (± 0.79%) 5.982s (± 0.71%) -0.105s (- 1.72%) 5.818s 6.329s p=0.000 n=40
tanstack-router - native
Errors 1 1 ~ ~ ~ p=1.000 n=40
Symbols 568,576 568,576 ~ ~ ~ p=1.000 n=40
Types 396,130 395,878 -252 (- 0.06%) ~ ~ p=0.000 n=40
Memory Used 315,082k (± 0.01%) 315,005k (± 0.01%) -76k (- 0.02%) 314,779k 315,320k p=0.006 n=40
Memory Allocs 4,159,359 (± 0.07%) 4,157,742 (± 0.05%) ~ 4,149,008 4,183,243 p=0.795 n=40
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=40
Parse Time 0.040s (± 2.36%) 0.041s (± 2.87%) ~ 0.033s 0.049s p=0.255 n=40
Bind Time 0.012s (± 7.07%) 0.012s (± 5.94%) ~ 0.010s 0.019s p=0.882 n=40
Check Time 0.467s (± 1.17%) 0.454s (± 0.63%) -0.010s (- 2.10%) 0.430s 0.471s p=0.000 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.537s (± 1.07%) 0.526s (± 0.66%) -0.010s (- 1.80%) 0.501s 0.551s p=0.002 n=40
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=40
Symbols 231,156 231,156 ~ ~ ~ p=1.000 n=40
Types 181,003 180,548 -455 (- 0.25%) ~ ~ p=0.000 n=40
Memory Used 190,781k (± 0.01%) 190,731k (± 0.01%) -50k (- 0.03%) 190,563k 190,834k p=0.000 n=40
Memory Allocs 1,286,533 (± 0.01%) 1,286,061 (± 0.01%) -475 (- 0.04%) 1,285,299 1,287,212 p=0.000 n=40
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Parse Time 0.042s (± 4.35%) 0.040s (± 1.71%) ~ 0.036s 0.045s p=0.072 n=40
Bind Time 0.021s (± 7.08%) 0.021s (± 3.48%) ~ 0.018s 0.028s p=0.918 n=40
Check Time 0.295s (± 0.87%) 0.289s (± 0.62%) -0.006s (- 2.09%) 0.275s 0.296s p=0.000 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 0.366s (± 0.95%) 0.357s (± 0.49%) -0.007s (- 2.00%) 0.338s 0.366s p=0.000 n=40
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=40
Symbols 8,556,300 8,556,300 ~ ~ ~ p=1.000 n=40
Types 4,982,004 4,965,571 -16,433 (- 0.33%) ~ ~ p=0.000 n=40
Memory Used 5,699,307k (± 0.01%) 5,697,999k (± 0.01%) -1,261k (- 0.02%) 5,693,673k 5,703,958k p=0.026 n=40
Memory Allocs 63,414,456 (± 0.01%) 63,373,347 (± 0.01%) -42,032 (- 0.07%) 63,346,648 63,484,828 p=0.000 n=40
Config Time 0.024s (± 0.94%) 0.024s (± 1.55%) ~ 0.023s 0.029s p=0.285 n=40
Parse Time 0.942s (± 1.12%) 0.968s (± 1.28%) +0.026s (+ 2.79%) 0.895s 1.057s p=0.002 n=40
Bind Time 0.352s (± 5.17%) 0.330s (± 3.28%) ~ 0.297s 0.490s p=0.144 n=40
Check Time 8.039s (± 0.60%) 7.981s (± 0.51%) ~ 7.668s 8.350s p=0.051 n=40
Emit Time 2.543s (± 4.96%) 2.355s (± 4.11%) 🟩-0.158s (- 6.19%) 2.114s 3.163s p=0.003 n=40
Total Time 11.967s (± 0.94%) 11.720s (± 0.75%) -0.209s (- 1.75%) 11.367s 12.606s p=0.000 n=40
webpack - native
Errors 637 637 ~ ~ ~ p=1.000 n=40
Symbols 919,410 919,410 ~ ~ ~ p=1.000 n=40
Types 643,434 630,685 -12,749 (- 1.98%) ~ ~ p=0.000 n=40
Memory Used 734,815k (± 0.01%) 732,588k (± 0.01%) -2,226k (- 0.30%) 731,969k 733,123k p=0.000 n=40
Memory Allocs 6,356,482 (± 0.08%) 6,346,583 (± 0.13%) -12,435 (- 0.20%) 6,322,420 6,461,092 p=0.007 n=40
Config Time 0.003s (± 3.15%) 0.003s (± 2.95%) 0.000s ( 0.00%) 0.003s 0.004s p=0.050 n=40
Parse Time 0.136s (± 2.30%) 0.137s (± 2.15%) ~ 0.118s 0.166s p=0.232 n=40
Bind Time 0.048s (± 8.19%) 0.045s (± 6.36%) ~ 0.035s 0.071s p=0.468 n=40
Check Time 1.729s (± 1.34%) 1.671s (± 1.04%) 🟩-0.059s (- 3.39%) 1.548s 1.863s p=0.000 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 1.941s (± 1.38%) 1.883s (± 1.01%) -0.057s (- 2.92%) 1.746s 2.086s p=0.000 n=40
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=40
Symbols 4,048,047 4,048,047 ~ ~ ~ p=1.000 n=40
Types 4,184,629 4,183,910 -719 (- 0.02%) ~ ~ p=0.000 n=40
Memory Used 2,227,623k (± 0.01%) 2,227,392k (± 0.01%) -188k (- 0.01%) 2,226,741k 2,228,152k p=0.031 n=40
Memory Allocs 44,951,343 (± 0.01%) 44,951,985 (± 0.01%) ~ 44,930,708 45,019,837 p=0.354 n=40
Config Time 0.002s (±10.49%) 0.002s (± 1.32%) ~ 0.002s 0.002s p=0.500 n=40
Parse Time 0.111s (± 4.87%) 0.110s (± 1.74%) ~ 0.098s 0.122s p=0.943 n=40
Bind Time 0.041s (± 6.38%) 0.041s (± 5.99%) ~ 0.032s 0.061s p=0.945 n=40
Check Time 4.449s (± 0.73%) 4.410s (± 0.86%) -0.039s (- 0.88%) 4.157s 4.664s p=0.008 n=40
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=40
Total Time 4.610s (± 0.74%) 4.570s (± 0.86%) -0.041s (- 0.90%) 4.316s 4.831s p=0.011 n=40
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

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
perf test this faster ❌ Error: Error: TF215106: Access denied. typescriptbot-github3 needs Edit queue build configuration permissions for build pipeline 69:Benchmark (typescript-benchmarking) in team project TypeScript to perform the action. For more information, contact the Azure DevOps administrator.

@jakebailey

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) perf test this faster

@typescript-automation

typescript-automation Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Command Status Results
perf test this faster ✅ Started 👀 Results

@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,508 79,149 -359 (- 0.45%) ~ ~ p=0.000 n=20
Memory Used 106,308k (± 0.03%) 106,290k (± 0.02%) ~ 106,195k 106,381k p=0.498 n=20
Memory Allocs 1,046,173 (± 0.01%) 1,045,776 (± 0.01%) -403 (- 0.04%) 1,045,554 1,046,075 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.046s (± 2.54%) 0.045s (± 3.49%) ~ 0.039s 0.050s p=0.433 n=20
Bind Time 0.014s (± 7.16%) 0.015s (± 9.77%) ~ 0.012s 0.021s p=0.080 n=20
Check Time 0.476s (± 0.65%) 0.457s (± 0.57%) 🟩-0.020s (- 4.13%) 0.450s 0.470s p=0.000 n=20
Emit Time 0.262s (± 1.37%) 0.259s (± 0.81%) ~ 0.252s 0.267s p=0.452 n=20
Total Time 0.806s (± 0.44%) 0.785s (± 0.51%) -0.020s (- 2.52%) 0.762s 0.800s p=0.000 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 754,010 754,010 ~ ~ ~ p=1.000 n=20
Types 548,695 546,922 -1,773 (- 0.32%) ~ ~ p=0.000 n=20
Memory Used 642,700k (± 0.01%) 642,320k (± 0.01%) -369k (- 0.06%) 641,851k 642,563k p=0.000 n=20
Memory Allocs 8,313,087 (± 0.03%) 8,309,975 (± 0.03%) ~ 8,304,675 8,325,889 p=0.090 n=20
Config Time 0.013s 0.013s (± 1.16%) ~ 0.012s 0.014s p=1.000 n=20
Parse Time 0.208s (± 2.37%) 0.208s (± 2.22%) ~ 0.192s 0.224s p=0.798 n=20
Bind Time 0.066s (±11.93%) 0.062s (±10.39%) ~ 0.053s 0.107s p=0.323 n=20
Check Time 1.126s (± 0.70%) 1.107s (± 0.97%) -0.017s (- 1.50%) 1.071s 1.145s p=0.002 n=20
Emit Time 0.738s (± 0.68%) 0.742s (± 0.72%) ~ 0.728s 0.767s p=0.368 n=20
Total Time 2.167s (± 0.41%) 2.148s (± 0.57%) -0.021s (- 0.95%) 2.099s 2.189s p=0.027 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 677,106 677,106 ~ ~ ~ p=1.000 n=20
Types 937,969 937,741 -228 (- 0.02%) ~ ~ p=0.000 n=20
Memory Used 473,941k (± 0.01%) 473,914k (± 0.01%) ~ 473,760k 474,074k p=0.498 n=20
Memory Allocs 11,791,783 (± 0.01%) 11,790,586 (± 0.01%) -1,897 (- 0.02%) 11,787,932 11,798,474 p=0.044 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.068s (± 2.44%) 0.066s (± 2.05%) ~ 0.061s 0.072s p=0.115 n=20
Bind Time 0.019s (± 8.68%) 0.019s (± 4.29%) ~ 0.017s 0.024s p=0.610 n=20
Check Time 1.480s (± 0.49%) 1.459s (± 0.65%) -0.022s (- 1.47%) 1.435s 1.510s p=0.001 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.617s (± 0.46%) 1.589s (± 0.59%) -0.029s (- 1.77%) 1.560s 1.638s p=0.000 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,378 45,378 ~ ~ ~ p=1.000 n=20
Types 7,573 7,565 -8 (- 0.11%) ~ ~ p=0.000 n=20
Memory Used 27,695k (± 0.03%) 27,701k (± 0.03%) ~ 27,676k 27,729k p=0.258 n=20
Memory Allocs 231,662 (± 0.05%) 231,561 (± 0.05%) ~ 231,109 232,084 p=0.277 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.016s (± 3.35%) 0.017s (± 2.94%) ~ 0.015s 0.019s p=0.078 n=20
Bind Time 0.006s (±10.73%) 0.005s (±10.92%) ~ 0.004s 0.007s p=0.601 n=20
Check Time 0.015s (± 6.35%) 0.015s (± 5.46%) ~ 0.013s 0.017s p=0.827 n=20
Emit Time 0.015s (± 7.01%) 0.014s (± 5.67%) ~ 0.012s 0.017s p=0.458 n=20
Total Time 0.053s (± 1.83%) 0.053s (± 1.46%) ~ 0.050s 0.056s p=1.000 n=20
effect - native
Errors 12 12 ~ ~ ~ p=1.000 n=20
Symbols 1,234,359 1,234,359 ~ ~ ~ p=1.000 n=20
Types 893,315 892,488 -827 (- 0.09%) ~ ~ p=0.000 n=20
Memory Used 940,435k (± 0.01%) 940,286k (± 0.01%) ~ 939,879k 940,699k p=0.105 n=20
Memory Allocs 11,707,952 (± 0.04%) 11,703,715 (± 0.01%) -2,641 (- 0.02%) 11,697,298 11,708,538 p=0.024 n=20
Config Time 0.006s (± 1.75%) 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.331s (± 1.17%) 0.330s (± 1.29%) ~ 0.314s 0.344s p=0.869 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.845s (± 0.47%) 1.810s (± 0.44%) -0.035s (- 1.88%) 1.784s 1.838s p=0.000 n=20
Emit Time 0.973s (± 2.83%) 0.922s (± 2.67%) 🟩-0.053s (- 5.46%) 0.858s 1.024s p=0.021 n=20
Total Time 3.327s (± 0.76%) 3.234s (± 0.77%) -0.097s (- 2.93%) 3.143s 3.329s p=0.000 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,730,768 3,730,768 ~ ~ ~ p=1.000 n=20
Types 1,354,170 1,352,557 -1,613 (- 0.12%) ~ ~ p=0.000 n=20
Memory Used 1,663,344k (± 0.06%) 1,663,852k (± 0.06%) ~ 1,659,488k 1,668,049k p=0.231 n=20
Memory Allocs 24,368,855 (± 0.05%) 24,365,596 (± 0.04%) ~ 24,325,547 24,413,254 p=0.571 n=20
Config Time 0.016s (± 0.65%) 0.016s (± 1.32%) 0.000s ( 0.00%) 0.015s 0.016s p=0.046 n=20
Parse Time 0.554s (± 2.38%) 0.557s (± 2.25%) ~ 0.509s 0.620s p=0.812 n=20
Bind Time 0.003s (±17.02%) 0.002s (± 9.21%) 🟩-0.001s (-18.35%) 0.002s 0.003s p=0.004 n=20
Check Time 5.690s (± 0.61%) 5.505s (± 0.44%) 🟩-0.186s (- 3.28%) 5.443s 5.667s p=0.000 n=20
Emit Time 0.602s (± 7.47%) 0.596s (± 6.31%) ~ 0.492s 0.745s p=0.985 n=20
Total Time 7.802s (± 0.65%) 7.630s (± 0.71%) -0.176s (- 2.25%) 7.420s 7.837s p=0.000 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,785,582 4,785,582 ~ ~ ~ p=1.000 n=20
Types 2,593,059 2,590,587 -2,472 (- 0.10%) ~ ~ p=0.000 n=20
Memory Used 2,792,749k (± 0.03%) 2,791,697k (± 0.02%) -1,092k (- 0.04%) 2,789,365k 2,793,979k p=0.040 n=20
Memory Allocs 73,793,501 (± 0.07%) 73,762,753 (± 0.07%) ~ 73,584,171 73,988,986 p=0.388 n=20
Config Time 0.044s (± 0.81%) 0.044s (± 0.52%) ~ 0.043s 0.045s p=0.612 n=20
Parse Time 0.995s (± 2.47%) 0.984s (± 1.39%) ~ 0.930s 1.034s p=0.596 n=20
Bind Time 0.291s (±12.41%) 0.297s (±11.18%) ~ 0.249s 0.465s p=0.651 n=20
Check Time 13.397s (± 0.30%) 13.210s (± 0.42%) -0.167s (- 1.25%) 12.973s 13.455s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.795s (± 0.28%) 14.602s (± 0.41%) -0.193s (- 1.30%) 14.411s 14.958s p=0.000 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,872,620 1,872,620 ~ ~ ~ p=1.000 n=20
Types 1,150,836 1,149,463 -1,373 (- 0.12%) ~ ~ p=0.000 n=20
Memory Used 948,253k (± 0.01%) 948,066k (± 0.01%) -186k (- 0.02%) 947,609k 948,643k p=0.024 n=20
Memory Allocs 13,355,937 (± 0.11%) 13,365,891 (± 0.23%) ~ 13,310,121 13,611,195 p=0.869 n=20
Config Time 0.013s (± 1.56%) 0.013s (± 1.75%) ~ 0.013s 0.014s p=0.065 n=20
Parse Time 0.333s (± 1.39%) 0.334s (± 1.72%) ~ 0.319s 0.357s p=0.679 n=20
Bind Time 0.082s (± 7.09%) 0.087s (±11.37%) ~ 0.071s 0.133s p=0.712 n=20
Check Time 2.962s (± 0.54%) 2.894s (± 0.62%) -0.068s (- 2.30%) 2.830s 2.943s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.416s (± 0.35%) 3.353s (± 0.33%) -0.061s (- 1.80%) 3.311s 3.391s p=0.000 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,183,341 1,183,341 ~ ~ ~ p=1.000 n=20
Types 437,605 435,437 -2,168 (- 0.50%) ~ ~ p=0.000 n=20
Memory Used 1,165,971k (± 0.37%) 1,163,819k (± 0.32%) ~ 1,153,885k 1,182,694k p=0.330 n=20
Memory Allocs 39,954,212 (± 0.06%) 39,957,268 (± 0.08%) ~ 39,790,631 40,070,619 p=0.648 n=20
Config Time 0.004s (± 9.38%) 0.005s (± 6.29%) ~ 0.004s 0.006s p=0.229 n=20
Parse Time 0.288s (± 1.22%) 0.289s (± 1.91%) ~ 0.261s 0.315s p=0.738 n=20
Bind Time 0.000s 0.000s (±208.60%) ~ 0.000s 0.001s p=1.000 n=20
Check Time 1.727s (± 0.37%) 1.698s (± 0.44%) -0.029s (- 1.68%) 1.672s 1.726s p=0.000 n=20
Emit Time 0.296s (± 2.92%) 0.304s (± 2.17%) ~ 0.272s 0.326s p=0.123 n=20
Total Time 20.454s (± 0.42%) 20.333s (± 0.32%) -0.107s (- 0.52%) 20.022s 20.640s p=0.009 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,982 262,982 ~ ~ ~ p=1.000 n=20
Types 195,974 195,118 -856 (- 0.44%) ~ ~ p=0.000 n=20
Memory Used 221,249k (± 0.02%) 221,194k (± 0.02%) ~ 220,964k 221,403k p=0.123 n=20
Memory Allocs 1,887,239 (± 0.02%) 1,886,022 (± 0.02%) -1,284 (- 0.07%) 1,884,044 1,887,421 p=0.000 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.102s (± 2.97%) 0.105s (± 4.70%) ~ 0.088s 0.122s p=0.330 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.846s (± 0.55%) 0.831s (± 0.51%) -0.017s (- 1.96%) 0.822s 0.861s p=0.000 n=20
Emit Time 0.088s (± 3.50%) 0.092s (± 4.38%) ~ 0.078s 0.109s p=0.145 n=20
Total Time 1.083s (± 0.53%) 1.079s (± 0.73%) ~ 1.041s 1.104s p=0.312 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,345,073 4,345,073 ~ ~ ~ p=1.000 n=20
Types 3,040,936 3,038,960 -1,976 (- 0.06%) ~ ~ p=0.000 n=20
Memory Used 2,393,498k (± 0.03%) 2,392,662k (± 0.02%) -761k (- 0.03%) 2,391,385k 2,394,936k p=0.030 n=20
Memory Allocs 36,903,687 (± 0.04%) 36,902,690 (± 0.05%) ~ 36,834,571 37,024,982 p=0.812 n=20
Config Time 0.006s (± 3.09%) 0.006s (± 2.43%) ~ 0.005s 0.006s p=1.000 n=20
Parse Time 0.549s (± 2.20%) 0.549s (± 1.91%) ~ 0.501s 0.588s p=0.891 n=20
Bind Time 0.152s (± 9.32%) 0.143s (± 5.24%) ~ 0.132s 0.194s p=0.284 n=20
Check Time 12.608s (± 0.49%) 12.221s (± 0.46%) 🟩-0.381s (- 3.02%) 12.043s 12.424s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 13.332s (± 0.46%) 12.935s (± 0.45%) -0.392s (- 2.94%) 12.742s 13.137s p=0.000 n=20
tanstack-router - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 568,576 568,576 ~ ~ ~ p=1.000 n=20
Types 396,130 395,878 -252 (- 0.06%) ~ ~ p=0.000 n=20
Memory Used 314,881k (± 0.01%) 314,790k (± 0.01%) -92k (- 0.03%) 314,622k 314,930k p=0.004 n=20
Memory Allocs 4,152,347 (± 0.09%) 4,147,492 (± 0.04%) -3,936 (- 0.09%) 4,143,074 4,159,145 p=0.006 n=20
Config Time 0.001s (±13.05%) 0.001s (± 9.93%) ~ 0.001s 0.002s p=0.773 n=20
Parse Time 0.065s (± 2.96%) 0.064s (± 2.89%) ~ 0.057s 0.072s p=0.763 n=20
Bind Time 0.017s (± 1.45%) 0.021s (±16.31%) ~ 0.016s 0.036s p=0.165 n=20
Check Time 0.857s (± 0.35%) 0.840s (± 0.71%) -0.016s (- 1.89%) 0.818s 0.861s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.963s (± 0.39%) 0.949s (± 0.59%) -0.015s (- 1.51%) 0.932s 0.980s p=0.002 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 231,158 231,158 ~ ~ ~ p=1.000 n=20
Types 181,003 180,548 -455 (- 0.25%) ~ ~ p=0.000 n=20
Memory Used 190,672k (± 0.01%) 190,607k (± 0.02%) -64k (- 0.03%) 190,443k 190,713k p=0.006 n=20
Memory Allocs 1,285,721 (± 0.01%) 1,285,202 (± 0.01%) -549 (- 0.04%) 1,284,782 1,285,917 p=0.000 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.073s (± 2.55%) 0.071s (± 3.40%) ~ 0.063s 0.079s p=0.170 n=20
Bind Time 0.027s (± 7.15%) 0.029s (± 7.02%) ~ 0.022s 0.036s p=0.142 n=20
Check Time 0.545s (± 0.72%) 0.538s (± 0.62%) -0.006s (- 1.19%) 0.523s 0.548s p=0.007 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.657s (± 0.42%) 0.650s (± 0.47%) -0.006s (- 0.85%) 0.638s 0.660s p=0.002 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,594,315 8,594,315 ~ ~ ~ p=1.000 n=20
Types 4,986,173 4,970,108 -16,065 (- 0.32%) ~ ~ p=0.000 n=20
Memory Used 5,726,205k (± 0.01%) 5,722,230k (± 0.02%) -3,927k (- 0.07%) 5,719,103k 5,725,260k p=0.000 n=20
Memory Allocs 63,591,859 (± 0.01%) 63,563,268 (± 0.02%) -30,688 (- 0.05%) 63,534,384 63,628,256 p=0.001 n=20
Config Time 0.058s (± 0.60%) 0.058s (± 0.42%) ~ 0.057s 0.059s p=0.552 n=20
Parse Time 2.148s (± 1.61%) 2.162s (± 1.65%) ~ 1.978s 2.294s p=0.596 n=20
Bind Time 0.642s (± 9.57%) 0.631s (± 8.53%) ~ 0.559s 0.982s p=0.701 n=20
Check Time 17.827s (± 0.45%) 17.553s (± 0.47%) -0.276s (- 1.55%) 17.245s 17.964s p=0.000 n=20
Emit Time 4.897s (± 5.90%) 4.861s (± 5.52%) ~ 4.366s 5.963s p=0.674 n=20
Total Time 25.654s (± 1.13%) 25.349s (± 1.07%) ~ 24.732s 26.418s p=0.231 n=20
webpack - native
Errors 641 641 ~ ~ ~ p=1.000 n=20
Symbols 922,482 922,482 ~ ~ ~ p=1.000 n=20
Types 644,001 629,750 -14,251 (- 2.21%) ~ ~ p=0.000 n=20
Memory Used 741,544k (± 0.02%) 739,530k (± 0.02%) -2,004k (- 0.27%) 738,975k 740,025k p=0.000 n=20
Memory Allocs 6,393,114 (± 0.15%) 6,364,088 (± 0.05%) -23,589 (- 0.37%) 6,355,540 6,385,677 p=0.000 n=20
Config Time 0.007s (± 3.43%) 0.007s (± 3.07%) ~ 0.006s 0.007s p=0.530 n=20
Parse Time 0.238s (± 2.74%) 0.245s (± 2.53%) ~ 0.222s 0.267s p=0.177 n=20
Bind Time 0.066s (±13.02%) 0.065s (±11.96%) ~ 0.052s 0.101s p=0.955 n=20
Check Time 2.883s (± 0.41%) 2.747s (± 0.42%) 🟩-0.136s (- 4.72%) 2.719s 2.798s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.228s (± 0.48%) 3.097s (± 0.50%) 🟩-0.129s (- 4.00%) 3.062s 3.155s p=0.000 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,068,881 4,068,881 ~ ~ ~ p=1.000 n=20
Types 4,175,591 4,174,881 -710 (- 0.02%) ~ ~ p=0.000 n=20
Memory Used 2,234,679k (± 0.01%) 2,234,558k (± 0.01%) ~ 2,233,968k 2,235,138k p=0.312 n=20
Memory Allocs 44,817,044 (± 0.01%) 44,818,087 (± 0.01%) ~ 44,807,354 44,838,644 p=0.409 n=20
Config Time 0.005s (± 4.36%) 0.005s (± 5.32%) ~ 0.004s 0.005s p=0.532 n=20
Parse Time 0.251s (± 1.86%) 0.250s (± 1.49%) ~ 0.239s 0.268s p=0.258 n=20
Bind Time 0.071s (± 9.82%) 0.070s (± 3.63%) ~ 0.065s 0.083s p=0.599 n=20
Check Time 10.692s (± 0.16%) 10.499s (± 0.34%) -0.203s (- 1.90%) 10.291s 10.629s p=0.000 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 11.027s (± 0.15%) 10.832s (± 0.32%) -0.202s (- 1.83%) 10.633s 10.962s 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

@jakebailey
Jake Bailey (jakebailey) added this pull request to the merge queue Nov 19, 2026
Merged via the queue into microsoft:main with commit 1ce7a28 Nov 19, 2026
34 checks passed
@jakebailey
Jake Bailey (jakebailey) deleted the perf/member-lookup branch November 19, 2026 22:42
@github-project-automation github-project-automation Bot moved this from Needs merge to Done in PR Backlog Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Author: Team Domain: Performance Performance related For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants