Skip to content

Cache the constraint of generic indexed access types - #65664

Draft
Ryan Cavanaugh (RyanCavanaugh) wants to merge 3 commits into
mainfrom
copilot/optimize-indexed-access-check
Draft

Ryan Cavanaugh (RyanCavanaugh) wants to merge 3 commits into
mainfrom
copilot/optimize-indexed-access-check

Conversation

@RyanCavanaugh

@RyanCavanaugh Ryan Cavanaugh (RyanCavanaugh) commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Relating a generic indexed access to a large union target takes seconds when the object's properties are named union aliases. The issue's repro takes about 16–18 s to check:

type ColumnFor<T extends Table> = Columns[T];   // Columns: 300 props, each a named union alias
declare function parent<C extends Column | undefined>(column?: C): C;  // Column: ~1,700 literals

export function parentOf<T extends Table>(column: ColumnFor<T>) {
    return parent(column);
}

Cause

  • typeRelatedToSomeType relates Columns[T] to each member of the target union.
  • For each member, the source type-variable branch of structuredTypeRelatedToWorker calls getConstraintOfType(source), which reaches getConstraintFromIndexedAccess.
  • That function had no cache, so Columns[Table] was rebuilt once per target member: 300 property lookups, then a getUnionType over 300 named unions.
  • Type parameters (tp.constraint) and conditional types (resolvedDefaultConstraint, resolvedConstraintOfDistributive) already cache their constraints. Indexed access types did not.
  • The gap against 5.9 is wider because getUnionTypeWorker's named-union scan binary-searches with CompareTypes, which costs more than Strada's id comparison.

Change

  • Adds a resolvedConstraint field to IndexedAccessType, filled on first use with c.noConstraintType as the "no constraint" sentinel. This follows the existing ConditionalType pattern.
  • The existing body moves unchanged into computeConstraintFromIndexedAccess.
  • The cached value depends only on objectType, indexType and accessFlags. It is computed with no access node, and only after hasNonCircularBaseConstraint(t) in getConstraintOfIndexedAccess, the only caller.
  • getUnionTypeWorker's named-union scan is unchanged. It is no longer reached repeatedly in this scenario, so speeding it up is left for a follow-up.

Results

Check time from --extendedDiagnostics; peak RSS from /usr/bin/time -v.

Repro Check time Peak RSS
Issue gen.mjs, 300 tables 18.45 s → 0.049 s 41.6 → 32.2 MB
200 tables 20.92 s → 0.051 s 37.7 → 31.9 MB
100 tables 5.75 s → 0.028 s 36.8 → 30.6 MB
Inline unions, 300 tables 1.30 s → 0.030 s 43.1 → 33.4 MB

Test

  • Adds indexedAccessConstraintRelatedToLargeUnion.ts: 100 tables × 12 columns, generated with template literal types.
  • It produces no baselines, so it only fails by timing out: about 5 s before the fix and about 0.08 s after.
  • There are no baseline changes elsewhere.

…sed unions

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@typescript-automation typescript-automation Bot added For Uncommitted Bug PR for untriaged, rejected, closed or missing bug and removed For Milestone Bug PRs that fix a bug with a specific milestone labels Nov 25, 2026
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@RyanCavanaugh Ryan Cavanaugh (RyanCavanaugh) changed the title [WIP] Optimize TypeScript type-checking against large union of literal aliases Cache the constraint of generic indexed access types Nov 25, 2026
@RyanCavanaugh

Copy link
Copy Markdown
Member Author

TypeScript Bot (@typescript-bot) test it

@typescript-automation

typescript-automation Bot commented Nov 25, 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 Ryan Cavanaugh (@RyanCavanaugh), 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

Ryan Cavanaugh (@RyanCavanaugh) 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

