Skip to content

Reset type resolution stack when starting to compute variance - #53549

Merged
Gabriela Araujo Britto (gabritto) merged 1 commit into
mainfrom
gabritto/issue53470
Apr 11, 2023
Merged

Reset type resolution stack when starting to compute variance#53549
Gabriela Araujo Britto (gabritto) merged 1 commit into
mainfrom
gabritto/issue53470

Conversation

@gabritto

@gabrittoGabriela Araujo Britto (gabritto) commented Mar 27, 2023

Copy link
Copy Markdown
Member

Fixes#53470

@gabritto

Copy link
Copy Markdown
MemberAuthor

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the parallelized Definitely Typed test suite on this PR at 3a2bbb3. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

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

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based user code test suite on this PR at 3a2bbb3. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the diff-based top-repos suite on this PR at 3a2bbb3. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the perf test suite on this PR at 3a2bbb3. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

Heya Gabriela Araujo Britto (@gabritto), I've started to run the extended test suite on this PR at 3a2bbb3. You can monitor the build here.

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 27, 2023

Copy link
Copy Markdown
Contributor

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

Update: The results are in!

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the user test suite comparing main and refs/pull/53549/merge:

Something interesting changed - please have a look.

Details

webpack

tsconfig.types.json

  • [MISSING] error TS7023: '_get' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the user test suite comparing main and refs/pull/53549/merge:

Everything looks good!

@typescript-bot

Copy link
Copy Markdown
Contributor

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

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the top-repos suite comparing main and refs/pull/53549/merge:

Everything looks good!

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto) Here are the results of running the top-repos suite comparing main and refs/pull/53549/merge:

Something interesting changed - please have a look.

Details

vercel/hyper

⚠️ Note that built had errors ⚠️
Timed out after 600000 ms

🎉 New server no longer has errors 🎉

@jakebailey

Copy link
Copy Markdown
Member

Huh, does the previous comment imply that 5.0 is hanging in this repo?

@jakebailey

Copy link
Copy Markdown
Member

TypeScript Bot (@typescript-bot) pack this

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

Heya Jake Bailey (@jakebailey), I've started to run the tarball bundle task on this PR at 3a2bbb3. You can monitor the build here.

@typescript-bot

TypeScript Bot (typescript-bot) commented Mar 28, 2023

Copy link
Copy Markdown
Contributor

