Skip to content

Conversation

@gabritto
Copy link
Member

Fixes #54590.

isRightSideOfQualifiedNameOrPropertyAccess is called by getTypeOfSymbolAtLocation to decide if we should consider the location's parent instead, so that if we have a property access/qualified name, e.g. x.y, we look up the whole expression, and not just y. Because import.meta was not considered one of those cases, when getTypeOfSymbolAtLocation was called by completions, we'd end up trying to resolve the name meta, which doesn't resolve to anything, leading to the error.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels Jul 12, 2023
@gabritto
Copy link
Member Author

@typescript-bot test this
@typescript-bot run DT
@typescript-bot user test tsserver
@typescript-bot test top100
@typescript-bot test tsserver top100
@typescript-bot perf test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the perf test suite on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the extended test suite on this PR at 1e2c9ae. You can monitor the build here.

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the diff-based top-repos suite (tsserver) on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the diff-based user code test suite (tsserver) on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the parallelized Definitely Typed test suite on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 12, 2023

Heya @gabritto, I've started to run the diff-based top-repos suite on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

>foo : () => void
>new.targe : () => void
>targe : any
>targe : () => void
Copy link
Member

Choose a reason for hiding this comment

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

Weird, how is this changing? This doesn't seem to be using meta at all.

Copy link
Member Author

Choose a reason for hiding this comment

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

new.something is also a MetaProperty node, I'm guessing this is to also support new.target.

Copy link
Member

Choose a reason for hiding this comment

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

Do I even want to know why targe works without the t? 😅

Copy link
Member

Choose a reason for hiding this comment

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

Probably fall-out logic where any meta-property that's not import.meta is assumed to be new.target.

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the user test suite comparing main and refs/pull/54997/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

@gabritto
The results of the perf run you requested are in!

Here they are:

Compiler

