Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pad object literal types with implicit anys based on binding pattern elements #59924

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Andarist
Copy link
Contributor

fixes #59920 (a regression)

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Sep 10, 2024
@jakebailey
Copy link
Member

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 10, 2024

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

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

src/compiler/checker.ts Outdated Show resolved Hide resolved
@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 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 193,667k (± 0.91%) 193,662k (± 0.91%) ~ 192,404k 195,934k p=0.873 n=6
Parse Time 1.31s (± 0.31%) 1.31s (± 0.84%) ~ 1.29s 1.32s p=0.445 n=6
Bind Time 0.71s 0.71s ~ ~ ~ p=1.000 n=6
Check Time 9.59s (± 0.47%) 9.57s (± 0.34%) ~ 9.53s 9.62s p=0.628 n=6
Emit Time 2.72s (± 0.28%) 2.71s (± 1.82%) ~ 2.61s 2.75s p=0.867 n=6
Total Time 14.33s (± 0.35%) 14.30s (± 0.41%) ~ 14.20s 14.37s p=0.335 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 945,753 945,753 ~ ~ ~ p=1.000 n=6
Types 410,067 410,067 ~ ~ ~ p=1.000 n=6
Memory used 1,222,723k (± 0.00%) 1,222,737k (± 0.00%) ~ 1,222,703k 1,222,773k p=0.423 n=6
Parse Time 6.65s (± 0.47%) 6.62s (± 0.34%) -0.04s (- 0.53%) 6.59s 6.64s p=0.042 n=6
Bind Time 1.85s (± 0.74%) 1.86s (± 0.34%) ~ 1.85s 1.87s p=0.388 n=6
Check Time 31.15s (± 0.33%) 31.09s (± 0.44%) ~ 30.84s 31.23s p=0.630 n=6
Emit Time 15.03s (± 0.44%) 15.04s (± 0.43%) ~ 14.96s 15.14s p=0.688 n=6
Total Time 54.68s (± 0.16%) 54.62s (± 0.28%) ~ 54.39s 54.82s p=0.521 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,515,538 2,515,538 ~ ~ ~ p=1.000 n=6
Types 933,020 933,020 ~ ~ ~ p=1.000 n=6
Memory used 2,350,322k (± 0.00%) 2,350,340k (± 0.00%) ~ 2,350,232k 2,350,477k p=0.936 n=6
Parse Time 9.41s (± 0.24%) 9.41s (± 0.16%) ~ 9.39s 9.43s p=1.000 n=6
Bind Time 2.18s (± 0.45%) 2.17s (± 0.50%) ~ 2.16s 2.18s p=0.246 n=6
Check Time 73.19s (± 0.39%) 72.80s (± 0.63%) ~ 72.11s 73.29s p=0.128 n=6
Emit Time 0.28s (± 1.99%) 0.28s (± 1.47%) ~ 0.27s 0.28s p=0.282 n=6
Total Time 85.06s (± 0.32%) 84.67s (± 0.54%) ~ 83.99s 85.14s p=0.128 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,250,213 1,250,213 ~ ~ ~ p=1.000 n=6
Types 265,146 265,146 ~ ~ ~ p=1.000 n=6
Memory used 2,403,570k (± 0.04%) 2,403,348k (± 0.03%) ~ 2,402,425k 2,404,759k p=0.689 n=6
Parse Time 5.08s (± 0.64%) 5.10s (± 1.01%) ~ 5.06s 5.18s p=0.810 n=6
Bind Time 1.91s (± 0.86%) 1.91s (± 0.61%) ~ 1.89s 1.92s p=0.868 n=6
Check Time 34.91s (± 0.34%) 34.84s (± 0.16%) ~ 34.74s 34.89s p=0.575 n=6
Emit Time 3.36s (± 4.32%) 3.30s (± 1.16%) ~ 3.25s 3.36s p=0.471 n=6
Total Time 45.26s (± 0.50%) 45.15s (± 0.16%) ~ 45.07s 45.28s 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,250,213 1,250,213 ~ ~ ~ p=1.000 n=6
Types 265,146 265,146 ~ ~ ~ p=1.000 n=6
Memory used 2,477,132k (± 0.04%) 2,477,505k (± 0.06%) ~ 2,475,876k 2,479,267k p=0.810 n=6
Parse Time 6.33s (± 1.03%) 6.34s (± 0.48%) ~ 6.30s 6.38s p=0.748 n=6
Bind Time 2.05s (± 0.67%) 2.03s (± 0.85%) ~ 2.01s 2.06s p=0.142 n=6
Check Time 41.41s (± 0.64%) 41.25s (± 0.24%) ~ 41.11s 41.38s p=0.230 n=6
Emit Time 4.08s (± 3.95%) 4.04s (± 3.62%) ~ 3.89s 4.25s p=0.689 n=6
Total Time 53.89s (± 0.66%) 53.69s (± 0.43%) ~ 53.43s 54.02s p=0.298 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 259,449 259,449 ~ ~ ~ p=1.000 n=6
Types 105,986 105,986 ~ ~ ~ p=1.000 n=6
Memory used 433,803k (± 0.01%) 433,865k (± 0.04%) ~ 433,647k 434,160k p=0.575 n=6
Parse Time 3.44s (± 0.75%) 3.45s (± 0.54%) ~ 3.41s 3.46s p=0.511 n=6
Bind Time 1.28s (± 0.40%) 1.28s (± 0.32%) ~ 1.27s 1.28s p=0.595 n=6
Check Time 18.12s (± 0.11%) 18.09s (± 0.43%) ~ 17.95s 18.17s p=0.627 n=6
Emit Time 1.66s (± 1.04%) 1.64s (± 1.18%) ~ 1.62s 1.67s p=0.090 n=6
Total Time 24.48s (± 0.14%) 24.46s (± 0.35%) ~ 24.29s 24.53s p=0.809 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,018 225,018 ~ ~ ~ p=1.000 n=6
Types 94,249 94,249 ~ ~ ~ p=1.000 n=6
Memory used 370,280k (± 0.03%) 370,232k (± 0.02%) ~ 370,181k 370,341k p=0.689 n=6
Parse Time 2.76s (± 0.75%) 2.77s (± 0.53%) ~ 2.75s 2.79s p=0.803 n=6
Bind Time 1.58s (± 0.78%) 1.57s (± 0.67%) ~ 1.55s 1.58s p=0.183 n=6
Check Time 15.75s (± 0.29%) 15.73s (± 0.28%) ~ 15.69s 15.80s p=0.808 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.08s (± 0.26%) 20.07s (± 0.20%) ~ 20.01s 20.13s p=0.687 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,044,200 3,044,200 ~ ~ ~ p=1.000 n=6
Types 1,052,654 1,052,654 ~ ~ ~ p=1.000 n=6
Memory used 3,152,336k (± 0.00%) 3,152,342k (± 0.00%) ~ 3,152,287k 3,152,421k p=1.000 n=6
Parse Time 13.80s (± 0.25%) 13.84s (± 0.53%) ~ 13.75s 13.96s p=0.258 n=6
Bind Time 4.36s (± 0.19%) 4.35s (± 0.43%) ~ 4.32s 4.37s p=1.000 n=6
Check Time 81.35s (± 0.37%) 81.31s (± 0.45%) ~ 80.85s 81.84s p=0.630 n=6
Emit Time 22.07s (± 0.21%) 22.11s (± 0.27%) ~ 22.02s 22.19s p=0.226 n=6
Total Time 121.57s (± 0.24%) 121.62s (± 0.32%) ~ 121.06s 122.12s p=0.689 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 277,022 277,022 ~ ~ ~ p=1.000 n=6
Types 112,817 112,817 ~ ~ ~ p=1.000 n=6
Memory used 426,785k (± 0.03%) 426,786k (± 0.02%) ~ 426,650k 426,846k p=0.936 n=6
Parse Time 4.89s (± 0.59%) 4.90s (± 0.30%) ~ 4.88s 4.92s p=0.629 n=6
Bind Time 2.15s (± 1.43%) 2.13s (± 1.20%) ~ 2.10s 2.16s p=0.373 n=6
Check Time 21.77s (± 0.44%) 21.72s (± 0.38%) ~ 21.58s 21.81s p=0.521 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 28.81s (± 0.26%) 28.76s (± 0.28%) ~ 28.61s 28.85s p=0.199 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 539,317 539,317 ~ ~ ~ p=1.000 n=6
Types 178,997 178,997 ~ ~ ~ p=1.000 n=6
Memory used 484,165k (± 0.02%) 484,033k (± 0.02%) ~ 483,915k 484,183k p=0.128 n=6
Parse Time 4.25s (± 0.24%) 4.26s (± 0.50%) ~ 4.22s 4.28s p=0.359 n=6
Bind Time 1.55s (± 0.63%) 1.55s (± 0.33%) ~ 1.54s 1.55s p=0.348 n=6
Check Time 22.62s (± 0.38%) 22.57s (± 0.31%) ~ 22.46s 22.65s p=0.423 n=6
Emit Time 0.00s (±244.70%) 0.00s ~ ~ ~ p=0.405 n=6
Total Time 28.43s (± 0.24%) 28.37s (± 0.27%) ~ 28.23s 28.43s p=0.517 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