Hey Jake Bailey (@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/151176/artifacts?artifactName=tgz&fileId=8D2E46C8B9243D607A68134078111BDC43ED99DC561A23F409F340BCA9DE1C6002&fileName=/typescript-5.1.0-insiders.20230328.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@5.1.0-pr-53549-16".;

@jakebailey

Jake Bailey (jakebailey) commented Mar 28, 2023

Copy link
Copy Markdown
Member

So, testing, this seems to almost fix #52892. Compare:

Some of the errors go away, which is good, but uncommenting that static block still seems to change the result. Not sure why exactly, but it at least an improvement.

@typescript-bot

Copy link
Copy Markdown
Contributor

Gabriela Araujo Britto (@gabritto)
The results of the perf run you requested are in!

Here they are:

Compiler

Comparison Report - main..53549
Metricmain53549DeltaBestWorstp-value
Angular - node (v18.10.0, x64)
Memory used362,331k (± 0.01%)362,329k (± 0.01%)~362,301k362,369kp=0.873 n=6
Parse Time3.36s (± 0.42%)3.38s (± 0.58%)+0.02s (+ 0.74%)3.36s3.42sp=0.033 n=6
Bind Time1.12s (± 0.94%)1.12s (± 0.00%)~1.12s1.12sp=0.293 n=6
Check Time8.69s (± 0.48%)8.69s (± 0.45%)~8.65s8.75sp=0.809 n=6
Emit Time7.52s (± 0.96%)7.50s (± 1.14%)~7.43s7.61sp=0.630 n=6
Total Time20.69s (± 0.55%)20.70s (± 0.58%)~20.60s20.91sp=0.936 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used191,703k (± 1.20%)192,680k (± 1.50%)~190,762k196,494kp=0.149 n=6
Parse Time1.49s (± 1.68%)1.50s (± 0.70%)~1.48s1.51sp=0.805 n=6
Bind Time0.77s (± 0.67%)0.77s (± 0.53%)~0.76s0.77sp=0.114 n=6
Check Time9.58s (± 0.48%)9.65s (± 0.54%)~9.58s9.72sp=0.054 n=6
Emit Time2.73s (± 1.00%)2.74s (± 0.44%)~2.72s2.75sp=1.000 n=6
Total Time14.58s (± 0.29%)14.65s (± 0.42%)~14.57s14.73sp=0.066 n=6
Monaco - node (v18.10.0, x64)
Memory used346,421k (± 0.01%)346,452k (± 0.01%)~346,415k346,475kp=0.093 n=6
Parse Time2.57s (± 1.20%)2.59s (± 1.21%)~2.56s2.63sp=0.468 n=6
Bind Time1.01s (± 0.97%)1.01s (± 0.81%)~1.00s1.02sp=0.862 n=6
Check Time7.15s (± 0.46%)7.13s (± 0.48%)~7.08s7.17sp=0.288 n=6
Emit Time4.26s (± 1.19%)4.25s (± 0.73%)~4.21s4.29sp=0.630 n=6
Total Time14.99s (± 0.65%)14.98s (± 0.47%)~14.89s15.09sp=0.936 n=6
TFS - node (v18.10.0, x64)
Memory used300,677k (± 0.01%)300,663k (± 0.01%)~300,633k300,686kp=0.423 n=6
Parse Time2.06s (± 0.80%)2.07s (± 0.71%)~2.05s2.09sp=0.188 n=6
Bind Time1.14s (± 0.72%)1.14s (± 0.72%)~1.13s1.15sp=0.787 n=6
Check Time6.53s (± 0.45%)6.55s (± 0.28%)~6.52s6.57sp=0.418 n=6
Emit Time3.85s (± 0.91%)3.85s (± 0.95%)~3.80s3.91sp=0.935 n=6
Total Time13.57s (± 0.39%)13.61s (± 0.34%)~13.53s13.66sp=0.258 n=6
material-ui - node (v18.10.0, x64)
Memory used477,185k (± 0.01%)477,180k (± 0.00%)~477,150k477,199kp=0.378 n=6
Parse Time3.03s (± 2.23%)2.98s (± 2.38%)~2.92s3.10sp=0.376 n=6
Bind Time0.93s (± 6.84%)1.01s (± 7.20%)~0.92s1.08sp=0.052 n=6
Check Time17.14s (± 0.43%)17.28s (± 1.14%)~17.09s17.63sp=0.198 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time21.09s (± 0.35%)21.27s (± 1.05%)~21.03s21.64sp=0.128 n=6
xstate - node (v18.10.0, x64)
Memory used552,950k (± 0.01%)553,027k (± 0.02%)~552,802k553,139kp=0.230 n=6
Parse Time3.75s (± 0.73%)3.79s (± 0.49%)~3.76s3.81sp=0.062 n=6
Bind Time1.66s (± 0.54%)1.67s (± 0.50%)~1.65s1.67sp=0.339 n=6
Check Time2.83s (± 0.41%)2.86s (± 0.85%)~2.83s2.89sp=0.062 n=6
Emit Time0.08s (± 0.00%)0.08s (± 0.00%)~0.08s0.08sp=1.000 n=6
Total Time8.34s (± 0.32%)8.39s (± 0.37%)+0.05s (+ 0.64%)8.35s8.44sp=0.019 n=6
Angular - node (v16.17.1, x64)
Memory used361,718k (± 0.01%)361,677k (± 0.01%)-41k (- 0.01%)361,640k361,723kp=0.045 n=6
Parse Time3.53s (± 0.81%)3.52s (± 0.64%)~3.50s3.56sp=0.678 n=6
Bind Time1.18s (± 0.99%)1.19s (± 0.69%)~1.18s1.20sp=0.401 n=6
Check Time9.51s (± 0.22%)9.50s (± 0.42%)~9.46s9.55sp=0.517 n=6
Emit Time7.96s (± 0.76%)7.97s (± 0.50%)~7.90s8.01sp=0.686 n=6
Total Time22.18s (± 0.37%)22.18s (± 0.29%)~22.10s22.28sp=1.000 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used193,581k (± 0.88%)193,639k (± 0.86%)~192,493k195,885kp=0.471 n=6
Parse Time1.58s (± 1.09%)1.60s (± 0.47%)~1.59s1.61sp=0.062 n=6
Bind Time0.82s (± 0.50%)0.82s (± 0.66%)~0.82s0.83sp=0.282 n=6
Check Time10.30s (± 0.43%)10.37s (± 0.74%)~10.22s10.43sp=0.066 n=6
Emit Time2.99s (± 0.61%)2.98s (± 0.54%)~2.97s3.01sp=0.215 n=6
Total Time15.70s (± 0.35%)15.77s (± 0.35%)+0.07s (+ 0.44%)15.66s15.81sp=0.045 n=6
Monaco - node (v16.17.1, x64)
Memory used345,729k (± 0.01%)345,776k (± 0.01%)+47k (+ 0.01%)345,741k345,794kp=0.008 n=6
Parse Time2.72s (± 0.43%)2.72s (± 0.50%)~2.69s2.73sp=0.864 n=6
Bind Time1.08s (± 0.95%)1.09s (± 0.37%)~1.08s1.09sp=0.257 n=6
Check Time7.80s (± 0.44%)7.84s (± 0.26%)+0.04s (+ 0.53%)7.81s7.87sp=0.030 n=6
Emit Time4.45s (± 0.39%)4.48s (± 0.94%)~4.42s4.54sp=0.226 n=6
Total Time16.06s (± 0.32%)16.13s (± 0.27%)+0.07s (+ 0.42%)16.05s16.17sp=0.037 n=6
TFS - node (v16.17.1, x64)
Memory used300,020k (± 0.01%)300,022k (± 0.00%)~300,002k300,035kp=1.000 n=6
Parse Time2.16s (± 0.62%)2.17s (± 0.94%)~2.15s2.20sp=0.290 n=6
Bind Time1.24s (± 0.83%)1.23s (± 0.84%)~1.22s1.25sp=0.560 n=6
Check Time7.22s (± 0.73%)7.20s (± 0.40%)~7.16s7.24sp=0.520 n=6
Emit Time4.37s (± 1.05%)4.38s (± 0.70%)~4.34s4.42sp=0.687 n=6
Total Time14.99s (± 0.63%)14.98s (± 0.32%)~14.92s15.04sp=0.936 n=6
material-ui - node (v16.17.1, x64)
Memory used476,458k (± 0.01%)476,479k (± 0.00%)~476,454k476,503kp=0.093 n=6
Parse Time3.22s (± 0.38%)3.22s (± 0.48%)~3.20s3.24sp=0.739 n=6
Bind Time0.95s (± 0.54%)0.95s (± 0.00%)~0.95s0.95sp=0.174 n=6
Check Time18.21s (± 0.37%)18.17s (± 0.41%)~18.07s18.30sp=0.467 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time22.39s (± 0.28%)22.34s (± 0.38%)~22.23s22.49sp=0.422 n=6
xstate - node (v16.17.1, x64)
Memory used550,607k (± 0.02%)550,485k (± 0.02%)-122k (- 0.02%)550,419k550,647kp=0.031 n=6
Parse Time3.93s (± 0.49%)3.94s (± 0.44%)~3.92s3.96sp=0.318 n=6
Bind Time1.76s (± 0.43%)1.75s (± 0.29%)~1.75s1.76sp=0.247 n=6
Check Time3.09s (± 1.02%)3.08s (± 0.69%)~3.05s3.11sp=0.746 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time8.87s (± 0.60%)8.87s (± 0.32%)~8.84s8.91sp=0.685 n=6
Angular - node (v14.15.1, x64)
Memory used355,570k (± 0.01%)355,563k (± 0.01%)~355,536k355,599kp=0.336 n=6
Parse Time3.62s (± 1.12%)3.64s (± 1.09%)~3.59s3.71sp=0.422 n=6
Bind Time1.22s (± 0.73%)1.22s (± 0.68%)~1.22s1.24sp=0.437 n=6
Check Time9.90s (± 0.36%)9.93s (± 0.18%)~9.91s9.95sp=0.089 n=6
Emit Time8.40s (± 1.18%)8.41s (± 0.90%)~8.33s8.51sp=0.873 n=6
Total Time23.14s (± 0.56%)23.21s (± 0.49%)~23.05s23.36sp=0.261 n=6
Compiler-Unions - node (v14.15.1, x64)
Memory used187,789k (± 0.02%)187,760k (± 0.01%)~187,722k187,802kp=0.173 n=6
Parse Time1.59s (± 0.52%)1.61s (± 0.32%)+0.01s (+ 0.73%)1.60s1.61sp=0.033 n=6
Bind Time0.85s (± 0.61%)0.85s (± 0.60%)~0.85s0.86sp=0.069 n=6
Check Time10.39s (± 0.25%)10.54s (± 0.52%)+0.15s (+ 1.44%)10.45s10.62sp=0.005 n=6
Emit Time3.14s (± 0.63%)3.15s (± 0.55%)~3.12s3.17sp=0.368 n=6
Total Time15.97s (± 0.19%)16.15s (± 0.40%)+0.18s (+ 1.13%)16.05s16.25sp=0.005 n=6
Monaco - node (v14.15.1, x64)
Memory used340,614k (± 0.01%)340,628k (± 0.01%)~340,580k340,677kp=0.521 n=6
Parse Time2.81s (± 0.29%)2.84s (± 0.59%)+0.03s (+ 0.95%)2.81s2.85sp=0.026 n=6
Bind Time1.10s (± 0.74%)1.10s (± 0.37%)~1.09s1.10sp=0.584 n=6
Check Time8.15s (± 0.30%)8.18s (± 0.54%)~8.15s8.26sp=0.567 n=6
Emit Time4.67s (± 0.63%)4.68s (± 0.65%)~4.64s4.72sp=0.520 n=6
Total Time16.73s (± 0.23%)16.80s (± 0.24%)+0.07s (+ 0.40%)16.74s16.86sp=0.029 n=6
TFS - node (v14.15.1, x64)
Memory used295,094k (± 0.00%)295,116k (± 0.00%)+22k (+ 0.01%)295,108k295,124kp=0.008 n=6
Parse Time2.37s (± 1.12%)2.39s (± 0.72%)~2.36s2.41sp=0.188 n=6
Bind Time1.06s (± 0.00%)1.06s (± 0.49%)~1.06s1.07sp=0.174 n=6
Check Time7.52s (± 0.25%)7.53s (± 0.25%)~7.51s7.56sp=0.255 n=6
Emit Time4.28s (± 0.55%)4.31s (± 1.30%)~4.24s4.38sp=0.259 n=6
Total Time15.23s (± 0.33%)15.30s (± 0.42%)~15.19s15.36sp=0.093 n=6
material-ui - node (v14.15.1, x64)
Memory used471,986k (± 0.01%)471,974k (± 0.01%)~471,935k472,009kp=0.689 n=6
Parse Time3.33s (± 0.49%)3.37s (± 0.35%)+0.03s (+ 1.00%)3.35s3.38sp=0.012 n=6
Bind Time0.99s (± 0.90%)0.99s (± 1.22%)~0.98s1.01sp=0.676 n=6
Check Time19.06s (± 0.46%)19.19s (± 0.50%)+0.13s (+ 0.69%)19.09s19.34sp=0.029 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time23.38s (± 0.39%)23.55s (± 0.45%)+0.17s (+ 0.73%)23.44s23.72sp=0.031 n=6
xstate - node (v14.15.1, x64)
Memory used539,171k (± 0.01%)539,191k (± 0.01%)~539,134k539,258kp=0.575 n=6
Parse Time4.23s (± 0.62%)4.24s (± 0.49%)~4.20s4.26sp=0.746 n=6
Bind Time1.65s (± 0.46%)1.66s (± 0.54%)~1.65s1.67sp=0.149 n=6
Check Time3.19s (± 1.14%)3.20s (± 0.36%)~3.18s3.21sp=0.459 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time9.16s (± 0.54%)9.19s (± 0.25%)~9.15s9.21sp=0.521 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-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.15.1, x64)
Scenarios
  • Angular - node (v18.10.0, x64)
  • Angular - node (v16.17.1, x64)
  • Angular - node (v14.15.1, x64)
  • Compiler-Unions - node (v18.10.0, x64)
  • Compiler-Unions - node (v16.17.1, x64)
  • Compiler-Unions - node (v14.15.1, x64)
  • Monaco - node (v18.10.0, x64)
  • Monaco - node (v16.17.1, x64)
  • Monaco - node (v14.15.1, x64)
  • TFS - node (v18.10.0, x64)
  • TFS - node (v16.17.1, x64)
  • TFS - node (v14.15.1, x64)
  • material-ui - node (v18.10.0, x64)
  • material-ui - node (v16.17.1, x64)
  • material-ui - node (v14.15.1, x64)
  • xstate - node (v18.10.0, x64)
  • xstate - node (v16.17.1, x64)
  • xstate - node (v14.15.1, x64)