Comparison Report - main..54997
Metric main 54997 Delta Best Worst p-value
Angular - node (v18.10.0, x64)
Memory used 366,849k (± 0.01%) 366,847k (± 0.01%) ~ 366,800k 366,871k p=0.936 n=6
Parse Time 3.40s (± 0.69%) 3.39s (± 0.63%) ~ 3.37s 3.43s p=0.224 n=6
Bind Time 1.12s (± 0.67%) 1.12s (± 0.36%) ~ 1.12s 1.13s p=0.389 n=6
Check Time 8.87s (± 0.43%) 8.88s (± 0.48%) ~ 8.83s 8.93s p=1.000 n=6
Emit Time 7.52s (± 1.00%) 7.53s (± 0.64%) ~ 7.46s 7.59s p=0.748 n=6
Total Time 20.92s (± 0.48%) 20.92s (± 0.34%) ~ 20.79s 20.99s p=0.574 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used 192,100k (± 1.19%) 193,970k (± 1.59%) ~ 191,119k 196,838k p=0.521 n=6
Parse Time 1.52s (± 0.65%) 1.52s (± 0.83%) ~ 1.50s 1.53s p=0.799 n=6
Bind Time 0.78s (± 0.97%) 0.78s (± 0.71%) ~ 0.77s 0.78s p=0.476 n=6
Check Time 9.55s (± 0.39%) 9.52s (± 0.72%) ~ 9.45s 9.62s p=0.421 n=6
Emit Time 2.76s (± 0.32%) 2.74s (± 0.55%) ~ 2.72s 2.76s p=0.054 n=6
Total Time 14.61s (± 0.36%) 14.56s (± 0.55%) ~ 14.49s 14.67s p=0.297 n=6
Monaco - node (v18.10.0, x64)
Memory used 346,877k (± 0.01%) 346,857k (± 0.01%) ~ 346,810k 346,883k p=0.520 n=6
Parse Time 2.64s (± 1.14%) 2.63s (± 1.42%) ~ 2.59s 2.68s p=0.571 n=6
Bind Time 1.01s (± 1.03%) 1.02s (± 0.51%) ~ 1.01s 1.02s p=0.794 n=6
Check Time 7.31s (± 0.67%) 7.30s (± 0.49%) ~ 7.24s 7.34s p=0.686 n=6
Emit Time 4.27s (± 1.04%) 4.24s (± 0.89%) ~ 4.20s 4.31s p=0.226 n=6
Total Time 15.22s (± 0.69%) 15.17s (± 0.51%) ~ 15.09s 15.30s p=0.332 n=6
TFS - node (v18.10.0, x64)
Memory used 300,903k (± 0.01%) 300,903k (± 0.01%) ~ 300,882k 300,925k p=0.810 n=6
Parse Time 2.10s (± 1.17%) 2.10s (± 0.97%) ~ 2.07s 2.12s p=0.935 n=6
Bind Time 1.12s (± 0.88%) 1.13s (± 0.79%) ~ 1.12s 1.14s p=0.208 n=6
Check Time 6.63s (± 0.48%) 6.64s (± 0.42%) ~ 6.61s 6.68s p=0.744 n=6
Emit Time 3.87s (± 0.55%) 3.87s (± 0.22%) ~ 3.85s 3.87s p=0.806 n=6
Total Time 13.72s (± 0.45%) 13.73s (± 0.17%) ~ 13.70s 13.76s p=0.629 n=6
material-ui - node (v18.10.0, x64)
Memory used 482,382k (± 0.01%) 482,390k (± 0.01%) ~ 482,342k 482,518k p=0.689 n=6
Parse Time 3.10s (± 2.36%) 3.10s (± 2.18%) ~ 2.97s 3.15s p=0.625 n=6
Bind Time 0.93s (± 5.61%) 0.95s (± 4.41%) ~ 0.92s 1.03s p=0.084 n=6
Check Time 17.34s (± 0.81%) 17.38s (± 0.39%) ~ 17.31s 17.49s p=0.297 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.37s (± 0.63%) 21.43s (± 0.39%) ~ 21.32s 21.56s p=0.173 n=6
xstate - node (v18.10.0, x64)
Memory used 563,658k (± 0.03%) 563,689k (± 0.02%) ~ 563,549k 563,833k p=0.575 n=6
Parse Time 3.84s (± 0.74%) 3.86s (± 0.64%) ~ 3.82s 3.89s p=0.259 n=6
Bind Time 1.65s (± 0.73%) 1.66s (± 0.92%) ~ 1.64s 1.68s p=0.517 n=6
Check Time 2.81s (± 1.13%) 2.82s (± 1.38%) ~ 2.75s 2.86s p=0.469 n=6
Emit Time 0.08s (± 0.00%) 0.08s (± 0.00%) ~ 0.08s 0.08s p=1.000 n=6
Total Time 8.38s (± 0.57%) 8.42s (± 0.76%) ~ 8.31s 8.49s p=0.173 n=6
Angular - node (v16.17.1, x64)
Memory used 366,269k (± 0.01%) 366,246k (± 0.01%) ~ 366,214k 366,299k p=0.230 n=6
Parse Time 3.56s (± 0.73%) 3.59s (± 0.56%) ~ 3.56s 3.62s p=0.075 n=6
Bind Time 1.19s (± 0.69%) 1.19s (± 0.53%) ~ 1.18s 1.20s p=0.432 n=6
Check Time 9.66s (± 0.37%) 9.73s (± 0.09%) +0.06s (+ 0.64%) 9.71s 9.73s p=0.006 n=6
Emit Time 7.99s (± 0.50%) 8.02s (± 0.71%) ~ 7.94s 8.09s p=0.170 n=6
Total Time 22.40s (± 0.34%) 22.53s (± 0.30%) +0.13s (+ 0.58%) 22.43s 22.61s p=0.020 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 192,928k (± 0.01%) 192,898k (± 0.03%) ~ 192,803k 192,952k p=0.471 n=6
Parse Time 1.60s (± 0.73%) 1.59s (± 1.38%) ~ 1.55s 1.61s p=0.505 n=6
Bind Time 0.83s (± 0.76%) 0.83s (± 0.62%) ~ 0.83s 0.84s p=0.386 n=6
Check Time 10.16s (± 0.21%) 10.18s (± 0.32%) ~ 10.14s 10.22s p=0.571 n=6
Emit Time 3.02s (± 0.93%) 3.02s (± 1.16%) ~ 2.96s 3.05s p=0.936 n=6
Total Time 15.61s (± 0.26%) 15.61s (± 0.30%) ~ 15.55s 15.68s p=1.000 n=6
Monaco - node (v16.17.1, x64)
Memory used 346,179k (± 0.01%) 346,188k (± 0.01%) ~ 346,170k 346,244k p=0.936 n=6
Parse Time 2.77s (± 0.63%) 2.78s (± 0.59%) ~ 2.75s 2.80s p=0.368 n=6
Bind Time 1.07s (± 0.48%) 1.07s (± 0.38%) ~ 1.07s 1.08s p=0.595 n=6
Check Time 7.99s (± 0.42%) 7.99s (± 0.18%) ~ 7.97s 8.01s p=0.936 n=6
Emit Time 4.44s (± 0.61%) 4.46s (± 0.61%) ~ 4.43s 4.50s p=0.293 n=6
Total Time 16.27s (± 0.42%) 16.30s (± 0.23%) ~ 16.28s 16.38s p=0.293 n=6
TFS - node (v16.17.1, x64)
Memory used 300,247k (± 0.00%) 300,240k (± 0.01%) ~ 300,193k 300,271k p=0.810 n=6
Parse Time 2.20s (± 0.73%) 2.21s (± 0.53%) ~ 2.20s 2.23s p=0.190 n=6
Bind Time 1.22s (± 1.24%) 1.21s (± 1.32%) ~ 1.19s 1.23s p=0.621 n=6
Check Time 7.31s (± 0.44%) 7.33s (± 0.32%) ~ 7.30s 7.37s p=0.416 n=6
Emit Time 4.35s (± 0.79%) 4.35s (± 0.87%) ~ 4.29s 4.40s p=1.000 n=6
Total Time 15.08s (± 0.28%) 15.09s (± 0.29%) ~ 15.04s 15.13s p=0.401 n=6
material-ui - node (v16.17.1, x64)
Memory used 481,721k (± 0.01%) 481,681k (± 0.01%) ~ 481,631k 481,748k p=0.230 n=6
Parse Time 3.26s (± 0.60%) 3.27s (± 0.65%) ~ 3.25s 3.31s p=0.413 n=6
Bind Time 0.96s (± 0.78%) 0.96s (± 0.78%) ~ 0.95s 0.97s p=1.000 n=6
Check Time 18.37s (± 0.84%) 18.33s (± 0.47%) ~ 18.24s 18.47s p=0.630 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 22.58s (± 0.74%) 22.55s (± 0.45%) ~ 22.47s 22.74s p=0.575 n=6
xstate - node (v16.17.1, x64)
Memory used 561,296k (± 0.01%) 561,177k (± 0.02%) -118k (- 0.02%) 561,114k 561,368k p=0.045 n=6
Parse Time 4.01s (± 0.30%) 4.03s (± 0.45%) ~ 4.02s 4.06s p=0.104 n=6
Bind Time 1.80s (± 0.45%) 1.72s (± 5.41%) ~ 1.59s 1.80s p=0.119 n=6
Check Time 3.06s (± 0.41%) 3.13s (± 3.37%) ~ 3.05s 3.28s p=0.683 n=6
Emit Time 0.10s (± 5.34%) 0.09s (± 0.00%) 🟩-0.01s (- 6.90%) 0.09s 0.09s p=0.025 n=6
Total Time 8.96s (± 0.23%) 8.96s (± 0.47%) ~ 8.90s 9.03s p=0.569 n=6
Angular - node (v14.21.3, x64)
Memory used 360,175k (± 0.01%) 360,198k (± 0.02%) ~ 360,116k 360,316k p=0.575 n=6
Parse Time 3.74s (± 0.46%) 3.74s (± 0.65%) ~ 3.71s 3.77s p=0.686 n=6
Bind Time 1.22s (± 0.42%) 1.23s (± 0.45%) ~ 1.22s 1.23s p=0.640 n=6
Check Time 10.10s (± 0.41%) 10.15s (± 0.34%) ~ 10.11s 10.20s p=0.090 n=6
Emit Time 8.37s (± 0.66%) 8.36s (± 0.58%) ~ 8.31s 8.42s p=0.747 n=6
Total Time 23.43s (± 0.41%) 23.47s (± 0.25%) ~ 23.39s 23.55s p=0.332 n=6
Compiler-Unions - node (v14.21.3, x64)
Memory used 188,174k (± 0.01%) 188,173k (± 0.02%) ~ 188,112k 188,232k p=1.000 n=6
Parse Time 1.62s (± 0.72%) 1.62s (± 0.93%) ~ 1.60s 1.64s p=1.000 n=6
Bind Time 0.84s (± 0.61%) 0.85s (± 0.61%) ~ 0.84s 0.85s p=0.311 n=6
Check Time 10.26s (± 0.52%) 10.30s (± 0.45%) ~ 10.24s 10.35s p=0.170 n=6
Emit Time 3.13s (± 1.38%) 3.15s (± 0.62%) ~ 3.12s 3.18s p=0.147 n=6
Total Time 15.85s (± 0.36%) 15.91s (± 0.27%) ~ 15.85s 15.95s p=0.090 n=6
Monaco - node (v14.21.3, x64)
Memory used 341,183k (± 0.01%) 341,179k (± 0.01%) ~ 341,142k 341,211k p=1.000 n=6
Parse Time 2.81s (± 0.37%) 2.82s (± 0.85%) ~ 2.80s 2.86s p=0.805 n=6
Bind Time 1.09s (± 0.75%) 1.11s (± 0.95%) ~ 1.09s 1.12s p=0.058 n=6
Check Time 8.29s (± 0.41%) 8.29s (± 0.42%) ~ 8.25s 8.33s p=1.000 n=6
Emit Time 4.68s (± 0.50%) 4.67s (± 0.53%) ~ 4.64s 4.70s p=0.466 n=6
Total Time 16.88s (± 0.26%) 16.89s (± 0.18%) ~ 16.87s 16.95s p=0.627 n=6
TFS - node (v14.21.3, x64)
Memory used 295,334k (± 0.00%) 295,325k (± 0.00%) ~ 295,314k 295,340k p=0.378 n=6
Parse Time 2.43s (± 0.89%) 2.44s (± 0.69%) ~ 2.42s 2.46s p=0.684 n=6
Bind Time 1.08s (± 0.83%) 1.08s (± 0.70%) ~ 1.07s 1.09s p=0.798 n=6
Check Time 7.61s (± 0.45%) 7.65s (± 0.88%) ~ 7.57s 7.76s p=0.375 n=6
Emit Time 4.31s (± 1.20%) 4.30s (± 0.70%) ~ 4.27s 4.36s p=0.744 n=6
Total Time 15.44s (± 0.37%) 15.48s (± 0.54%) ~ 15.39s 15.59s p=0.470 n=6
material-ui - node (v14.21.3, x64)
Memory used 477,171k (± 0.00%) 477,176k (± 0.00%) ~ 477,157k 477,210k p=1.000 n=6
Parse Time 3.31s (± 0.32%) 3.31s (± 0.56%) ~ 3.29s 3.34s p=1.000 n=6
Bind Time 0.99s (± 0.41%) 0.99s (± 0.84%) ~ 0.98s 1.00s p=0.097 n=6
Check Time 19.18s (± 0.46%) 19.15s (± 0.32%) ~ 19.07s 19.23s p=0.470 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 23.48s (± 0.38%) 23.46s (± 0.27%) ~ 23.38s 23.55s p=0.872 n=6
xstate - node (v14.21.3, x64)
Memory used 550,149k (± 0.00%) 550,157k (± 0.00%) ~ 550,139k 550,174k p=0.471 n=6
Parse Time 4.23s (± 0.29%) 4.25s (± 0.46%) ~ 4.23s 4.28s p=0.119 n=6
Bind Time 1.68s (± 0.38%) 1.69s (± 0.61%) +0.01s (+ 0.79%) 1.68s 1.71s p=0.028 n=6
Check Time 3.13s (± 0.42%) 3.13s (± 0.17%) ~ 3.13s 3.14s p=0.663 n=6
Emit Time 0.09s (± 0.00%) 0.09s (± 0.00%) ~ 0.09s 0.09s p=1.000 n=6
Total Time 9.13s (± 0.21%) 9.17s (± 0.31%) ~ 9.13s 9.21s p=0.052 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.21.3, x64)
Scenarios
  • Angular - node (v18.10.0, x64)
  • Angular - node (v16.17.1, x64)
  • Angular - node (v14.21.3, x64)
  • Compiler-Unions - node (v18.10.0, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Compiler-Unions - node (v14.21.3, x64)
  • Monaco - node (v18.10.0, x64)
  • Monaco - node (v16.17.1, x64)
  • Monaco - node (v14.21.3, x64)
  • TFS - node (v18.10.0, x64)
  • TFS - node (v16.17.1, x64)
  • TFS - node (v14.21.3, x64)
  • material-ui - node (v18.10.0, x64)
  • material-ui - node (v16.17.1, x64)
  • material-ui - node (v14.21.3, x64)
  • xstate - node (v18.10.0, x64)
  • xstate - node (v16.17.1, x64)
  • xstate - node (v14.21.3, x64)
Benchmark Name Iterations
Current 54997 6
Baseline main 6

TSServer

Comparison Report - main..54997
Metric main 54997 Delta Best Worst p-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,561ms (± 0.47%) 2,571ms (± 0.41%) ~ 2,555ms 2,585ms p=0.128 n=6
Req 2 - geterr 5,379ms (± 0.67%) 5,392ms (± 0.40%) ~ 5,369ms 5,431ms p=0.810 n=6
Req 3 - references 346ms (± 0.86%) 346ms (± 1.12%) ~ 341ms 350ms p=1.000 n=6
Req 4 - navto 289ms (± 0.47%) 290ms (± 0.29%) ~ 289ms 291ms p=0.170 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 75ms (± 0.54%) 75ms (± 1.08%) ~ 75ms 77ms p=0.218 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,636ms (± 0.39%) 2,640ms (± 0.41%) ~ 2,631ms 2,660ms p=0.571 n=6
Req 2 - geterr 4,101ms (± 0.23%) 4,108ms (± 0.47%) ~ 4,094ms 4,134ms p=0.810 n=6
Req 3 - references 350ms (± 0.95%) 351ms (± 0.61%) ~ 349ms 354ms p=0.369 n=6
Req 4 - navto 289ms (± 0.28%) 289ms (± 1.22%) ~ 286ms 296ms p=0.740 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 80ms (± 3.11%) 81ms (± 2.44%) ~ 78ms 83ms p=0.519 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 3,084ms (± 0.25%) 3,096ms (± 0.60%) ~ 3,080ms 3,129ms p=0.149 n=6
Req 2 - geterr 1,601ms (± 0.73%) 1,595ms (± 0.64%) ~ 1,575ms 1,604ms p=0.630 n=6
Req 3 - references 113ms (± 1.44%) 114ms (± 1.47%) ~ 112ms 116ms p=0.615 n=6
Req 4 - navto 369ms (± 0.44%) 371ms (± 0.83%) ~ 369ms 377ms p=0.289 n=6
Req 5 - completionInfo count 2,872 (± 0.00%) 2,872 (± 0.00%) ~ 2,872 2,872 p=1.000 n=6
Req 5 - completionInfo 377ms (± 2.35%) 381ms (± 1.48%) ~ 372ms 388ms p=0.374 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,641ms (± 0.34%) 2,643ms (± 0.86%) ~ 2,614ms 2,676ms p=0.873 n=6
Req 2 - geterr 6,014ms (± 0.49%) 6,025ms (± 0.47%) ~ 5,976ms 6,055ms p=0.296 n=6
Req 3 - references 356ms (± 1.15%) 353ms (± 1.25%) ~ 348ms 359ms p=0.376 n=6
Req 4 - navto 288ms (± 0.67%) 286ms (± 1.00%) ~ 283ms 289ms p=0.287 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 80ms (± 0.51%) 88ms (± 8.96%) +8ms (+ 9.81%) 80ms 102ms p=0.010 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,825ms (± 0.85%) 2,817ms (± 0.85%) ~ 2,796ms 2,857ms p=0.630 n=6
Req 2 - geterr 4,663ms (± 0.55%) 4,668ms (± 0.56%) ~ 4,632ms 4,703ms p=0.873 n=6
Req 3 - references 363ms (± 0.32%) 364ms (± 0.33%) ~ 362ms 365ms p=0.618 n=6
Req 4 - navto 279ms (± 0.90%) 284ms (± 0.66%) +4ms (+ 1.55%) 280ms 285ms p=0.017 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 76ms (± 0.99%) 76ms (± 1.18%) ~ 75ms 77ms p=0.798 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 3,233ms (± 0.56%) 3,246ms (± 0.39%) ~ 3,224ms 3,262ms p=0.172 n=6
Req 2 - geterr 1,748ms (± 1.43%) 1,741ms (± 0.97%) ~ 1,718ms 1,759ms p=0.521 n=6
Req 3 - references 123ms (± 1.34%) 126ms (± 7.21%) ~ 120ms 144ms p=0.868 n=6
Req 4 - navto 353ms (± 1.10%) 355ms (± 0.49%) ~ 352ms 357ms p=0.125 n=6
Req 5 - completionInfo count 2,872 (± 0.00%) 2,872 (± 0.00%) ~ 2,872 2,872 p=1.000 n=6
Req 5 - completionInfo 415ms (± 1.76%) 415ms (± 0.74%) ~ 410ms 418ms p=0.747 n=6
Compiler-UnionsTSServer - node (v14.21.3, x64)
Req 1 - updateOpen 2,787ms (± 0.25%) 2,807ms (± 0.50%) +20ms (+ 0.72%) 2,787ms 2,825ms p=0.030 n=6
Req 2 - geterr 6,165ms (± 0.75%) 6,204ms (± 0.29%) ~ 6,182ms 6,230ms p=0.149 n=6
Req 3 - references 362ms (± 1.60%) 364ms (± 1.19%) ~ 361ms 372ms p=0.288 n=6
Req 4 - navto 290ms (± 0.18%) 294ms (± 1.24%) +4ms (+ 1.32%) 290ms 300ms p=0.024 n=6
Req 5 - completionInfo count 1,356 (± 0.00%) 1,356 (± 0.00%) ~ 1,356 1,356 p=1.000 n=6
Req 5 - completionInfo 112ms (± 0.80%) 110ms (± 3.76%) ~ 102ms 113ms p=0.363 n=6
CompilerTSServer - node (v14.21.3, x64)
Req 1 - updateOpen 2,957ms (± 0.49%) 2,964ms (± 0.46%) ~ 2,954ms 2,990ms p=0.575 n=6
Req 2 - geterr 4,566ms (± 0.24%) 4,550ms (± 0.20%) -16ms (- 0.34%) 4,534ms 4,560ms p=0.037 n=6
Req 3 - references 378ms (± 0.40%) 377ms (± 0.34%) ~ 375ms 378ms p=0.681 n=6
Req 4 - navto 298ms (± 0.62%) 299ms (± 0.33%) ~ 298ms 300ms p=0.865 n=6
Req 5 - completionInfo count 1,518 (± 0.00%) 1,518 (± 0.00%) ~ 1,518 1,518 p=1.000 n=6
Req 5 - completionInfo 83ms (± 1.92%) 84ms (± 0.62%) ~ 83ms 84ms p=0.923 n=6
xstateTSServer - node (v14.21.3, x64)
Req 1 - updateOpen 3,483ms (± 0.27%) 3,498ms (± 0.58%) ~ 3,469ms 3,521ms p=0.261 n=6
Req 2 - geterr 1,836ms (± 0.73%) 1,840ms (± 0.91%) ~ 1,820ms 1,858ms p=1.000 n=6
Req 3 - references 152ms (± 6.30%) 152ms (± 7.47%) ~ 137ms 161ms p=0.808 n=6
Req 4 - navto 386ms (± 0.27%) 389ms (± 1.65%) ~ 385ms 402ms p=0.652 n=6
Req 5 - completionInfo count 2,872 (± 0.00%) 2,872 (± 0.00%) ~ 2,872 2,872 p=1.000 n=6
Req 5 - completionInfo 440ms (± 0.74%) 442ms (± 0.47%) ~ 440ms 445ms p=0.169 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v18.10.0, x64)
  • node (v16.17.1, x64)
  • node (v14.21.3, x64)