Ryan Cavanaugh (@RyanCavanaugh)
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,151 79,151 ~ ~ ~ p=1.000 n=20
Memory Used 106,304k (± 0.03%) 106,302k (± 0.03%) ~ 106,183k 106,452k p=0.927 n=20
Memory Allocs 1,045,756 (± 0.00%) 1,045,750 (± 0.01%) ~ 1,045,534 1,045,997 p=0.701 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.037s (± 2.60%) 0.037s (± 3.28%) ~ 0.032s 0.041s p=1.000 n=20
Bind Time 0.012s (± 8.04%) 0.012s (± 8.37%) ~ 0.009s 0.016s p=0.276 n=20
Check Time 0.376s (± 0.71%) 0.378s (± 0.80%) ~ 0.368s 0.391s p=0.828 n=20
Emit Time 0.213s (± 0.73%) 0.216s (± 1.18%) ~ 0.207s 0.231s p=0.143 n=20
Total Time 0.645s (± 0.44%) 0.648s (± 0.53%) ~ 0.635s 0.660s p=0.210 n=20
angular-1 - native
Errors 63 63 ~ ~ ~ p=1.000 n=20
Symbols 753,805 753,805 ~ ~ ~ p=1.000 n=20
Types 546,821 546,821 ~ ~ ~ p=1.000 n=20
Memory Used 642,626k (± 0.01%) 642,691k (± 0.01%) ~ 642,434k 643,026k p=0.177 n=20
Memory Allocs 8,309,895 (± 0.05%) 8,312,182 (± 0.06%) ~ 8,302,520 8,347,220 p=0.898 n=20
Config Time 0.013s (± 0.81%) 0.013s (± 0.81%) ~ 0.012s 0.013s p=1.000 n=20
Parse Time 0.208s (± 2.55%) 0.208s (± 2.02%) ~ 0.190s 0.222s p=0.985 n=20
Bind Time 0.062s (±11.60%) 0.060s (±10.61%) ~ 0.053s 0.099s p=0.442 n=20
Check Time 1.108s (± 0.92%) 1.107s (± 0.81%) ~ 1.069s 1.135s p=0.985 n=20
Emit Time 0.736s (± 0.88%) 0.739s (± 1.02%) ~ 0.703s 0.773s p=0.349 n=20
Total Time 2.142s (± 0.63%) 2.143s (± 0.61%) ~ 2.075s 2.183s p=0.985 n=20
arktype - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 676,875 676,875 ~ ~ ~ p=1.000 n=20
Types 937,868 937,868 ~ ~ ~ p=1.000 n=20
Memory Used 473,674k (± 0.01%) 473,786k (± 0.01%) +113k (+ 0.02%) 473,596k 473,987k p=0.014 n=20
Memory Allocs 11,789,026 (± 0.01%) 11,788,016 (± 0.02%) ~ 11,783,586 11,803,644 p=0.105 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.067s (± 3.37%) 0.066s (± 2.68%) ~ 0.059s 0.075s p=1.000 n=20
Bind Time 0.020s (± 8.60%) 0.020s (±11.19%) ~ 0.017s 0.034s p=0.507 n=20
Check Time 1.469s (± 0.72%) 1.461s (± 0.64%) ~ 1.435s 1.515s p=0.154 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.598s (± 0.66%) 1.592s (± 0.65%) ~ 1.565s 1.646s p=0.368 n=20
class-transformer - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 45,379 45,379 ~ ~ ~ p=1.000 n=20
Types 7,571 7,571 ~ ~ ~ p=1.000 n=20
Memory Used 27,706k (± 0.03%) 27,702k (± 0.03%) ~ 27,669k 27,727k p=0.522 n=20
Memory Allocs 231,614 (± 0.06%) 231,636 (± 0.05%) ~ 231,263 232,236 p=0.784 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.017s (± 3.52%) 0.016s (± 3.73%) 🟩-0.001s (- 5.72%) 0.014s 0.019s p=0.046 n=20
Bind Time 0.005s (±14.94%) 0.006s (±11.30%) ~ 0.004s 0.008s p=0.325 n=20
Check Time 0.016s (± 6.46%) 0.015s (± 6.81%) ~ 0.013s 0.018s p=0.305 n=20
Emit Time 0.014s (± 7.02%) 0.014s (± 6.11%) ~ 0.012s 0.017s p=0.609 n=20
Total Time 0.053s (± 1.71%) 0.053s (± 1.54%) ~ 0.050s 0.056s p=0.245 n=20
effect - native
Errors 4 4 ~ ~ ~ p=1.000 n=20
Symbols 1,233,598 1,233,598 ~ ~ ~ p=1.000 n=20
Types 890,152 890,152 ~ ~ ~ p=1.000 n=20
Memory Used 938,352k (± 0.01%) 938,511k (± 0.01%) +147k (+ 0.02%) 937,975k 939,011k p=0.027 n=20
Memory Allocs 11,676,182 (± 0.01%) 11,680,351 (± 0.03%) +2,726 (+ 0.02%) 11,671,229 11,711,925 p=0.024 n=20
Config Time 0.006s 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.333s (± 0.90%) 0.333s (± 1.58%) ~ 0.310s 0.354s p=0.985 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.807s (± 0.53%) 1.791s (± 0.50%) -0.018s (- 1.00%) 1.758s 1.842s p=0.015 n=20
Emit Time 0.954s (± 3.27%) 0.973s (± 2.79%) ~ 0.889s 1.079s p=0.312 n=20
Total Time 3.265s (± 0.90%) 3.270s (± 0.71%) ~ 3.185s 3.357s p=0.729 n=20
mui-docs - native
Errors 11,405 11,405 ~ ~ ~ p=1.000 n=20
Symbols 3,692,472 3,692,472 ~ ~ ~ p=1.000 n=20
Types 1,350,576 1,350,271 -305 (- 0.02%) ~ ~ p=0.000 n=20
Memory Used 1,652,499k (± 0.07%) 1,652,102k (± 0.06%) ~ 1,648,358k 1,656,541k p=0.349 n=20
Memory Allocs 24,331,055 (± 0.06%) 24,326,938 (± 0.09%) ~ 24,278,545 24,517,018 p=0.430 n=20
Config Time 0.016s (± 0.90%) 0.016s (± 0.65%) ~ 0.015s 0.016s p=1.000 n=20
Parse Time 0.549s (± 2.18%) 0.551s (± 1.48%) ~ 0.495s 0.572s p=0.522 n=20
Bind Time 0.002s (± 9.21%) 0.002s (±17.98%) ~ 0.002s 0.006s p=0.932 n=20
Check Time 5.485s (± 0.21%) 5.491s (± 0.36%) ~ 5.439s 5.631s p=0.927 n=20
Emit Time 0.589s (± 3.92%) 0.592s (± 5.06%) ~ 0.493s 0.712s p=0.841 n=20
Total Time 7.591s (± 0.45%) 7.609s (± 0.67%) ~ 7.379s 7.854s p=0.674 n=20
sentry - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,781,856 4,781,856 ~ ~ ~ p=1.000 n=20
Types 2,590,628 2,590,628 ~ ~ ~ p=1.000 n=20
Memory Used 2,792,039k (± 0.03%) 2,791,515k (± 0.04%) ~ 2,789,314k 2,797,858k p=0.430 n=20
Memory Allocs 73,738,170 (± 0.13%) 73,809,527 (± 0.06%) ~ 73,652,758 74,015,113 p=0.076 n=20
Config Time 0.044s (± 0.81%) 0.044s (± 0.68%) ~ 0.043s 0.045s p=0.932 n=20
Parse Time 1.011s (± 2.99%) 0.975s (± 1.63%) 🟩-0.037s (- 3.64%) 0.928s 1.033s p=0.036 n=20
Bind Time 0.289s (± 9.05%) 0.296s (± 8.02%) ~ 0.241s 0.404s p=0.648 n=20
Check Time 13.154s (± 0.40%) 13.140s (± 0.43%) ~ 12.996s 13.319s p=0.674 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 14.568s (± 0.37%) 14.528s (± 0.32%) ~ 14.392s 14.704s p=0.097 n=20
social-app - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,839,004 1,839,004 ~ ~ ~ p=1.000 n=20
Types 1,147,065 1,147,065 ~ ~ ~ p=1.000 n=20
Memory Used 938,425k (± 0.01%) 938,569k (± 0.01%) ~ 937,730k 938,901k p=0.133 n=20
Memory Allocs 13,246,748 (± 0.12%) 13,250,608 (± 0.17%) ~ 13,206,896 13,421,740 p=0.869 n=20
Config Time 0.013s (± 1.65%) 0.013s (± 1.30%) ~ 0.013s 0.014s p=0.902 n=20
Parse Time 0.331s (± 1.37%) 0.332s (± 1.40%) ~ 0.313s 0.351s p=0.756 n=20
Bind Time 0.079s (± 9.28%) 0.088s (±12.94%) ~ 0.070s 0.138s p=0.112 n=20
Check Time 2.852s (± 0.38%) 2.836s (± 0.57%) ~ 2.779s 2.876s p=0.053 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.296s (± 0.24%) 3.291s (± 0.27%) ~ 3.258s 3.328s p=0.490 n=20
strada-build-src - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 1,182,507 1,182,507 ~ ~ ~ p=1.000 n=20
Types 435,504 435,504 ~ ~ ~ p=1.000 n=20
Memory Used 1,165,842k (± 0.34%) 1,166,394k (± 0.40%) ~ 1,152,446k 1,186,190k p=0.841 n=20
Memory Allocs 39,920,073 (± 0.08%) 39,951,128 (± 0.05%) ~ 39,875,459 40,016,222 p=0.165 n=20
Config Time 0.004s (± 7.96%) 0.005s (± 7.04%) ~ 0.003s 0.006s p=0.363 n=20
Parse Time 0.290s (± 1.23%) 0.287s (± 1.47%) ~ 0.274s 0.306s p=0.182 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 1.723s (± 0.44%) 1.718s (± 0.38%) ~ 1.698s 1.750s p=0.430 n=20
Emit Time 0.299s (± 1.96%) 0.296s (± 2.20%) ~ 0.281s 0.320s p=0.498 n=20
Total Time 20.552s (± 0.33%) 20.405s (± 0.27%) -0.151s (- 0.74%) 20.148s 20.614s p=0.001 n=20
strada-compiler - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 262,139 262,139 ~ ~ ~ p=1.000 n=20
Types 195,077 195,077 ~ ~ ~ p=1.000 n=20
Memory Used 221,454k (± 0.02%) 221,469k (± 0.02%) ~ 221,280k 221,593k p=0.418 n=20
Memory Allocs 1,885,338 (± 0.02%) 1,885,333 (± 0.02%) ~ 1,884,192 1,886,404 p=0.927 n=20
Config Time 0.001s 0.001s ~ ~ ~ p=1.000 n=20
Parse Time 0.104s (± 4.08%) 0.105s (± 3.97%) ~ 0.091s 0.121s p=0.651 n=20
Bind Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Check Time 0.832s (± 0.48%) 0.833s (± 0.50%) ~ 0.821s 0.852s p=0.812 n=20
Emit Time 0.091s (± 3.72%) 0.088s (± 3.88%) ~ 0.078s 0.103s p=0.246 n=20
Total Time 1.077s (± 0.52%) 1.072s (± 0.74%) ~ 1.045s 1.107s p=0.231 n=20
t3code-server - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 4,345,111 4,345,111 ~ ~ ~ p=1.000 n=20
Types 3,039,273 3,039,273 ~ ~ ~ p=1.000 n=20
Memory Used 2,393,020k (± 0.02%) 2,392,873k (± 0.02%) ~ 2,391,108k 2,395,288k p=0.701 n=20
Memory Allocs 36,906,321 (± 0.04%) 36,892,045 (± 0.04%) ~ 36,836,323 36,966,101 p=0.177 n=20
Config Time 0.006s 0.006s ~ ~ ~ p=1.000 n=20
Parse Time 0.552s (± 2.20%) 0.550s (± 2.21%) ~ 0.503s 0.590s p=0.756 n=20
Bind Time 0.151s (±10.75%) 0.154s (±11.70%) ~ 0.130s 0.242s p=0.744 n=20
Check Time 12.131s (± 0.42%) 12.083s (± 0.41%) -0.042s (- 0.34%) 11.875s 12.305s p=0.048 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 12.855s (± 0.41%) 12.809s (± 0.44%) ~ 12.589s 13.093s p=0.058 n=20
tanstack-router - native
Errors 3 3 ~ ~ ~ p=1.000 n=20
Symbols 567,390 567,390 ~ ~ ~ p=1.000 n=20
Types 395,720 395,720 ~ ~ ~ p=1.000 n=20
Memory Used 311,044k (± 0.01%) 311,088k (± 0.01%) ~ 310,956k 311,233k p=0.133 n=20
Memory Allocs 3,965,065 (± 0.03%) 3,965,819 (± 0.05%) ~ 3,961,293 3,977,925 p=0.841 n=20
Config Time 0.002s 0.002s ~ ~ ~ p=1.000 n=20
Parse Time 0.081s (± 3.49%) 0.082s (± 4.33%) ~ 0.070s 0.100s p=0.926 n=20
Bind Time 0.026s (±11.51%) 0.027s (±13.57%) ~ 0.020s 0.046s p=0.552 n=20
Check Time 1.004s (± 0.55%) 1.005s (± 0.66%) ~ 0.982s 1.035s p=0.679 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 1.117s (± 0.41%) 1.120s (± 0.60%) ~ 1.097s 1.145s p=0.869 n=20
ts-pre-modules - native
Errors 87 87 ~ ~ ~ p=1.000 n=20
Symbols 230,307 230,307 ~ ~ ~ p=1.000 n=20
Types 180,514 180,514 ~ ~ ~ p=1.000 n=20
Memory Used 190,428k (± 0.02%) 190,405k (± 0.02%) ~ 190,311k 190,566k p=0.330 n=20
Memory Allocs 1,284,333 (± 0.01%) 1,284,234 (± 0.01%) ~ 1,283,744 1,284,620 p=0.368 n=20
Config Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Parse Time 0.072s (± 3.23%) 0.073s (± 3.03%) ~ 0.066s 0.080s p=0.679 n=20
Bind Time 0.030s (± 7.73%) 0.027s (± 7.62%) ~ 0.021s 0.037s p=0.112 n=20
Check Time 0.538s (± 0.68%) 0.538s (± 0.48%) ~ 0.525s 0.547s p=0.751 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 0.651s (± 0.62%) 0.649s (± 0.49%) ~ 0.636s 0.660s p=0.756 n=20
vscode - native
Errors 0 0 ~ ~ ~ p=1.000 n=20
Symbols 8,760,752 8,760,752 ~ ~ ~ p=1.000 n=20
Types 5,071,319 5,071,319 ~ ~ ~ p=1.000 n=20
Memory Used 5,835,112k (± 0.01%) 5,836,781k (± 0.02%) ~ 5,833,695k 5,845,280k p=0.070 n=20
Memory Allocs 64,641,812 (± 0.02%) 64,640,538 (± 0.03%) ~ 64,615,350 64,737,027 p=0.349 n=20
Config Time 0.046s (± 0.53%) 0.046s (± 0.51%) +0.000s (+ 0.00%) 0.046s 0.047s p=0.037 n=20
Parse Time 1.731s (± 2.27%) 1.747s (± 1.95%) ~ 1.606s 1.851s p=0.679 n=20
Bind Time 0.567s (± 9.47%) 0.544s (± 9.46%) ~ 0.469s 0.832s p=0.430 n=20
Check Time 15.082s (± 0.63%) 15.114s (± 0.48%) ~ 14.723s 15.395s p=0.701 n=20
Emit Time 4.489s (± 7.45%) 4.126s (± 7.32%) ~ 3.668s 5.452s p=0.097 n=20
Total Time 21.990s (± 1.30%) 21.647s (± 1.25%) ~ 21.184s 22.687s p=0.064 n=20
webpack - native
Errors 654 654 ~ ~ ~ p=1.000 n=20
Symbols 933,323 933,323 ~ ~ ~ p=1.000 n=20
Types 638,430 638,430 ~ ~ ~ p=1.000 n=20
Memory Used 756,474k (± 0.01%) 756,457k (± 0.02%) ~ 756,003k 756,944k p=0.841 n=20
Memory Allocs 6,486,622 (± 0.08%) 6,489,755 (± 0.11%) ~ 6,476,262 6,534,556 p=0.452 n=20
Config Time 0.007s (± 3.07%) 0.007s (± 3.55%) ~ 0.006s 0.007s p=0.351 n=20
Parse Time 0.256s (± 2.70%) 0.250s (± 2.91%) ~ 0.224s 0.282s p=0.277 n=20
Bind Time 0.063s (±10.16%) 0.071s (±13.43%) ~ 0.054s 0.116s p=0.330 n=20
Check Time 2.961s (± 0.27%) 2.968s (± 0.21%) ~ 2.948s 2.996s p=0.202 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 3.321s (± 0.35%) 3.330s (± 0.42%) ~ 3.288s 3.393s p=0.442 n=20
xstate-main - native
Errors 1 1 ~ ~ ~ p=1.000 n=20
Symbols 4,335,650 4,335,650 ~ ~ ~ p=1.000 n=20
Types 4,459,425 4,459,408 -17 (- 0.00%) ~ ~ p=0.000 n=20
Memory Used 2,396,923k (± 0.01%) 2,398,417k (± 0.01%) +1,514k (+ 0.06%) 2,397,500k 2,398,769k p=0.000 n=20
Memory Allocs 48,050,633 (± 0.01%) 48,052,651 (± 0.01%) ~ 48,037,345 48,080,338 p=0.869 n=20
Config Time 0.005s (± 3.99%) 0.005s (± 3.52%) ~ 0.004s 0.005s p=0.193 n=20
Parse Time 0.253s (± 2.05%) 0.255s (± 2.06%) ~ 0.236s 0.276s p=0.551 n=20
Bind Time 0.073s (± 6.49%) 0.074s (± 8.98%) ~ 0.065s 0.112s p=0.856 n=20
Check Time 10.325s (± 0.41%) 10.311s (± 0.41%) ~ 10.050s 10.471s p=0.114 n=20
Emit Time 0.000s 0.000s ~ ~ ~ p=1.000 n=20
Total Time 10.666s (± 0.40%) 10.655s (± 0.39%) ~ 10.397s 10.831s p=0.182 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

Ryan Cavanaugh (@RyanCavanaugh) Here are the results of running the top 400 repos with tsc comparing baseline and pr:

Everything looks good!

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 Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checking a generic indexed access against a large union of literal aliases takes 16 s on 7.0.2 (5.9 s on 5.9.3)

2 participants