BenchmarkNameIterations
Current535496
Baselinemain6

TSServer

Comparison Report - main..53549
Metricmain53549DeltaBestWorstp-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,393ms (± 0.44%)2,410ms (± 0.68%)~2,392ms2,427msp=0.229 n=6
Req 2 - geterr5,538ms (± 0.48%)5,545ms (± 0.50%)~5,508ms5,580msp=0.688 n=6
Req 3 - references335ms (± 0.72%)337ms (± 0.72%)~333ms340msp=0.256 n=6
Req 4 - navto281ms (± 0.65%)282ms (± 0.54%)~280ms284msp=0.402 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo82ms (± 3.56%)82ms (± 3.72%)~78ms86msp=0.935 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,508ms (± 0.93%)2,528ms (± 1.24%)~2,469ms2,554msp=0.149 n=6
Req 2 - geterr4,062ms (± 0.58%)4,075ms (± 0.52%)~4,044ms4,103msp=0.378 n=6
Req 3 - references349ms (± 0.71%)348ms (± 0.80%)~344ms352msp=0.808 n=6
Req 4 - navto290ms (± 0.26%)291ms (± 0.69%)~289ms294msp=0.406 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo79ms (± 7.41%)78ms (± 4.65%)~75ms84msp=0.517 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,999ms (± 0.51%)2,999ms (± 0.57%)~2,984ms3,028msp=0.572 n=6
Req 2 - geterr1,698ms (± 1.90%)1,700ms (± 1.05%)~1,669ms1,722msp=0.688 n=6
Req 3 - references107ms (± 1.83%)106ms (± 0.84%)~105ms107msp=0.142 n=6
Req 4 - navto357ms (± 0.45%)357ms (± 0.51%)~354ms359msp=1.000 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo384ms (± 0.75%)382ms (± 1.84%)~372ms390msp=0.872 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,504ms (± 0.76%)2,517ms (± 0.73%)~2,482ms2,537msp=0.470 n=6
Req 2 - geterr5,885ms (± 0.45%)5,899ms (± 0.55%)~5,876ms5,964msp=0.689 n=6
Req 3 - references345ms (± 0.40%)346ms (± 0.42%)~344ms348msp=0.084 n=6
Req 4 - navto278ms (± 0.53%)278ms (± 0.32%)~277ms279msp=0.804 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo75ms (± 2.45%)74ms (± 0.55%)~73ms74msp=0.390 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,652ms (± 0.44%)2,685ms (± 0.33%)+33ms (+ 1.23%)2,668ms2,694msp=0.008 n=6
Req 2 - geterr4,422ms (± 0.60%)4,419ms (± 0.62%)~4,370ms4,448msp=0.936 n=6
Req 3 - references364ms (± 0.36%)364ms (± 0.47%)~362ms366msp=0.870 n=6
Req 4 - navto287ms (± 0.52%)288ms (± 0.47%)~287ms290msp=0.114 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo77ms (± 2.59%)77ms (± 1.91%)~76ms80msp=0.485 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen3,149ms (± 0.59%)3,147ms (± 0.40%)~3,130ms3,167msp=0.810 n=6
Req 2 - geterr1,852ms (± 1.75%)1,847ms (± 0.73%)~1,831ms1,869msp=1.000 n=6
Req 3 - references113ms (± 0.87%)113ms (± 1.07%)~112ms115msp=0.498 n=6
Req 4 - navto342ms (± 0.61%)342ms (± 0.44%)~341ms345msp=0.570 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo394ms (± 1.15%)394ms (± 0.98%)~390ms399msp=0.870 n=6
Compiler-UnionsTSServer - node (v14.15.1, x64)
Req 1 - updateOpen2,610ms (± 0.50%)2,602ms (± 0.52%)~2,586ms2,623msp=0.471 n=6
Req 2 - geterr6,358ms (± 0.33%)6,351ms (± 0.34%)~6,320ms6,377msp=0.574 n=6
Req 3 - references364ms (± 0.40%)365ms (± 0.99%)~361ms371msp=1.000 n=6
Req 4 - navto281ms (± 0.70%)282ms (± 0.70%)~279ms285msp=0.411 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo99ms (± 8.37%)94ms (± 7.83%)~82ms101msp=0.064 n=6
CompilerTSServer - node (v14.15.1, x64)
Req 1 - updateOpen2,805ms (± 0.36%)2,828ms (± 0.51%)+23ms (+ 0.80%)2,810ms2,842msp=0.013 n=6
Req 2 - geterr4,791ms (± 0.22%)4,786ms (± 0.37%)~4,768ms4,810msp=0.688 n=6
Req 3 - references371ms (± 0.48%)371ms (± 0.31%)~370ms373msp=1.000 n=6
Req 4 - navto289ms (± 1.19%)291ms (± 1.28%)~287ms298msp=0.225 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo75ms (± 1.12%)74ms (± 1.02%)~73ms75msp=0.209 n=6
xstateTSServer - node (v14.15.1, x64)
Req 1 - updateOpen3,453ms (± 0.41%)3,456ms (± 0.54%)~3,427ms3,485msp=0.810 n=6
Req 2 - geterr1,887ms (± 0.73%)1,867ms (± 1.10%)~1,835ms1,894msp=0.093 n=6
Req 3 - references125ms (± 0.44%)127ms (± 1.20%)+2ms (+ 1.61%)125ms129msp=0.015 n=6
Req 4 - navto373ms (± 0.24%)373ms (± 0.63%)~370ms376msp=0.806 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo412ms (± 1.43%)406ms (± 0.77%)~403ms410msp=0.090 n=6
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-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.15.1, x64)
Scenarios
  • Compiler-UnionsTSServer - node (v18.10.0, x64)
  • Compiler-UnionsTSServer - node (v16.17.1, x64)
  • Compiler-UnionsTSServer - node (v14.15.1, x64)
  • CompilerTSServer - node (v18.10.0, x64)
  • CompilerTSServer - node (v16.17.1, x64)
  • CompilerTSServer - node (v14.15.1, x64)
  • xstateTSServer - node (v18.10.0, x64)
  • xstateTSServer - node (v16.17.1, x64)
  • xstateTSServer - node (v14.15.1, x64)