Scenarios
  • Compiler-UnionsTSServer - node (v18.10.0, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v14.21.3, x64)
  • CompilerTSServer - node (v18.10.0, x64)
  • CompilerTSServer - node (v16.17.1, x64)
  • CompilerTSServer - node (v14.21.3, x64)
  • xstateTSServer - node (v18.10.0, x64)
  • xstateTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v14.21.3, x64)
Benchmark Name Iterations
Current 54997 6
Baseline main 6

Startup

Comparison Report - main..54997
Metric main 54997 Delta Best Worst p-value
tsc-startup - node (v16.17.1, x64)
Execution time 142.58ms (± 0.17%) 142.86ms (± 0.17%) +0.28ms (+ 0.19%) 142.20ms 145.29ms p=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time 223.55ms (± 0.45%) 222.59ms (± 0.17%) -0.96ms (- 0.43%) 221.68ms 228.22ms p=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time 223.81ms (± 0.23%) 223.96ms (± 0.17%) +0.15ms (+ 0.07%) 223.07ms 229.97ms p=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time 206.42ms (± 0.33%) 205.93ms (± 0.15%) -0.49ms (- 0.24%) 205.01ms 209.03ms p=0.000 n=600
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-148-generic
Architecturex64
Available Memory16 GB
Available Memory15 GB
CPUs4 × Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Hosts
  • node (v16.17.1, x64)
