Skip to content

Conversation

@nrainhart
Copy link

Fixes #62462

A type's [Symbol.iterator]() method is "lost" when union-ing that type with another type that's reducible to never.

The reason is that getReducedType was not getting called by getIterationTypesOfIterable, so non-iterable types that are reducible to never were not being erased out.

@nrainhart
Copy link
Author

@microsoft-github-policy-service agree

@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 22, 2025

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-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/62661/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Git clone failed"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

@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 - node (v18.15.0, x64)
Errors 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,370 62,370 ~ ~ ~ p=1.000 n=6
Types 50,386 50,386 ~ ~ ~ p=1.000 n=6
Memory used 193,939k (± 0.95%) 193,275k (± 0.59%) ~ 192,696k 195,584k p=0.689 n=6
Parse Time 1.30s (± 0.49%) 1.30s (± 0.93%) ~ 1.28s 1.31s p=0.673 n=6
Bind Time 0.72s (± 0.57%) 0.72s (± 0.71%) ~ 0.72s 0.73s p=0.595 n=6
Check Time 9.76s (± 0.29%) 9.75s (± 0.29%) ~ 9.70s 9.78s p=0.806 n=6
Emit Time 2.73s (± 0.68%) 2.74s (± 1.47%) ~ 2.67s 2.79s p=0.466 n=6
Total Time 14.52s (± 0.30%) 14.51s (± 0.36%) ~ 14.44s 14.60s p=0.809 n=6
angular-1 - node (v18.15.0, x64)
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 955,117 955,117 ~ ~ ~ p=1.000 n=6
Types 415,619 415,619 ~ ~ ~ p=1.000 n=6
Memory used 1,254,609k (± 0.00%) 1,254,571k (± 0.00%) ~ 1,254,514k 1,254,623k p=0.261 n=6
Parse Time 6.52s (± 0.54%) 6.52s (± 1.07%) ~ 6.45s 6.63s p=0.629 n=6
Bind Time 1.88s (± 0.34%) 1.88s (± 0.43%) ~ 1.87s 1.89s p=0.432 n=6
Check Time 32.22s (± 0.23%) 32.21s (± 0.22%) ~ 32.08s 32.30s p=0.809 n=6
Emit Time 14.90s (± 0.25%) 14.88s (± 0.30%) ~ 14.83s 14.94s p=0.520 n=6
Total Time 55.52s (± 0.08%) 55.48s (± 0.24%) ~ 55.28s 55.63s p=0.810 n=6
mui-docs - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 552,458 552,458 ~ ~ ~ p=1.000 n=6
Types 89 89 ~ ~ ~ p=1.000 n=6
Memory used 827,398k (± 0.00%) 827,398k (± 0.00%) ~ 827,386k 827,404k p=0.687 n=6
Parse Time 8.60s (± 0.15%) 8.59s (± 0.26%) ~ 8.57s 8.62s p=0.684 n=6
Bind Time 2.19s (± 0.25%) 2.19s (± 0.58%) ~ 2.17s 2.20s p=0.663 n=6
Check Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Emit Time 0.27s (± 1.89%) 0.27s (± 3.06%) ~ 0.26s 0.28s p=0.140 n=6
Total Time 11.07s (± 0.16%) 11.06s (± 0.23%) ~ 11.02s 11.09s p=0.329 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,247 1,237,247 ~ ~ ~ p=1.000 n=6
Types 259,866 259,866 ~ ~ ~ p=1.000 n=6
Memory used 2,546,779k (±11.94%) 2,487,181k (± 7.56%) ~ 2,364,610k 2,732,121k p=0.689 n=6
Parse Time 5.17s (± 1.56%) 5.16s (± 0.76%) ~ 5.09s 5.21s p=1.000 n=6
Bind Time 1.77s (± 0.91%) 1.76s (± 0.47%) ~ 1.76s 1.78s p=0.742 n=6
Check Time 35.09s (± 0.93%) 34.92s (± 0.75%) ~ 34.60s 35.28s p=0.422 n=6
Emit Time 3.01s (± 1.78%) 3.01s (± 1.41%) ~ 2.95s 3.08s p=0.688 n=6
Total Time 45.05s (± 0.74%) 44.86s (± 0.50%) ~ 44.56s 45.12s p=0.378 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,247 1,237,247 ~ ~ ~ p=1.000 n=6
Types 259,866 259,866 ~ ~ ~ p=1.000 n=6
Memory used 3,159,395k (± 0.02%) 3,158,535k (± 0.02%) ~ 3,157,769k 3,159,362k p=0.128 n=6
Parse Time 6.88s (± 0.55%) 6.88s (± 0.76%) ~ 6.83s 6.98s p=0.872 n=6
Bind Time 2.15s (± 1.35%) 2.16s (± 1.83%) ~ 2.13s 2.22s p=0.686 n=6
Check Time 42.55s (± 0.28%) 42.54s (± 0.45%) ~ 42.29s 42.77s p=1.000 n=6
Emit Time 3.53s (± 3.04%) 3.56s (± 2.25%) ~ 3.42s 3.65s p=0.470 n=6
Total Time 55.11s (± 0.22%) 55.15s (± 0.42%) ~ 54.91s 55.42s p=0.810 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,536 262,536 ~ ~ ~ p=1.000 n=6
Types 104,041 104,041 ~ ~ ~ p=1.000 n=6
Memory used 440,665k (± 0.01%) 440,682k (± 0.00%) ~ 440,656k 440,716k p=0.936 n=6
Parse Time 3.50s (± 0.94%) 3.50s (± 1.10%) ~ 3.47s 3.57s p=1.000 n=6
Bind Time 1.33s (± 0.67%) 1.32s (± 0.92%) ~ 1.31s 1.34s p=0.057 n=6
Check Time 19.04s (± 0.45%) 19.01s (± 0.51%) ~ 18.89s 19.12s p=0.748 n=6
Emit Time 1.52s (± 0.68%) 1.53s (± 0.83%) ~ 1.51s 1.54s p=0.359 n=6
Total Time 25.39s (± 0.38%) 25.36s (± 0.42%) ~ 25.23s 25.49s p=0.575 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 72 72 ~ ~ ~ p=1.000 n=6
Symbols 225,367 225,367 ~ ~ ~ p=1.000 n=6
Types 94,290 94,290 ~ ~ ~ p=1.000 n=6
Memory used 370,065k (± 0.04%) 369,993k (± 0.02%) ~ 369,869k 370,070k p=0.471 n=6
Parse Time 2.83s (± 0.53%) 2.82s (± 1.10%) ~ 2.77s 2.86s p=1.000 n=6
Bind Time 1.60s (± 1.42%) 1.59s (± 1.30%) ~ 1.57s 1.63s p=0.806 n=6
Check Time 16.45s (± 0.43%) 16.45s (± 0.37%) ~ 16.39s 16.55s p=0.747 n=6
Emit Time 0.00s (±244.70%) 0.00s (±244.70%) ~ 0.00s 0.01s p=1.000 n=6
Total Time 20.88s (± 0.35%) 20.86s (± 0.34%) ~ 20.78s 20.95s p=1.000 n=6
vscode - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 3,966,343 3,966,343 ~ ~ ~ p=1.000 n=6
Types 1,244,764 1,244,764 ~ ~ ~ p=1.000 n=6
Memory used 3,755,067k (± 0.01%) 3,754,958k (± 0.01%) ~ 3,754,709k 3,755,258k p=0.810 n=6
Parse Time 15.38s (± 0.98%) 15.25s (± 0.94%) ~ 15.12s 15.53s p=0.109 n=6
Bind Time 5.05s (± 2.27%) 5.01s (± 0.63%) ~ 4.97s 5.06s p=0.688 n=6
Check Time 105.72s (± 3.61%) 106.48s (± 6.32%) ~ 100.17s 115.04s p=0.936 n=6
Emit Time 35.31s (±10.37%) 39.65s (±13.62%) ~ 31.35s 46.98s p=0.230 n=6
Total Time 161.47s (± 1.28%) 166.39s (± 5.15%) ~ 159.12s 179.59s p=0.936 n=6
webpack - node (v18.15.0, x64)
Errors 40 40 ~ ~ ~ p=1.000 n=6
Symbols 373,614 373,614 ~ ~ ~ p=1.000 n=6
Types 163,495 163,495 ~ ~ ~ p=1.000 n=6
Memory used 530,025k (± 0.02%) 530,034k (± 0.01%) ~ 529,975k 530,124k p=0.470 n=6
Parse Time 4.50s (± 0.98%) 4.51s (± 0.79%) ~ 4.48s 4.57s p=0.683 n=6
Bind Time 1.92s (± 1.57%) 1.93s (± 1.20%) ~ 1.89s 1.96s p=0.256 n=6
Check Time 22.03s (± 0.24%) 22.11s (± 0.40%) ~ 22.02s 22.27s p=0.106 n=6
Emit Time 0.00s (±154.76%) 0.00s ~ ~ ~ p=0.174 n=6
Total Time 28.45s (± 0.25%) 28.55s (± 0.45%) ~ 28.45s 28.80s p=0.147 n=6
xstate-main - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 676,516 676,516 ~ ~ ~ p=1.000 n=6
Types 203,680 203,680 ~ ~ ~ p=1.000 n=6
Memory used 578,416k (± 0.03%) 578,440k (± 0.03%) ~ 578,195k 578,730k p=1.000 n=6
Parse Time 4.20s (± 0.39%) 4.17s (± 0.56%) -0.03s (- 0.67%) 4.14s 4.20s p=0.046 n=6
Bind Time 1.36s (± 1.20%) 1.35s (± 1.60%) ~ 1.32s 1.38s p=0.418 n=6
Check Time 20.54s (± 1.68%) 20.58s (± 1.75%) ~ 20.29s 21.06s p=0.471 n=6
Emit Time 0.00s (±244.70%) 0.00s (±244.70%) ~ 0.00s 0.01s p=1.000 n=6
Total Time 26.10s (± 1.35%) 26.11s (± 1.48%) ~ 25.79s 26.61s p=1.000 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/62661/merge:

Everything looks good!

@RyanCavanaugh
Copy link
Member

@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 22, 2025

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

Command Status Results
pack this ✅ Started ✅ Results

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 22, 2025

Hey @RyanCavanaugh, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/166352/artifacts?artifactName=tgz&fileId=4467F597BAF6A42523EF954AA24F887067CCF4FAC4160952BFCAD0D31CEFC2A302&fileName=/typescript-6.0.0-insiders.20251022.tgz"
    }
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/pr-build@6.0.0-pr-62661-9".;

@RyanCavanaugh
Copy link
Member

This seems right. I can't construct anything that didn't error before but does now due to a circularity


let allIterationTypes: IterationTypes[] | undefined;
for (const constituent of (type as UnionType).types) {
if (!!(getReducedType(constituent).flags & TypeFlags.Never)) {
Copy link
Contributor

@Andarist Andarist Oct 22, 2025

Choose a reason for hiding this comment

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

q: what if all union members reduce to never? wouldn't this break a case like this?

declare const o2: ({ a: "foo" } & { a: "bar" }) | ({ b: "qwe" } & { b: "rty" });
const [el2] = o2; // error

Copy link
Author

Choose a reason for hiding this comment

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

You're right, in that case TS allows the destructuring and types el2 as never.

I went with an alternative solution: reduce the whole iterable-like type instead of the union members: 93fb716 (#62661).

Added this case to the test as well

@@ -0,0 +1,30 @@
// @strict: true
// @noEmit: true
// @target: es5,esnext
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the es5 target should produce similar errors but right now it doesnt produce any

@jakebailey
Copy link
Member

@typescript-bot test it
@typescript-bot pack this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 24, 2025

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

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

@typescript-bot
Copy link
Collaborator

typescript-bot commented Oct 24, 2025

Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your package.json like so:

{
    "devDependencies": {
        "typescript": "https://typescript.visualstudio.com/cf7ac146-d525-443c-b23c-0d58337efebc/_apis/build/builds/166368/artifacts?artifactName=tgz&fileId=F90EC6886CB9060BB61CE905106796344DDAB41EF14C325F83B18EBA13BE17BE02&fileName=/typescript-6.0.0-insiders.20251024.tgz"
    }
}

and then running npm install.


There is also a playground for this build and an npm module you can use via "typescript": "npm:@typescript-deploys/pr-build@6.0.0-pr-62661-13".;

@typescript-bot
Copy link
Collaborator

Hey @jakebailey, the results of running the DT tests are ready.

Everything looks the same!

You can check the log here.

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the user tests with tsc comparing main and refs/pull/62661/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Git clone failed"

Otherwise...

Everything looks good!

@typescript-bot
Copy link
Collaborator

@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 - node (v18.15.0, x64)
Errors 34 34 ~ ~ ~ p=1.000 n=6
Symbols 62,370 62,370 ~ ~ ~ p=1.000 n=6
Types 50,386 50,386 ~ ~ ~ p=1.000 n=6
Memory used 194,592k (± 1.04%) 195,258k (± 0.92%) ~ 192,741k 196,547k p=0.689 n=6
Parse Time 1.30s (± 0.40%) 1.30s (± 0.69%) ~ 1.29s 1.31s p=0.541 n=6
Bind Time 0.72s 0.72s (± 0.57%) ~ 0.72s 0.73s p=0.405 n=6
Check Time 9.74s (± 0.17%) 9.76s (± 0.35%) ~ 9.73s 9.81s p=0.460 n=6
Emit Time 2.75s (± 0.44%) 2.75s (± 0.74%) ~ 2.72s 2.78s p=1.000 n=6
Total Time 14.52s (± 0.17%) 14.53s (± 0.22%) ~ 14.50s 14.57s p=0.292 n=6
angular-1 - node (v18.15.0, x64)
Errors 2 2 ~ ~ ~ p=1.000 n=6
Symbols 955,117 955,117 ~ ~ ~ p=1.000 n=6
Types 415,619 415,619 ~ ~ ~ p=1.000 n=6
Memory used 1,254,556k (± 0.00%) 1,254,565k (± 0.00%) ~ 1,254,488k 1,254,657k p=0.936 n=6
Parse Time 6.53s (± 0.77%) 6.55s (± 0.63%) ~ 6.48s 6.58s p=0.334 n=6
Bind Time 1.88s (± 0.40%) 1.88s (± 0.34%) ~ 1.87s 1.89s p=0.718 n=6
Check Time 32.17s (± 0.44%) 32.14s (± 0.35%) ~ 32.02s 32.30s p=0.575 n=6
Emit Time 14.86s (± 0.56%) 14.89s (± 0.26%) ~ 14.87s 14.97s p=0.332 n=6
Total Time 55.43s (± 0.27%) 55.47s (± 0.28%) ~ 55.31s 55.69s p=0.810 n=6
mui-docs - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 552,486 552,486 ~ ~ ~ p=1.000 n=6
Types 89 89 ~ ~ ~ p=1.000 n=6
Memory used 827,427k (± 0.00%) 827,433k (± 0.00%) ~ 827,428k 827,442k p=0.332 n=6
Parse Time 8.61s (± 0.14%) 8.62s (± 0.15%) ~ 8.61s 8.64s p=0.139 n=6
Bind Time 2.19s (± 0.29%) 2.19s (± 0.62%) ~ 2.17s 2.21s p=0.438 n=6
Check Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Emit Time 0.27s (± 3.31%) 0.27s (± 2.06%) ~ 0.26s 0.27s p=0.341 n=6
Total Time 11.07s (± 0.08%) 11.08s (± 0.08%) +0.01s (+ 0.14%) 11.07s 11.09s p=0.021 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,242 1,237,243 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 259,863 259,863 ~ ~ ~ p=1.000 n=6
Memory used 2,546,952k (±11.93%) 2,425,251k (± 6.12%) ~ 2,364,175k 2,728,549k p=0.093 n=6
Parse Time 5.17s (± 1.42%) 5.16s (± 1.08%) ~ 5.11s 5.25s p=0.936 n=6
Bind Time 1.77s (± 0.99%) 1.78s (± 0.94%) ~ 1.76s 1.80s p=0.254 n=6
Check Time 35.18s (± 0.77%) 35.09s (± 0.64%) ~ 34.68s 35.32s p=0.378 n=6
Emit Time 3.02s (± 1.16%) 2.98s (± 0.55%) ~ 2.96s 3.01s p=0.065 n=6
Total Time 45.14s (± 0.61%) 45.02s (± 0.39%) ~ 44.70s 45.19s p=0.471 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,237,242 1,237,243 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 259,863 259,863 ~ ~ ~ p=1.000 n=6
Memory used 3,159,285k (± 0.01%) 3,037,475k (± 9.72%) 🟩-121,810k (- 3.86%) 2,434,235k 3,158,528k p=0.005 n=6
Parse Time 8.49s (± 0.97%) 8.45s (± 1.22%) ~ 8.26s 8.56s p=0.807 n=6
Bind Time 2.64s (± 0.89%) 2.65s (± 0.94%) ~ 2.62s 2.68s p=0.630 n=6
Check Time 52.67s (± 0.39%) 52.64s (± 0.79%) ~ 51.81s 52.94s p=0.873 n=6
Emit Time 4.30s (± 1.77%) 4.42s (± 1.96%) ~ 4.27s 4.51s p=0.066 n=6
Total Time 68.10s (± 0.39%) 68.18s (± 0.86%) ~ 67.01s 68.61s p=0.230 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 262,531 262,532 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 104,038 104,038 ~ ~ ~ p=1.000 n=6
Memory used 440,669k (± 0.02%) 440,686k (± 0.02%) ~ 440,553k 440,805k p=0.810 n=6
Parse Time 3.50s (± 1.11%) 3.51s (± 1.00%) ~ 3.47s 3.57s p=0.629 n=6
Bind Time 1.32s (± 1.04%) 1.32s (± 1.01%) ~ 1.30s 1.34s p=0.801 n=6
Check Time 18.94s (± 0.51%) 18.90s (± 0.42%) ~ 18.77s 19.00s p=0.575 n=6
Emit Time 1.52s (± 0.49%) 1.52s (± 0.80%) ~ 1.50s 1.53s p=0.503 n=6
Total Time 25.28s (± 0.50%) 25.24s (± 0.35%) ~ 25.08s 25.34s p=1.000 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 72 72 ~ ~ ~ p=1.000 n=6
Symbols 225,374 225,374 ~ ~ ~ p=1.000 n=6
Types 94,297 94,297 ~ ~ ~ p=1.000 n=6
Memory used 370,043k (± 0.02%) 370,004k (± 0.02%) ~ 369,897k 370,126k p=0.471 n=6
Parse Time 2.81s (± 1.31%) 2.82s (± 1.50%) ~ 2.77s 2.90s p=0.418 n=6
Bind Time 1.63s (± 1.15%) 1.60s (± 0.83%) -0.03s (- 1.64%) 1.59s 1.62s p=0.026 n=6
Check Time 16.44s (± 0.34%) 16.51s (± 0.41%) ~ 16.45s 16.62s p=0.092 n=6
Emit Time 0.00s 0.00s (±244.70%) ~ 0.00s 0.01s p=0.405 n=6
Total Time 20.87s (± 0.37%) 20.94s (± 0.24%) ~ 20.88s 20.99s p=0.127 n=6
vscode - node (v18.15.0, x64)
Errors 5 5 ~ ~ ~ p=1.000 n=6
Symbols 3,974,366 3,974,366 ~ ~ ~ p=1.000 n=6
Types 1,247,316 1,247,316 ~ ~ ~ p=1.000 n=6
Memory used 3,760,607k (± 0.01%) 3,760,685k (± 0.00%) ~ 3,760,451k 3,760,946k p=0.471 n=6
Parse Time 15.22s (± 0.53%) 15.25s (± 0.61%) ~ 15.15s 15.41s p=0.686 n=6
Bind Time 4.96s (± 0.42%) 4.97s (± 0.97%) ~ 4.94s 5.07s p=0.745 n=6
Check Time 102.22s (± 3.35%) 104.51s (± 3.61%) ~ 100.08s 109.25s p=0.336 n=6
Emit Time 37.97s (±13.14%) 37.43s (±18.06%) ~ 30.83s 49.31s p=0.689 n=6
Total Time 160.38s (± 3.02%) 162.16s (± 4.53%) ~ 157.44s 176.86s p=0.471 n=6
webpack - node (v18.15.0, x64)
Errors 40 40 ~ ~ ~ p=1.000 n=6
Symbols 373,563 373,563 ~ ~ ~ p=1.000 n=6
Types 163,454 163,454 ~ ~ ~ p=1.000 n=6
Memory used 530,008k (± 0.01%) 530,034k (± 0.01%) ~ 529,960k 530,133k p=0.470 n=6
Parse Time 4.53s (± 0.94%) 4.54s (± 0.79%) ~ 4.50s 4.60s p=0.746 n=6
Bind Time 1.95s (± 2.95%) 1.93s (± 1.04%) ~ 1.91s 1.96s p=0.571 n=6
Check Time 22.09s (± 0.29%) 22.15s (± 0.34%) ~ 22.05s 22.24s p=0.172 n=6
Emit Time 0.00s (±244.70%) 0.00s ~ ~ ~ p=0.405 n=6
Total Time 28.57s (± 0.35%) 28.62s (± 0.34%) ~ 28.48s 28.75s p=0.378 n=6
xstate-main - node (v18.15.0, x64)
Errors 30 30 ~ ~ ~ p=1.000 n=6
Symbols 676,516 676,516 ~ ~ ~ p=1.000 n=6
Types 203,680 203,680 ~ ~ ~ p=1.000 n=6
Memory used 578,405k (± 0.03%) 578,440k (± 0.02%) ~ 578,267k 578,535k p=0.575 n=6
Parse Time 4.16s (± 0.42%) 4.19s (± 0.47%) +0.03s (+ 0.72%) 4.17s 4.22s p=0.042 n=6
Bind Time 1.35s (± 0.90%) 1.36s (± 1.02%) ~ 1.34s 1.37s p=0.323 n=6
Check Time 20.74s (± 2.04%) 20.61s (± 1.99%) ~ 20.30s 21.15s p=0.688 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 26.25s (± 1.65%) 26.16s (± 1.54%) ~ 25.85s 26.69s p=0.688 n=6
System info unknown
Hosts
  • node (v18.15.0, x64)
Scenarios
  • Compiler-Unions - node (v18.15.0, x64)
  • angular-1 - node (v18.15.0, x64)
  • mui-docs - node (v18.15.0, x64)
  • self-build-src - node (v18.15.0, x64)
  • self-build-src-public-api - node (v18.15.0, x64)
  • self-compiler - node (v18.15.0, x64)
  • ts-pre-modules - node (v18.15.0, x64)
  • vscode - node (v18.15.0, x64)
  • webpack - node (v18.15.0, x64)
  • xstate-main - node (v18.15.0, x64)
Benchmark Name Iterations
Current pr 6
Baseline baseline 6

Developer Information:

Download Benchmarks

@typescript-bot
Copy link
Collaborator

@jakebailey Here are the results of running the top 400 repos with tsc comparing main and refs/pull/62661/merge:

Everything looks good!

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

Labels

None yet

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

T[] | { t: 'a' } & { t: 'b' } is not iterable (TS2488)

5 participants