BenchmarkNameIterations
Current535496
Baselinemain6

Startup

Comparison Report - main..53549
Metricmain53549DeltaBestWorstp-value
tsc-startup - node (v16.17.1, x64)
Execution time141.50ms (± 0.17%)142.14ms (± 0.21%)+0.65ms (+ 0.46%)141.32ms145.64msp=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time226.47ms (± 0.15%)230.73ms (± 0.47%)+4.27ms (+ 1.88%)226.86ms236.37msp=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time228.43ms (± 0.18%)231.41ms (± 0.39%)+2.98ms (+ 1.30%)228.36ms238.29msp=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time209.21ms (± 0.17%)211.84ms (± 0.36%)+2.63ms (+ 1.26%)209.00ms217.49msp=0.000 n=600
System
Machine Namets-ci-ubuntu
Platformlinux 5.4.0-135-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)
BenchmarkNameIterations
Current535496
Baselinemain6

Developer Information:

Download Benchmark

@gabritto

Copy link
Copy Markdown
MemberAuthor

So, testing, this seems to almost fix #52892. Compare:

Some of the errors go away, which is good, but uncommenting that static block still seems to change the result. Not sure why exactly, but it at least an improvement.

That is intriguing. But the correct behavior is to have the one error at A.B<A<T>>, no?

@jakebailey

Copy link
Copy Markdown
Member

I don't think so; uncomment the static block and note that the error goes away. But, it could be two issues in one.

@gabritto

Copy link
Copy Markdown
MemberAuthor

I don't think so; uncomment the static block and note that the error goes away. But, it could be two issues in one.

I meant to say I think the leftover bug is the fact that the error goes away in the presence of the static block, when it shouldn't go away.

@jakebailey

Copy link
Copy Markdown
Member

Ah, yes, correct.

@gabrittoGabriela Araujo Britto (gabritto) changed the title reset type resolution stack when starting to compute varianceReset type resolution stack when starting to compute varianceMar 28, 2023
@gabritto
Gabriela Araujo Britto (gabritto) marked this pull request as ready for review March 28, 2023 19:41
@gabritto
Gabriela Araujo Britto (gabritto) deleted the gabritto/issue53470 branch April 11, 2023 21:05
@microsoftMicrosoft (microsoft) locked as resolved and limited conversation to collaborators Oct 22, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: TeamFor Uncommitted BugPR for untriaged, rejected, closed or missing bug

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Computing variance causes circularity error

5 participants

@gabritto@typescript-bot@jakebailey@weswigham@sandersn