Scenarios
  • tsc-startup - node (v16.17.1, x64)
  • tsserver-startup - node (v16.17.1, x64)
  • tsserverlibrary-startup - node (v16.17.1, x64)
  • typescript-startup - node (v16.17.1, x64)
Benchmark Name Iterations
Current 54997 6
Baseline main 6

Developer Information:

Download Benchmark

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the top-repos suite comparing main and refs/pull/54997/merge:

Everything looks good!

@typescript-bot
Copy link
Collaborator

Hey @gabritto, it looks like the DT test run failed. Please check the log for more details.
You can check the log here.

@typescript-bot
Copy link
Collaborator

@gabritto Here are the results of running the top-repos suite comparing main and refs/pull/54997/merge:

Everything looks good!

>foo : () => void
>new.targe : () => void
>targe : any
>targe : () => void
Copy link
Member

Choose a reason for hiding this comment

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

Do I even want to know why targe works without the t? 😅

@gabritto
Copy link
Member Author

@typescript-bot run DT

@typescript-bot
Copy link
Collaborator

typescript-bot commented Jul 13, 2023

Heya @gabritto, I've started to run the parallelized Definitely Typed test suite on this PR at 1e2c9ae. You can monitor the build here.

Update: The results are in!

@typescript-bot
Copy link
Collaborator

Hey @gabritto, the results of running the DT tests are ready.
Everything looks the same!
You can check the log here.

@gabritto gabritto merged commit 3b6e35c into main Jul 13, 2023
@gabritto gabritto deleted the gabritto/issue54590 branch July 13, 2023 20:12
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Completions request can trigger incorrect subsequent type-checking errors

6 participants