Skip to content

Provide snippet completions for @param in JSDoc - #53260

Merged
Gabriela Araujo Britto (gabritto) merged 8 commits into
mainfrom
gabritto/issue52370
Apr 4, 2023
Merged

Provide snippet completions for @param in JSDoc#53260
Gabriela Araujo Britto (gabritto) merged 8 commits into
mainfrom
gabritto/issue52370

Conversation

@gabritto

Copy link
Copy Markdown
Member

Fixes#52370.

Possibly relevant things to pay attention to:

  • Destructuring is handled one way in JS files, with the multiline syntax e.g. @param {Object} param0 @param {*} param0.a, but in TS files for now we just don't offer those detailed @param completions, because that same syntax (minus type annotations) doesn't work, as reported in Non-Nullable Objects in params don't have properties parsed #32783. When/if we merge feat(33367): support destructuring parameter @param tag in tsdoc #50951, we could use that syntax instead for TS files.

  • The completion is a snippet, with a placeholder on the type annotation when one is present (and when it's not Object in a destructuring), and a tab stop on the place where the comment should go. Should the made-up parameter names for destructured parameters also be a placeholder?

  • The implementation takes parameter initializers into consideration and includes them in the generated @param completion, but I currently have a rule that we don't include the initializer if its text is too long (> 80 characters), or if it spans across multiple lines.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code looks good. Some questions about usage and whether related features will be needed.

Comment threadtests/baselines/reference/jsdocParameterTagSnippetCompletion1.baseline Outdated
// | * @param {Object} param0.a
// | * @param {*} param0.a.b
// | * @param {*} param0.a.c
// | * @param {*} param0.d

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

one thing you could do for array binding patterns: generate [*, *] for the type, plus two tabstops. But that seems like a lot of unnecessarily fancy work.

// | @version
// | @virtual
// | @yields
// | @param {*} b

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

couple of display questions:

  1. Do these longer completions sort below all the other tag names in a real editor? It might not be important if the prefix is @pa and there are only 3 anyway.
  2. In editors that create a jsdoc template upon typing /**, what opportunities are there to show this completion? Do we also need to improve that template with this feature?

@gabrittoGabriela Araujo Britto (gabritto)Mar 15, 2023

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Re 1.
They have the same sortText as the keywords, so it's up to vscode to filter and sort them first or not based on matching. I think they show up later in the baselines because they are last in the array of completion entries. I thought using the same sortText would be ok, since (1) we're also returning all of the possible jsdoc tags, so we're not sure which one you want, and (2) vscode is going to filter that list as you type, so typing @p already reduces the list of entries to something that fits in the display without needing to scroll.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Re 2, if we want we could change the jsdoc comment template completion to reuse this code for destructuring in JS (and in TS depending on what we decide to do).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I vote to make 2 happen at some point; the new code is better than that the template currently has.

Comment threadsrc/services/completions.ts Outdated
Comment threadsrc/services/completions.ts Outdated
Comment threadsrc/services/completions.ts Outdated
Comment threadsrc/services/completions.ts Outdated
@sandersn

Copy link
Copy Markdown
Member

Gabriela Araujo Britto (@gabritto) is this ready to go? I can't remember if we discovered more things that needed to be added at the last editor meeting.

@gabritto

Copy link
Copy Markdown
MemberAuthor

As pointed out by Matt, the whole jsdoc comment completion goes through a transformation on the vscode side: https://github.com/microsoft/vscode/blob/53df0204ca3e0472d582d3c6e4504e1aa39533bb/extensions/typescript-language-features/src/languageFeatures/jsDocCompletions.ts#L103
We might be able to delete this once tsserver returns a proper snippet for the whole jsdoc comment completion.

@gabritto

Copy link
Copy Markdown
MemberAuthor

TypeScript Bot (@typescript-bot) test this

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 2023

Copy link
Copy Markdown
Contributor

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

@gabritto

Copy link
Copy Markdown
MemberAuthor

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 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 0e3ac3f. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 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 0e3ac3f. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 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 0e3ac3f. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 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 0e3ac3f. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 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 0e3ac3f. You can monitor the build here.

Update: The results are in!

@typescript-bot

TypeScript Bot (typescript-bot) commented Apr 3, 2023

Copy link
Copy Markdown
Contributor

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

Update: The results are in!

Comment threadsrc/services/completions.ts Outdated

const isJs = isSourceFileJS(sourceFile);
const isSnippet = preferences.includeCompletionsWithSnippetText || undefined;
const paramTagCount = jsDoc.tags?.filter(tag => isJSDocParameterTag(tag) && tag.getEnd() <= position).length;

Choose a reason for hiding this comment

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

We have a countWhere utility

Comment threadsrc/services/completions.ts
@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/53260/merge:

There were infrastructure failures potentially unrelated to your change:

  • 1 instance of "Package install failed"

Otherwise...

Everything looks good!

@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/53260/merge:

Everything looks good!

@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..53260
Metricmain53260DeltaBestWorstp-value
Angular - node (v18.10.0, x64)
Memory used362,382k (± 0.01%)362,377k (± 0.00%)~362,352k362,398kp=0.689 n=6
Parse Time3.37s (± 0.73%)3.38s (± 0.49%)~3.36s3.40sp=0.511 n=6
Bind Time1.12s (± 0.46%)1.12s (± 0.67%)~1.11s1.13sp=0.784 n=6
Check Time8.68s (± 0.29%)8.77s (± 0.55%)+0.09s (+ 1.06%)8.71s8.83sp=0.010 n=6
Emit Time7.45s (± 0.81%)7.49s (± 0.77%)~7.38s7.55sp=0.295 n=6
Total Time20.62s (± 0.26%)20.76s (± 0.47%)+0.14s (+ 0.66%)20.59s20.85sp=0.037 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used190,820k (± 0.02%)191,770k (± 1.20%)~190,809k196,487kp=0.378 n=6
Parse Time1.49s (± 1.79%)1.49s (± 0.99%)~1.46s1.50sp=0.933 n=6
Bind Time0.76s (± 1.07%)0.77s (± 0.72%)~0.76s0.77sp=0.859 n=6
Check Time9.65s (± 0.70%)9.65s (± 0.80%)~9.54s9.77sp=0.936 n=6
Emit Time2.72s (± 0.86%)2.74s (± 1.01%)~2.70s2.78sp=0.290 n=6
Total Time14.63s (± 0.58%)14.65s (± 0.63%)~14.50s14.76sp=0.471 n=6
Monaco - node (v18.10.0, x64)
Memory used346,420k (± 0.01%)346,403k (± 0.01%)~346,384k346,434kp=0.230 n=6
Parse Time2.59s (± 1.36%)2.59s (± 1.55%)~2.53s2.64sp=1.000 n=6
Bind Time1.01s (± 0.97%)1.01s (± 0.54%)~1.01s1.02sp=0.662 n=6
Check Time7.11s (± 0.19%)7.11s (± 0.39%)~7.06s7.14sp=0.549 n=6
Emit Time4.23s (± 0.94%)4.24s (± 1.42%)~4.18s4.32sp=0.809 n=6
Total Time14.94s (± 0.50%)14.96s (± 0.72%)~14.79s15.08sp=0.688 n=6
TFS - node (v18.10.0, x64)
Memory used300,701k (± 0.01%)300,719k (± 0.01%)~300,697k300,759kp=0.173 n=6
Parse Time2.05s (± 0.91%)2.06s (± 0.95%)~2.04s2.09sp=0.566 n=6
Bind Time1.15s (± 1.06%)1.15s (± 0.45%)~1.14s1.15sp=0.533 n=6
Check Time6.57s (± 0.48%)6.59s (± 0.23%)~6.58s6.61sp=0.142 n=6
Emit Time3.83s (± 0.71%)3.87s (± 0.60%)+0.04s (+ 0.96%)3.85s3.90sp=0.043 n=6
Total Time13.61s (± 0.42%)13.67s (± 0.31%)~13.63s13.74sp=0.065 n=6
material-ui - node (v18.10.0, x64)
Memory used477,185k (± 0.01%)477,194k (± 0.01%)~477,117k477,237kp=0.810 n=6
Parse Time3.04s (± 1.92%)3.05s (± 2.20%)~2.91s3.08sp=0.684 n=6
Bind Time0.93s (± 6.31%)0.93s (± 6.10%)~0.90s1.04sp=0.607 n=6
Check Time17.16s (± 0.77%)17.20s (± 0.64%)~17.02s17.32sp=0.574 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time21.14s (± 0.64%)21.18s (± 0.57%)~20.99s21.31sp=0.688 n=6
xstate - node (v18.10.0, x64)
Memory used553,114k (± 0.03%)552,993k (± 0.03%)~552,841k553,215kp=0.128 n=6
Parse Time3.78s (± 0.90%)3.79s (± 0.58%)~3.75s3.81sp=0.683 n=6
Bind Time1.66s (± 0.45%)1.67s (± 0.31%)~1.66s1.67sp=0.247 n=6
Check Time2.83s (± 0.67%)2.83s (± 0.86%)~2.79s2.86sp=0.514 n=6
Emit Time0.08s (± 0.00%)0.08s (± 0.00%)~0.08s0.08sp=1.000 n=6
Total Time8.35s (± 0.53%)8.38s (± 0.29%)~8.35s8.40sp=0.173 n=6
Angular - node (v16.17.1, x64)
Memory used361,766k (± 0.01%)361,751k (± 0.01%)~361,711k361,775kp=0.471 n=6
Parse Time3.51s (± 0.53%)3.53s (± 0.90%)~3.50s3.58sp=0.169 n=6
Bind Time1.18s (± 0.44%)1.17s (± 0.44%)-0.01s (- 0.85%)1.17s1.18sp=0.018 n=6
Check Time9.54s (± 0.37%)9.55s (± 0.35%)~9.52s9.60sp=0.571 n=6
Emit Time7.92s (± 0.58%)7.96s (± 0.42%)~7.92s8.01sp=0.078 n=6
Total Time22.15s (± 0.24%)22.22s (± 0.40%)~22.11s22.33sp=0.149 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used193,024k (± 0.69%)193,072k (± 0.67%)~192,499k195,715kp=0.471 n=6
Parse Time1.58s (± 0.87%)1.60s (± 0.56%)~1.59s1.61sp=0.084 n=6
Bind Time0.82s (± 0.50%)0.82s (± 0.50%)~0.82s0.83sp=1.000 n=6
Check Time10.31s (± 0.86%)10.35s (± 0.48%)~10.30s10.43sp=0.630 n=6
Emit Time3.01s (± 1.20%)3.01s (± 0.96%)~2.95s3.03sp=1.000 n=6
Total Time15.72s (± 0.60%)15.78s (± 0.42%)~15.70s15.88sp=0.229 n=6
Monaco - node (v16.17.1, x64)
Memory used345,675k (± 0.00%)345,673k (± 0.01%)~345,645k345,695kp=0.810 n=6
Parse Time2.70s (± 0.20%)2.71s (± 0.33%)~2.70s2.72sp=0.341 n=6
Bind Time1.08s (± 0.70%)1.08s (± 0.70%)~1.07s1.09sp=1.000 n=6
Check Time7.78s (± 0.32%)7.78s (± 0.34%)~7.75s7.81sp=0.687 n=6
Emit Time4.46s (± 0.84%)4.46s (± 0.41%)~4.44s4.49sp=1.000 n=6
Total Time16.04s (± 0.35%)16.02s (± 0.20%)~15.99s16.08sp=0.871 n=6
TFS - node (v16.17.1, x64)
Memory used300,056k (± 0.01%)300,066k (± 0.01%)~300,033k300,094kp=0.378 n=6
Parse Time2.16s (± 0.19%)2.17s (± 0.57%)~2.15s2.18sp=0.389 n=6
Bind Time1.24s (± 0.68%)1.24s (± 1.39%)~1.22s1.26sp=0.742 n=6
Check Time7.21s (± 0.31%)7.21s (± 0.30%)~7.19s7.24sp=0.622 n=6
Emit Time4.33s (± 0.39%)4.33s (± 0.60%)~4.30s4.37sp=0.935 n=6
Total Time14.94s (± 0.20%)14.94s (± 0.25%)~14.91s14.99sp=0.869 n=6
material-ui - node (v16.17.1, x64)
Memory used476,443k (± 0.01%)476,440k (± 0.01%)~476,408k476,490kp=0.810 n=6
Parse Time3.22s (± 0.36%)3.20s (± 1.21%)~3.14s3.23sp=0.742 n=6
Bind Time0.95s (± 0.43%)0.97s (± 2.64%)~0.95s1.01sp=0.214 n=6
Check Time18.26s (± 0.71%)18.27s (± 1.18%)~18.07s18.66sp=0.810 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time22.43s (± 0.57%)22.44s (± 0.98%)~22.22s22.83sp=0.872 n=6
xstate - node (v16.17.1, x64)
Memory used550,580k (± 0.02%)550,591k (± 0.03%)~550,502k550,951kp=0.575 n=6
Parse Time3.94s (± 0.52%)3.94s (± 0.28%)~3.93s3.96sp=0.806 n=6
Bind Time1.75s (± 0.51%)1.75s (± 0.23%)~1.75s1.76sp=0.787 n=6
Check Time3.08s (± 0.50%)3.07s (± 0.34%)~3.06s3.09sp=0.560 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time8.86s (± 0.37%)8.85s (± 0.23%)~8.83s8.88sp=0.624 n=6
Angular - node (v14.15.1, x64)
Memory used355,596k (± 0.00%)355,600k (± 0.00%)~355,577k355,617kp=0.470 n=6
Parse Time3.59s (± 0.33%)3.61s (± 0.69%)~3.58s3.65sp=0.357 n=6
Bind Time1.22s (± 0.62%)1.22s (± 0.67%)~1.21s1.23sp=0.306 n=6
Check Time9.90s (± 0.46%)9.93s (± 0.36%)~9.88s9.97sp=0.260 n=6
Emit Time8.33s (± 0.35%)8.35s (± 0.35%)~8.32s8.39sp=0.260 n=6
Total Time23.04s (± 0.30%)23.10s (± 0.28%)~23.04s23.22sp=0.127 n=6
Compiler-Unions - node (v14.15.1, x64)
Memory used187,794k (± 0.02%)187,787k (± 0.01%)~187,758k187,823kp=0.936 n=6
Parse Time1.59s (± 0.52%)1.59s (± 0.34%)~1.59s1.60sp=0.855 n=6
Bind Time0.85s (± 0.48%)0.85s (± 0.00%)~0.85s0.85sp=0.405 n=6
Check Time10.45s (± 0.66%)10.47s (± 0.25%)~10.44s10.50sp=0.746 n=6
Emit Time3.14s (± 1.28%)3.13s (± 0.52%)~3.11s3.15sp=0.870 n=6
Total Time16.03s (± 0.60%)16.05s (± 0.21%)~16.01s16.09sp=1.000 n=6
Monaco - node (v14.15.1, x64)
Memory used340,634k (± 0.01%)340,666k (± 0.00%)+32k (+ 0.01%)340,644k340,685kp=0.010 n=6
Parse Time2.82s (± 0.66%)2.83s (± 0.66%)~2.81s2.85sp=0.934 n=6
Bind Time1.10s (± 0.47%)1.10s (± 0.68%)~1.09s1.11sp=0.784 n=6
Check Time8.11s (± 0.40%)8.15s (± 0.44%)~8.11s8.21sp=0.148 n=6
Emit Time4.70s (± 0.52%)4.70s (± 0.71%)~4.66s4.74sp=0.806 n=6
Total Time16.73s (± 0.34%)16.77s (± 0.34%)~16.74s16.89sp=0.422 n=6
TFS - node (v14.15.1, x64)
Memory used295,109k (± 0.00%)295,121k (± 0.00%)~295,105k295,134kp=0.127 n=6
Parse Time2.38s (± 0.77%)2.39s (± 0.92%)~2.36s2.42sp=0.514 n=6
Bind Time1.06s (± 0.49%)1.07s (± 0.51%)~1.06s1.07sp=0.640 n=6
Check Time7.56s (± 0.37%)7.55s (± 0.54%)~7.48s7.60sp=1.000 n=6
Emit Time4.28s (± 1.02%)4.31s (± 0.80%)~4.26s4.36sp=0.260 n=6
Total Time15.28s (± 0.44%)15.32s (± 0.39%)~15.25s15.38sp=0.378 n=6
material-ui - node (v14.15.1, x64)
Memory used471,961k (± 0.00%)471,963k (± 0.00%)~471,930k471,992kp=0.810 n=6
Parse Time3.36s (± 0.51%)3.35s (± 0.53%)~3.33s3.37sp=0.192 n=6
Bind Time0.99s (± 0.55%)1.00s (± 1.37%)~0.98s1.02sp=1.000 n=6
Check Time19.15s (± 0.76%)19.30s (± 0.64%)~19.12s19.45sp=0.128 n=6
Emit Time0.00s (± 0.00%)0.00s (± 0.00%)~0.00s0.00sp=1.000 n=6
Total Time23.50s (± 0.68%)23.64s (± 0.57%)~23.45s23.82sp=0.172 n=6
xstate - node (v14.15.1, x64)
Memory used539,203k (± 0.00%)539,214k (± 0.01%)~539,164k539,252kp=0.936 n=6
Parse Time4.22s (± 1.24%)4.21s (± 0.61%)~4.18s4.25sp=1.000 n=6
Bind Time1.66s (± 0.59%)1.67s (± 0.45%)~1.66s1.68sp=0.167 n=6
Check Time3.18s (± 0.78%)3.18s (± 0.73%)~3.15s3.21sp=0.936 n=6
Emit Time0.09s (± 0.00%)0.09s (± 0.00%)~0.09s0.09sp=1.000 n=6
Total Time9.16s (± 0.70%)9.15s (± 0.31%)~9.10s9.18sp=0.687 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
Current532606
Baselinemain6

TSServer

Comparison Report - main..53260
Metricmain53260DeltaBestWorstp-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,393ms (± 0.55%)2,401ms (± 0.32%)~2,395ms2,414msp=0.253 n=6
Req 2 - geterr5,753ms (± 0.60%)5,750ms (± 0.63%)~5,695ms5,796msp=0.575 n=6
Req 3 - references335ms (± 0.56%)337ms (± 1.06%)~334ms344msp=0.255 n=6
Req 4 - navto281ms (± 1.95%)280ms (± 1.03%)~276ms283msp=0.747 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo85ms (± 1.63%)85ms (± 2.74%)~84ms90msp=0.491 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,499ms (± 1.86%)2,541ms (± 1.20%)~2,504ms2,581msp=0.128 n=6
Req 2 - geterr4,251ms (± 0.43%)4,266ms (± 0.38%)~4,243ms4,290msp=0.230 n=6
Req 3 - references343ms (± 0.24%)344ms (± 0.73%)~341ms347msp=0.461 n=6
Req 4 - navto290ms (± 0.63%)289ms (± 0.90%)~285ms292msp=0.372 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo67ms (± 6.36%)64ms (± 4.29%)~62ms69msp=0.188 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen2,988ms (± 0.50%)2,998ms (± 0.56%)~2,981ms3,022msp=0.423 n=6
Req 2 - geterr1,612ms (± 0.71%)1,607ms (± 1.38%)~1,574ms1,632msp=0.748 n=6
Req 3 - references107ms (± 1.15%)107ms (± 1.38%)~105ms109msp=0.720 n=6
Req 4 - navto359ms (± 0.23%)358ms (± 0.45%)~356ms360msp=0.451 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo376ms (± 1.64%)377ms (± 1.68%)~366ms383msp=0.630 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,519ms (± 0.42%)2,514ms (± 0.61%)~2,489ms2,534msp=0.521 n=6
Req 2 - geterr6,155ms (± 0.81%)6,180ms (± 1.08%)~6,132ms6,313msp=0.572 n=6
Req 3 - references348ms (± 0.53%)349ms (± 0.47%)~346ms351msp=1.000 n=6
Req 4 - navto279ms (± 1.46%)284ms (± 1.32%)+5ms (+ 1.79%)277ms288msp=0.042 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo91ms (± 2.07%)89ms (± 2.52%)~86ms91msp=0.278 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen2,688ms (± 0.66%)2,685ms (± 0.67%)~2,659ms2,714msp=1.000 n=6
Req 2 - geterr4,639ms (± 0.20%)4,654ms (± 0.62%)~4,615ms4,684msp=0.470 n=6
Req 3 - references356ms (± 0.58%)359ms (± 0.98%)~355ms362msp=0.415 n=6
Req 4 - navto281ms (± 1.08%)281ms (± 0.80%)~279ms285msp=0.808 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo68ms (± 1.10%)68ms (± 1.11%)~67ms69msp=0.487 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen3,146ms (± 0.51%)3,152ms (± 0.26%)~3,144ms3,165msp=0.689 n=6
Req 2 - geterr1,783ms (± 1.12%)1,780ms (± 0.83%)~1,753ms1,795msp=0.936 n=6
Req 3 - references113ms (± 1.68%)115ms (± 0.78%)~114ms116msp=0.060 n=6
Req 4 - navto346ms (± 0.54%)347ms (± 0.60%)~344ms349msp=0.416 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo389ms (± 0.75%)397ms (± 1.76%)~386ms404msp=0.109 n=6
Compiler-UnionsTSServer - node (v14.15.1, x64)
Req 1 - updateOpen2,604ms (± 0.46%)2,604ms (± 0.99%)~2,555ms2,620msp=0.629 n=6
Req 2 - geterr6,431ms (± 1.47%)6,403ms (± 1.47%)~6,291ms6,538msp=0.810 n=6
Req 3 - references373ms (± 5.48%)371ms (± 4.22%)~363ms403msp=0.687 n=6
Req 4 - navto281ms (± 0.20%)281ms (± 0.88%)~276ms283msp=0.154 n=6
Req 5 - completionInfo count1,356 (± 0.00%)1,356 (± 0.00%)~1,3561,356p=1.000 n=6
Req 5 - completionInfo92ms (±10.40%)92ms (±10.35%)~81ms102msp=1.000 n=6
CompilerTSServer - node (v14.15.1, x64)
Req 1 - updateOpen2,820ms (± 0.28%)2,812ms (± 0.60%)~2,790ms2,833msp=0.422 n=6
Req 2 - geterr4,774ms (± 0.84%)4,774ms (± 0.69%)~4,733ms4,831msp=1.000 n=6
Req 3 - references368ms (± 0.48%)369ms (± 0.83%)~365ms373msp=0.570 n=6
Req 4 - navto295ms (± 0.66%)293ms (± 1.13%)~289ms298msp=0.331 n=6
Req 5 - completionInfo count1,518 (± 0.00%)1,518 (± 0.00%)~1,5181,518p=1.000 n=6
Req 5 - completionInfo93ms (± 0.68%)86ms (±10.90%)~74ms93msp=0.128 n=6
xstateTSServer - node (v14.15.1, x64)
Req 1 - updateOpen3,381ms (± 0.53%)3,397ms (± 0.42%)~3,373ms3,415msp=0.199 n=6
Req 2 - geterr1,894ms (± 0.67%)1,878ms (± 1.06%)~1,860ms1,916msp=0.093 n=6
Req 3 - references124ms (± 1.02%)124ms (± 0.51%)~123ms125msp=0.799 n=6
Req 4 - navto374ms (± 0.90%)376ms (± 0.94%)~373ms381msp=0.469 n=6
Req 5 - completionInfo count2,861 (± 0.00%)2,861 (± 0.00%)~2,8612,861p=1.000 n=6
Req 5 - completionInfo410ms (± 0.62%)411ms (± 1.02%)~404ms417msp=0.572 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
Current532606
Baselinemain6

Startup

Comparison Report - main..53260
Metricmain53260DeltaBestWorstp-value
tsc-startup - node (v16.17.1, x64)
Execution time141.76ms (± 0.20%)141.99ms (± 0.17%)+0.23ms (+ 0.16%)141.30ms144.26msp=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time219.23ms (± 0.19%)220.65ms (± 0.22%)+1.42ms (+ 0.65%)219.39ms225.72msp=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time221.18ms (± 0.26%)222.92ms (± 0.36%)+1.73ms (+ 0.78%)220.64ms227.33msp=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time202.94ms (± 0.19%)204.29ms (± 0.23%)+1.35ms (+ 0.66%)202.97ms208.99msp=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
Current532606
Baselinemain6

Developer Information:

Download Benchmark

@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/53260/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/53260/merge:

Everything looks good!

@gabritto
Gabriela Araujo Britto (gabritto) deleted the gabritto/issue52370 branch April 4, 2023 18:35
@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 Milestone BugPRs that fix a bug with a specific milestone

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Provide snippet completions for @param in JSDoc

4 participants

@gabritto@sandersn@typescript-bot@DanielRosenwasser