@Andarist
Copy link
Contributor Author

Andarist commented Sep 12, 2024

@jakebailey, I have made local WIP improvements for nested patterns. However, there are some pre-existing inconsistencies between array and binding patterns. It would be great if we could establish the desired behavior as that heavily impacts how I should implement this. Let's take a look at this (TS 5.5 playground):

function testObj({ a, b, c = 1 } = { a: 2 }) {} // implicit any on `b`, ok

testObj({ a: 3 }); // error, missing `b`

function testArr([a, b, c = 1] = [2]) {} // implicit any on `b`, ok

testArr([3]); // no error

As we can see above, the optionality is different for those members with inferred implicit anys

It might be easier to make those properties optional if we don't want to revert parts of #59183 . the parts mentioned there as "strictly not necessary for the fix"

@@ -6010,7 +6010,6 @@ export interface SymbolLinks {
exportsChecked?: boolean; // True if exports of external module have been checked
typeParametersChecked?: boolean; // True if type parameters of merged class and interface declarations have been checked.
isDeclarationWithCollidingName?: boolean; // True if symbol is block scoped redeclaration
bindingElement?: BindingElement; // Binding element associated with property symbol
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This one has been introduced in #4598 but its usage was removed in #59183

@typescript-bot
Copy link
Collaborator

Looks like you're introducing a change to the public API surface area. If this includes breaking changes, please document them on our wiki's API Breaking Changes page.

Also, please make sure @DanielRosenwasser and @RyanCavanaugh are aware of the changes, just as a heads up.

@@ -8750,7 +8750,6 @@ declare namespace ts {
function isJSDocCommentContainingNode(node: Node): boolean;
function isSetAccessor(node: Node): node is SetAccessorDeclaration;
function isGetAccessor(node: Node): node is GetAccessorDeclaration;
/** True if has initializer node attached to it. */
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this one was copied over from an internal function declared above it, I don't think this comment is true as it made much more sense for the other function

@Andarist
Copy link
Contributor Author

I pushed out changes to make those members with inferred implicit anys optional. Today they must be optional because the initializer's type is no longer "padded" (since #59183 ).

Given this example:

// @strict: true
function test({ a } = {}) {}

We get {} as the initializer's type and the initializer's type is checked if it's assignable to the parameter type. So if we infer { a: any } we get 2 errors:

  • an implicit any is reported on the a binding element
  • we get an error that {} is missing a required a property

This doesn't feel right. So I've decided to make those implicit anys optional. This allows the non-padded initializer's type to stay assignable to the padded parameter type.

Based on my previous comment I concluded that array and binding patterns were inconsistent and that it would be nice ot unify their behaviors. However, in the process of working on this, I discovered #4598 and the description of this PR indicates that they were not even meant to behave identically. This was in 2015 though, perhaps some adjustments could be made today.

Either way, to fix the reported problem we can:

  • make those implicit anys optional
  • pad the initializer type based on the padded parameter type (I dont like this at all ;p)
  • bring back padding in checkObjectLiteral so the initializer's type would have those properties. This would essentially revert a part of Fix circularity errors in intra-binding-pattern references #59183 . Note that in this situation... the initializer's type here would be { a: any } (and it was that in 5.5!), despite not having the a property
  • adjust how the initializer is checked against the padded parameter type. I'm not sure how exactly this would work since it's just using a regular assignability check today, so this would have to be a more involved change.

@jakebailey
Copy link
Member

PR was changed, so rerun

@typescript-bot test it

@typescript-bot
Copy link
Collaborator

typescript-bot commented Sep 16, 2024

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

@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 30 30 ~ ~ ~ p=1.000 n=6
Symbols 62,153 62,153 ~ ~ ~ p=1.000 n=6
Types 50,242 50,242 ~ ~ ~ p=1.000 n=6
Memory used 194,197k (± 1.03%) 194,815k (± 0.96%) ~ 192,401k 196,092k p=0.575 n=6
Parse Time 1.58s (± 1.23%) 1.57s (± 1.11%) ~ 1.54s 1.59s p=0.511 n=6
Bind Time 0.85s (± 0.64%) 0.85s (± 0.98%) ~ 0.85s 0.87s p=0.855 n=6
Check Time 11.35s (± 0.45%) 11.38s (± 0.19%) ~ 11.35s 11.41s p=0.335 n=6
Emit Time 3.24s (± 0.45%) 3.24s (± 0.72%) ~ 3.21s 3.27s p=0.570 n=6
Total Time 17.03s (± 0.35%) 17.05s (± 0.13%) ~ 17.03s 17.08s p=0.467 n=6
angular-1 - node (v18.15.0, x64)
Errors 7 7 ~ ~ ~ p=1.000 n=6
Symbols 945,753 945,753 ~ ~ ~ p=1.000 n=6
Types 410,067 410,067 ~ ~ ~ p=1.000 n=6
Memory used 1,222,769k (± 0.00%) 1,222,730k (± 0.00%) -39k (- 0.00%) 1,222,688k 1,222,759k p=0.020 n=6
Parse Time 6.61s (± 0.41%) 6.67s (± 0.13%) +0.06s (+ 0.86%) 6.66s 6.68s p=0.005 n=6
Bind Time 1.87s (± 0.29%) 1.86s (± 0.22%) ~ 1.86s 1.87s p=0.282 n=6
Check Time 31.23s (± 0.37%) 31.19s (± 0.64%) ~ 30.87s 31.46s p=0.873 n=6
Emit Time 15.05s (± 0.82%) 15.05s (± 0.46%) ~ 14.95s 15.12s p=0.873 n=6
Total Time 54.75s (± 0.38%) 54.77s (± 0.43%) ~ 54.35s 54.97s p=0.688 n=6
mui-docs - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 2,520,527 2,520,527 ~ ~ ~ p=1.000 n=6
Types 935,974 935,976 +2 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,350,364k (± 0.00%) 2,350,385k (± 0.00%) ~ 2,350,318k 2,350,415k p=0.521 n=6
Parse Time 9.29s (± 0.32%) 9.30s (± 0.16%) ~ 9.27s 9.31s p=0.806 n=6
Bind Time 2.14s (± 0.66%) 2.14s (± 0.35%) ~ 2.13s 2.15s p=0.867 n=6
Check Time 73.11s (± 0.49%) 73.04s (± 0.53%) ~ 72.55s 73.57s p=0.689 n=6
Emit Time 0.28s (± 1.45%) 0.27s (± 3.62%) ~ 0.26s 0.28s p=0.056 n=6
Total Time 84.82s (± 0.46%) 84.75s (± 0.44%) ~ 84.30s 85.28s p=0.936 n=6
self-build-src - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,245,952 1,245,953 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 264,213 264,218 +5 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,398,214k (± 0.04%) 2,398,089k (± 0.04%) ~ 2,397,095k 2,399,638k p=0.936 n=6
Parse Time 7.63s (± 0.53%) 7.65s (± 0.59%) ~ 7.59s 7.72s p=0.688 n=6
Bind Time 2.80s (± 0.58%) 2.81s (± 0.65%) ~ 2.79s 2.83s p=0.226 n=6
Check Time 51.07s (± 0.61%) 51.12s (± 0.84%) ~ 50.34s 51.61s p=0.575 n=6
Emit Time 4.53s (± 4.29%) 4.45s (± 3.01%) ~ 4.32s 4.70s p=0.575 n=6
Total Time 66.05s (± 0.36%) 66.04s (± 0.44%) ~ 65.49s 66.34s p=0.298 n=6
self-build-src-public-api - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 1,245,952 1,245,953 +1 (+ 0.00%) ~ ~ p=0.001 n=6
Types 264,213 264,218 +5 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 2,471,963k (± 0.02%) 2,472,767k (± 0.02%) ~ 2,472,185k 2,473,503k p=0.066 n=6
Parse Time 5.26s (± 1.05%) 5.27s (± 0.68%) ~ 5.21s 5.31s p=0.748 n=6
Bind Time 1.71s (± 0.71%) 1.71s (± 0.52%) ~ 1.70s 1.72s p=0.676 n=6
Check Time 35.24s (± 0.74%) 35.13s (± 0.15%) ~ 35.08s 35.23s p=0.575 n=6
Emit Time 3.12s (± 3.12%) 3.07s (± 5.48%) ~ 2.95s 3.40s p=0.230 n=6
Total Time 45.36s (± 0.57%) 45.19s (± 0.39%) ~ 45.04s 45.51s p=0.230 n=6
self-compiler - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 259,885 259,897 +12 (+ 0.00%) ~ ~ p=0.001 n=6
Types 106,140 106,145 +5 (+ 0.00%) ~ ~ p=0.001 n=6
Memory used 435,592k (± 0.02%) 435,656k (± 0.02%) ~ 435,564k 435,750k p=0.173 n=6
Parse Time 4.26s (± 0.46%) 4.25s (± 0.68%) ~ 4.20s 4.28s p=0.466 n=6
Bind Time 1.60s (± 1.63%) 1.60s (± 0.51%) ~ 1.59s 1.61s p=0.739 n=6
Check Time 22.42s (± 0.45%) 22.47s (± 0.34%) ~ 22.36s 22.58s p=0.296 n=6
Emit Time 1.87s (± 1.30%) 1.85s (± 0.63%) ~ 1.83s 1.86s p=0.250 n=6
Total Time 30.14s (± 0.42%) 30.17s (± 0.30%) ~ 30.04s 30.28s p=0.688 n=6
ts-pre-modules - node (v18.15.0, x64)
Errors 68 68 ~ ~ ~ p=1.000 n=6
Symbols 225,018 225,018 ~ ~ ~ p=1.000 n=6
Types 94,249 94,249 ~ ~ ~ p=1.000 n=6
Memory used 370,264k (± 0.02%) 370,307k (± 0.02%) ~ 370,210k 370,442k p=0.689 n=6
Parse Time 2.76s (± 0.96%) 2.76s (± 0.77%) ~ 2.72s 2.78s p=1.000 n=6
Bind Time 1.57s (± 1.63%) 1.57s (± 0.66%) ~ 1.56s 1.59s p=1.000 n=6
Check Time 15.78s (± 0.44%) 15.73s (± 0.35%) ~ 15.64s 15.80s p=0.469 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 20.11s (± 0.42%) 20.07s (± 0.36%) ~ 19.94s 20.15s p=0.688 n=6
vscode - node (v18.15.0, x64)
Errors 1 1 ~ ~ ~ p=1.000 n=6
Symbols 3,067,616 3,067,616 ~ ~ ~ p=1.000 n=6
Types 1,059,253 1,059,253 ~ ~ ~ p=1.000 n=6
Memory used 3,173,088k (± 0.00%) 3,173,062k (± 0.00%) ~ 3,173,001k 3,173,111k p=0.378 n=6
Parse Time 11.65s (± 0.26%) 11.66s (± 0.30%) ~ 11.61s 11.72s p=0.412 n=6
Bind Time 3.65s (± 0.29%) 3.64s (± 0.14%) ~ 3.64s 3.65s p=0.794 n=6
Check Time 70.56s (± 0.34%) 70.62s (± 0.30%) ~ 70.42s 70.90s p=0.810 n=6
Emit Time 18.81s (± 0.41%) 18.75s (± 0.46%) ~ 18.63s 18.89s p=0.298 n=6
Total Time 104.65s (± 0.19%) 104.67s (± 0.13%) ~ 104.46s 104.83s p=1.000 n=6
webpack - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 277,156 277,156 ~ ~ ~ p=1.000 n=6
Types 112,946 112,946 ~ ~ ~ p=1.000 n=6
Memory used 426,866k (± 0.01%) 426,875k (± 0.01%) ~ 426,827k 426,925k p=0.575 n=6
Parse Time 3.94s (± 0.30%) 3.95s (± 0.41%) ~ 3.94s 3.98s p=0.157 n=6
Bind Time 1.72s (± 0.70%) 1.71s (± 0.71%) ~ 1.70s 1.73s p=0.680 n=6
Check Time 17.58s (± 0.16%) 17.59s (± 0.37%) ~ 17.50s 17.68s p=0.688 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 23.23s (± 0.10%) 23.26s (± 0.30%) ~ 23.15s 23.32s p=0.369 n=6
xstate-main - node (v18.15.0, x64)
Errors 0 0 ~ ~ ~ p=1.000 n=6
Symbols 531,582 531,582 ~ ~ ~ p=1.000 n=6
Types 181,676 181,676 ~ ~ ~ p=1.000 n=6
Memory used 463,680k (± 0.01%) 463,729k (± 0.02%) ~ 463,639k 463,898k p=0.297 n=6
Parse Time 3.13s (± 0.49%) 3.10s (± 0.81%) ~ 3.08s 3.14s p=0.089 n=6
Bind Time 1.11s (± 0.46%) 1.11s (± 0.37%) ~ 1.11s 1.12s p=0.595 n=6
Check Time 18.24s (± 0.38%) 18.17s (± 0.23%) ~ 18.10s 18.21s p=0.053 n=6
Emit Time 0.00s 0.00s ~ ~ ~ p=1.000 n=6
Total Time 22.49s (± 0.32%) 22.39s (± 0.21%) -0.10s (- 0.43%) 22.34s 22.46s p=0.024 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

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/59924/merge:

Something interesting changed - please have a look.

Details

effect

tsconfig.json

tsconfig.build.json

tsconfig.base.json

@typescript-bot
Copy link
Collaborator

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

Something interesting changed - please have a look.

Details

apollographql/apollo-client

2 of 12 projects failed to build with the old tsc and were ignored

tsconfig.json

honojs/hono

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

tsconfig.json

jhipster/generator-jhipster

tsconfig.spec.json

@Andarist
Copy link
Contributor Author

I believe the latest commit in my other PR addresses the issues above. So that other one would have to land before this one here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
Status: Not started
Development

Successfully merging this pull request may close these issues.

function object parameter destructure field without default value will be ignored
3 participants