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

Provide snippet completions for @param in JSDoc #53260

Merged
merged 8 commits into from
Apr 4, 2023
Merged

Conversation

gabritto
Copy link
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.

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

@sandersn sandersn left a comment

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.

// | * @param {Object} param0.a
// | * @param {*} param0.a.b
// | * @param {*} param0.a.c
// | * @param {*} param0.d
Copy link
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
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?

Copy link
Member Author

@gabritto gabritto Mar 15, 2023

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
Member Author

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
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.

@sandersn
Copy link
Member

@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
Member Author

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
Member Author

gabritto commented Apr 3, 2023

@typescript-bot test this

@typescript-bot
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

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

@gabritto
Copy link
Member Author

gabritto commented Apr 3, 2023

@typescript-bot run DT
@typescript-bot user test this
@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 Apr 3, 2023

Heya @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
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

Heya @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
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

Heya @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
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

Heya @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
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

Heya @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
Copy link
Collaborator

typescript-bot commented Apr 3, 2023

Heya @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!


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

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

@typescript-bot
Copy link
Collaborator

@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
Collaborator

@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
Collaborator

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

Here they are:

Compiler

Comparison Report - main..53260
Metric main 53260 Delta Best Worst p-value
Angular - node (v18.10.0, x64)
Memory used 362,382k (± 0.01%) 362,377k (± 0.00%) ~ 362,352k 362,398k p=0.689 n=6
Parse Time 3.37s (± 0.73%) 3.38s (± 0.49%) ~ 3.36s 3.40s p=0.511 n=6
Bind Time 1.12s (± 0.46%) 1.12s (± 0.67%) ~ 1.11s 1.13s p=0.784 n=6
Check Time 8.68s (± 0.29%) 8.77s (± 0.55%) +0.09s (+ 1.06%) 8.71s 8.83s p=0.010 n=6
Emit Time 7.45s (± 0.81%) 7.49s (± 0.77%) ~ 7.38s 7.55s p=0.295 n=6
Total Time 20.62s (± 0.26%) 20.76s (± 0.47%) +0.14s (+ 0.66%) 20.59s 20.85s p=0.037 n=6
Compiler-Unions - node (v18.10.0, x64)
Memory used 190,820k (± 0.02%) 191,770k (± 1.20%) ~ 190,809k 196,487k p=0.378 n=6
Parse Time 1.49s (± 1.79%) 1.49s (± 0.99%) ~ 1.46s 1.50s p=0.933 n=6
Bind Time 0.76s (± 1.07%) 0.77s (± 0.72%) ~ 0.76s 0.77s p=0.859 n=6
Check Time 9.65s (± 0.70%) 9.65s (± 0.80%) ~ 9.54s 9.77s p=0.936 n=6
Emit Time 2.72s (± 0.86%) 2.74s (± 1.01%) ~ 2.70s 2.78s p=0.290 n=6
Total Time 14.63s (± 0.58%) 14.65s (± 0.63%) ~ 14.50s 14.76s p=0.471 n=6
Monaco - node (v18.10.0, x64)
Memory used 346,420k (± 0.01%) 346,403k (± 0.01%) ~ 346,384k 346,434k p=0.230 n=6
Parse Time 2.59s (± 1.36%) 2.59s (± 1.55%) ~ 2.53s 2.64s p=1.000 n=6
Bind Time 1.01s (± 0.97%) 1.01s (± 0.54%) ~ 1.01s 1.02s p=0.662 n=6
Check Time 7.11s (± 0.19%) 7.11s (± 0.39%) ~ 7.06s 7.14s p=0.549 n=6
Emit Time 4.23s (± 0.94%) 4.24s (± 1.42%) ~ 4.18s 4.32s p=0.809 n=6
Total Time 14.94s (± 0.50%) 14.96s (± 0.72%) ~ 14.79s 15.08s p=0.688 n=6
TFS - node (v18.10.0, x64)
Memory used 300,701k (± 0.01%) 300,719k (± 0.01%) ~ 300,697k 300,759k p=0.173 n=6
Parse Time 2.05s (± 0.91%) 2.06s (± 0.95%) ~ 2.04s 2.09s p=0.566 n=6
Bind Time 1.15s (± 1.06%) 1.15s (± 0.45%) ~ 1.14s 1.15s p=0.533 n=6
Check Time 6.57s (± 0.48%) 6.59s (± 0.23%) ~ 6.58s 6.61s p=0.142 n=6
Emit Time 3.83s (± 0.71%) 3.87s (± 0.60%) +0.04s (+ 0.96%) 3.85s 3.90s p=0.043 n=6
Total Time 13.61s (± 0.42%) 13.67s (± 0.31%) ~ 13.63s 13.74s p=0.065 n=6
material-ui - node (v18.10.0, x64)
Memory used 477,185k (± 0.01%) 477,194k (± 0.01%) ~ 477,117k 477,237k p=0.810 n=6
Parse Time 3.04s (± 1.92%) 3.05s (± 2.20%) ~ 2.91s 3.08s p=0.684 n=6
Bind Time 0.93s (± 6.31%) 0.93s (± 6.10%) ~ 0.90s 1.04s p=0.607 n=6
Check Time 17.16s (± 0.77%) 17.20s (± 0.64%) ~ 17.02s 17.32s p=0.574 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 21.14s (± 0.64%) 21.18s (± 0.57%) ~ 20.99s 21.31s p=0.688 n=6
xstate - node (v18.10.0, x64)
Memory used 553,114k (± 0.03%) 552,993k (± 0.03%) ~ 552,841k 553,215k p=0.128 n=6
Parse Time 3.78s (± 0.90%) 3.79s (± 0.58%) ~ 3.75s 3.81s p=0.683 n=6
Bind Time 1.66s (± 0.45%) 1.67s (± 0.31%) ~ 1.66s 1.67s p=0.247 n=6
Check Time 2.83s (± 0.67%) 2.83s (± 0.86%) ~ 2.79s 2.86s p=0.514 n=6
Emit Time 0.08s (± 0.00%) 0.08s (± 0.00%) ~ 0.08s 0.08s p=1.000 n=6
Total Time 8.35s (± 0.53%) 8.38s (± 0.29%) ~ 8.35s 8.40s p=0.173 n=6
Angular - node (v16.17.1, x64)
Memory used 361,766k (± 0.01%) 361,751k (± 0.01%) ~ 361,711k 361,775k p=0.471 n=6
Parse Time 3.51s (± 0.53%) 3.53s (± 0.90%) ~ 3.50s 3.58s p=0.169 n=6
Bind Time 1.18s (± 0.44%) 1.17s (± 0.44%) -0.01s (- 0.85%) 1.17s 1.18s p=0.018 n=6
Check Time 9.54s (± 0.37%) 9.55s (± 0.35%) ~ 9.52s 9.60s p=0.571 n=6
Emit Time 7.92s (± 0.58%) 7.96s (± 0.42%) ~ 7.92s 8.01s p=0.078 n=6
Total Time 22.15s (± 0.24%) 22.22s (± 0.40%) ~ 22.11s 22.33s p=0.149 n=6
Compiler-Unions - node (v16.17.1, x64)
Memory used 193,024k (± 0.69%) 193,072k (± 0.67%) ~ 192,499k 195,715k p=0.471 n=6
Parse Time 1.58s (± 0.87%) 1.60s (± 0.56%) ~ 1.59s 1.61s p=0.084 n=6
Bind Time 0.82s (± 0.50%) 0.82s (± 0.50%) ~ 0.82s 0.83s p=1.000 n=6
Check Time 10.31s (± 0.86%) 10.35s (± 0.48%) ~ 10.30s 10.43s p=0.630 n=6
Emit Time 3.01s (± 1.20%) 3.01s (± 0.96%) ~ 2.95s 3.03s p=1.000 n=6
Total Time 15.72s (± 0.60%) 15.78s (± 0.42%) ~ 15.70s 15.88s p=0.229 n=6
Monaco - node (v16.17.1, x64)
Memory used 345,675k (± 0.00%) 345,673k (± 0.01%) ~ 345,645k 345,695k p=0.810 n=6
Parse Time 2.70s (± 0.20%) 2.71s (± 0.33%) ~ 2.70s 2.72s p=0.341 n=6
Bind Time 1.08s (± 0.70%) 1.08s (± 0.70%) ~ 1.07s 1.09s p=1.000 n=6
Check Time 7.78s (± 0.32%) 7.78s (± 0.34%) ~ 7.75s 7.81s p=0.687 n=6
Emit Time 4.46s (± 0.84%) 4.46s (± 0.41%) ~ 4.44s 4.49s p=1.000 n=6
Total Time 16.04s (± 0.35%) 16.02s (± 0.20%) ~ 15.99s 16.08s p=0.871 n=6
TFS - node (v16.17.1, x64)
Memory used 300,056k (± 0.01%) 300,066k (± 0.01%) ~ 300,033k 300,094k p=0.378 n=6
Parse Time 2.16s (± 0.19%) 2.17s (± 0.57%) ~ 2.15s 2.18s p=0.389 n=6
Bind Time 1.24s (± 0.68%) 1.24s (± 1.39%) ~ 1.22s 1.26s p=0.742 n=6
Check Time 7.21s (± 0.31%) 7.21s (± 0.30%) ~ 7.19s 7.24s p=0.622 n=6
Emit Time 4.33s (± 0.39%) 4.33s (± 0.60%) ~ 4.30s 4.37s p=0.935 n=6
Total Time 14.94s (± 0.20%) 14.94s (± 0.25%) ~ 14.91s 14.99s p=0.869 n=6
material-ui - node (v16.17.1, x64)
Memory used 476,443k (± 0.01%) 476,440k (± 0.01%) ~ 476,408k 476,490k p=0.810 n=6
Parse Time 3.22s (± 0.36%) 3.20s (± 1.21%) ~ 3.14s 3.23s p=0.742 n=6
Bind Time 0.95s (± 0.43%) 0.97s (± 2.64%) ~ 0.95s 1.01s p=0.214 n=6
Check Time 18.26s (± 0.71%) 18.27s (± 1.18%) ~ 18.07s 18.66s p=0.810 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 22.43s (± 0.57%) 22.44s (± 0.98%) ~ 22.22s 22.83s p=0.872 n=6
xstate - node (v16.17.1, x64)
Memory used 550,580k (± 0.02%) 550,591k (± 0.03%) ~ 550,502k 550,951k p=0.575 n=6
Parse Time 3.94s (± 0.52%) 3.94s (± 0.28%) ~ 3.93s 3.96s p=0.806 n=6
Bind Time 1.75s (± 0.51%) 1.75s (± 0.23%) ~ 1.75s 1.76s p=0.787 n=6
Check Time 3.08s (± 0.50%) 3.07s (± 0.34%) ~ 3.06s 3.09s p=0.560 n=6
Emit Time 0.09s (± 0.00%) 0.09s (± 0.00%) ~ 0.09s 0.09s p=1.000 n=6
Total Time 8.86s (± 0.37%) 8.85s (± 0.23%) ~ 8.83s 8.88s p=0.624 n=6
Angular - node (v14.15.1, x64)
Memory used 355,596k (± 0.00%) 355,600k (± 0.00%) ~ 355,577k 355,617k p=0.470 n=6
Parse Time 3.59s (± 0.33%) 3.61s (± 0.69%) ~ 3.58s 3.65s p=0.357 n=6
Bind Time 1.22s (± 0.62%) 1.22s (± 0.67%) ~ 1.21s 1.23s p=0.306 n=6
Check Time 9.90s (± 0.46%) 9.93s (± 0.36%) ~ 9.88s 9.97s p=0.260 n=6
Emit Time 8.33s (± 0.35%) 8.35s (± 0.35%) ~ 8.32s 8.39s p=0.260 n=6
Total Time 23.04s (± 0.30%) 23.10s (± 0.28%) ~ 23.04s 23.22s p=0.127 n=6
Compiler-Unions - node (v14.15.1, x64)
Memory used 187,794k (± 0.02%) 187,787k (± 0.01%) ~ 187,758k 187,823k p=0.936 n=6
Parse Time 1.59s (± 0.52%) 1.59s (± 0.34%) ~ 1.59s 1.60s p=0.855 n=6
Bind Time 0.85s (± 0.48%) 0.85s (± 0.00%) ~ 0.85s 0.85s p=0.405 n=6
Check Time 10.45s (± 0.66%) 10.47s (± 0.25%) ~ 10.44s 10.50s p=0.746 n=6
Emit Time 3.14s (± 1.28%) 3.13s (± 0.52%) ~ 3.11s 3.15s p=0.870 n=6
Total Time 16.03s (± 0.60%) 16.05s (± 0.21%) ~ 16.01s 16.09s p=1.000 n=6
Monaco - node (v14.15.1, x64)
Memory used 340,634k (± 0.01%) 340,666k (± 0.00%) +32k (+ 0.01%) 340,644k 340,685k p=0.010 n=6
Parse Time 2.82s (± 0.66%) 2.83s (± 0.66%) ~ 2.81s 2.85s p=0.934 n=6
Bind Time 1.10s (± 0.47%) 1.10s (± 0.68%) ~ 1.09s 1.11s p=0.784 n=6
Check Time 8.11s (± 0.40%) 8.15s (± 0.44%) ~ 8.11s 8.21s p=0.148 n=6
Emit Time 4.70s (± 0.52%) 4.70s (± 0.71%) ~ 4.66s 4.74s p=0.806 n=6
Total Time 16.73s (± 0.34%) 16.77s (± 0.34%) ~ 16.74s 16.89s p=0.422 n=6
TFS - node (v14.15.1, x64)
Memory used 295,109k (± 0.00%) 295,121k (± 0.00%) ~ 295,105k 295,134k p=0.127 n=6
Parse Time 2.38s (± 0.77%) 2.39s (± 0.92%) ~ 2.36s 2.42s p=0.514 n=6
Bind Time 1.06s (± 0.49%) 1.07s (± 0.51%) ~ 1.06s 1.07s p=0.640 n=6
Check Time 7.56s (± 0.37%) 7.55s (± 0.54%) ~ 7.48s 7.60s p=1.000 n=6
Emit Time 4.28s (± 1.02%) 4.31s (± 0.80%) ~ 4.26s 4.36s p=0.260 n=6
Total Time 15.28s (± 0.44%) 15.32s (± 0.39%) ~ 15.25s 15.38s p=0.378 n=6
material-ui - node (v14.15.1, x64)
Memory used 471,961k (± 0.00%) 471,963k (± 0.00%) ~ 471,930k 471,992k p=0.810 n=6
Parse Time 3.36s (± 0.51%) 3.35s (± 0.53%) ~ 3.33s 3.37s p=0.192 n=6
Bind Time 0.99s (± 0.55%) 1.00s (± 1.37%) ~ 0.98s 1.02s p=1.000 n=6
Check Time 19.15s (± 0.76%) 19.30s (± 0.64%) ~ 19.12s 19.45s p=0.128 n=6
Emit Time 0.00s (± 0.00%) 0.00s (± 0.00%) ~ 0.00s 0.00s p=1.000 n=6
Total Time 23.50s (± 0.68%) 23.64s (± 0.57%) ~ 23.45s 23.82s p=0.172 n=6
xstate - node (v14.15.1, x64)
Memory used 539,203k (± 0.00%) 539,214k (± 0.01%) ~ 539,164k 539,252k p=0.936 n=6
Parse Time 4.22s (± 1.24%) 4.21s (± 0.61%) ~ 4.18s 4.25s p=1.000 n=6
Bind Time 1.66s (± 0.59%) 1.67s (± 0.45%) ~ 1.66s 1.68s p=0.167 n=6
Check Time 3.18s (± 0.78%) 3.18s (± 0.73%) ~ 3.15s 3.21s p=0.936 n=6
Emit Time 0.09s (± 0.00%) 0.09s (± 0.00%) ~ 0.09s 0.09s p=1.000 n=6
Total Time 9.16s (± 0.70%) 9.15s (± 0.31%) ~ 9.10s 9.18s p=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)
Benchmark Name Iterations
Current 53260 6
Baseline main 6

TSServer

Comparison Report - main..53260
Metric main 53260 Delta Best Worst p-value
Compiler-UnionsTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,393ms (± 0.55%) 2,401ms (± 0.32%) ~ 2,395ms 2,414ms p=0.253 n=6
Req 2 - geterr 5,753ms (± 0.60%) 5,750ms (± 0.63%) ~ 5,695ms 5,796ms p=0.575 n=6
Req 3 - references 335ms (± 0.56%) 337ms (± 1.06%) ~ 334ms 344ms p=0.255 n=6
Req 4 - navto 281ms (± 1.95%) 280ms (± 1.03%) ~ 276ms 283ms p=0.747 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 85ms (± 1.63%) 85ms (± 2.74%) ~ 84ms 90ms p=0.491 n=6
CompilerTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,499ms (± 1.86%) 2,541ms (± 1.20%) ~ 2,504ms 2,581ms p=0.128 n=6
Req 2 - geterr 4,251ms (± 0.43%) 4,266ms (± 0.38%) ~ 4,243ms 4,290ms p=0.230 n=6
Req 3 - references 343ms (± 0.24%) 344ms (± 0.73%) ~ 341ms 347ms p=0.461 n=6
Req 4 - navto 290ms (± 0.63%) 289ms (± 0.90%) ~ 285ms 292ms p=0.372 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 67ms (± 6.36%) 64ms (± 4.29%) ~ 62ms 69ms p=0.188 n=6
xstateTSServer - node (v18.10.0, x64)
Req 1 - updateOpen 2,988ms (± 0.50%) 2,998ms (± 0.56%) ~ 2,981ms 3,022ms p=0.423 n=6
Req 2 - geterr 1,612ms (± 0.71%) 1,607ms (± 1.38%) ~ 1,574ms 1,632ms p=0.748 n=6
Req 3 - references 107ms (± 1.15%) 107ms (± 1.38%) ~ 105ms 109ms p=0.720 n=6
Req 4 - navto 359ms (± 0.23%) 358ms (± 0.45%) ~ 356ms 360ms p=0.451 n=6
Req 5 - completionInfo count 2,861 (± 0.00%) 2,861 (± 0.00%) ~ 2,861 2,861 p=1.000 n=6
Req 5 - completionInfo 376ms (± 1.64%) 377ms (± 1.68%) ~ 366ms 383ms p=0.630 n=6
Compiler-UnionsTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,519ms (± 0.42%) 2,514ms (± 0.61%) ~ 2,489ms 2,534ms p=0.521 n=6
Req 2 - geterr 6,155ms (± 0.81%) 6,180ms (± 1.08%) ~ 6,132ms 6,313ms p=0.572 n=6
Req 3 - references 348ms (± 0.53%) 349ms (± 0.47%) ~ 346ms 351ms p=1.000 n=6
Req 4 - navto 279ms (± 1.46%) 284ms (± 1.32%) +5ms (+ 1.79%) 277ms 288ms p=0.042 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 91ms (± 2.07%) 89ms (± 2.52%) ~ 86ms 91ms p=0.278 n=6
CompilerTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 2,688ms (± 0.66%) 2,685ms (± 0.67%) ~ 2,659ms 2,714ms p=1.000 n=6
Req 2 - geterr 4,639ms (± 0.20%) 4,654ms (± 0.62%) ~ 4,615ms 4,684ms p=0.470 n=6
Req 3 - references 356ms (± 0.58%) 359ms (± 0.98%) ~ 355ms 362ms p=0.415 n=6
Req 4 - navto 281ms (± 1.08%) 281ms (± 0.80%) ~ 279ms 285ms p=0.808 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 68ms (± 1.10%) 68ms (± 1.11%) ~ 67ms 69ms p=0.487 n=6
xstateTSServer - node (v16.17.1, x64)
Req 1 - updateOpen 3,146ms (± 0.51%) 3,152ms (± 0.26%) ~ 3,144ms 3,165ms p=0.689 n=6
Req 2 - geterr 1,783ms (± 1.12%) 1,780ms (± 0.83%) ~ 1,753ms 1,795ms p=0.936 n=6
Req 3 - references 113ms (± 1.68%) 115ms (± 0.78%) ~ 114ms 116ms p=0.060 n=6
Req 4 - navto 346ms (± 0.54%) 347ms (± 0.60%) ~ 344ms 349ms p=0.416 n=6
Req 5 - completionInfo count 2,861 (± 0.00%) 2,861 (± 0.00%) ~ 2,861 2,861 p=1.000 n=6
Req 5 - completionInfo 389ms (± 0.75%) 397ms (± 1.76%) ~ 386ms 404ms p=0.109 n=6
Compiler-UnionsTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 2,604ms (± 0.46%) 2,604ms (± 0.99%) ~ 2,555ms 2,620ms p=0.629 n=6
Req 2 - geterr 6,431ms (± 1.47%) 6,403ms (± 1.47%) ~ 6,291ms 6,538ms p=0.810 n=6
Req 3 - references 373ms (± 5.48%) 371ms (± 4.22%) ~ 363ms 403ms p=0.687 n=6
Req 4 - navto 281ms (± 0.20%) 281ms (± 0.88%) ~ 276ms 283ms p=0.154 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 92ms (±10.40%) 92ms (±10.35%) ~ 81ms 102ms p=1.000 n=6
CompilerTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 2,820ms (± 0.28%) 2,812ms (± 0.60%) ~ 2,790ms 2,833ms p=0.422 n=6
Req 2 - geterr 4,774ms (± 0.84%) 4,774ms (± 0.69%) ~ 4,733ms 4,831ms p=1.000 n=6
Req 3 - references 368ms (± 0.48%) 369ms (± 0.83%) ~ 365ms 373ms p=0.570 n=6
Req 4 - navto 295ms (± 0.66%) 293ms (± 1.13%) ~ 289ms 298ms p=0.331 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 93ms (± 0.68%) 86ms (±10.90%) ~ 74ms 93ms p=0.128 n=6
xstateTSServer - node (v14.15.1, x64)
Req 1 - updateOpen 3,381ms (± 0.53%) 3,397ms (± 0.42%) ~ 3,373ms 3,415ms p=0.199 n=6
Req 2 - geterr 1,894ms (± 0.67%) 1,878ms (± 1.06%) ~ 1,860ms 1,916ms p=0.093 n=6
Req 3 - references 124ms (± 1.02%) 124ms (± 0.51%) ~ 123ms 125ms p=0.799 n=6
Req 4 - navto 374ms (± 0.90%) 376ms (± 0.94%) ~ 373ms 381ms p=0.469 n=6
Req 5 - completionInfo count 2,861 (± 0.00%) 2,861 (± 0.00%) ~ 2,861 2,861 p=1.000 n=6
Req 5 - completionInfo 410ms (± 0.62%) 411ms (± 1.02%) ~ 404ms 417ms p=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)
Benchmark Name Iterations
Current 53260 6
Baseline main 6

Startup

Comparison Report - main..53260
Metric main 53260 Delta Best Worst p-value
tsc-startup - node (v16.17.1, x64)
Execution time 141.76ms (± 0.20%) 141.99ms (± 0.17%) +0.23ms (+ 0.16%) 141.30ms 144.26ms p=0.000 n=600
tsserver-startup - node (v16.17.1, x64)
Execution time 219.23ms (± 0.19%) 220.65ms (± 0.22%) +1.42ms (+ 0.65%) 219.39ms 225.72ms p=0.000 n=600
tsserverlibrary-startup - node (v16.17.1, x64)
Execution time 221.18ms (± 0.26%) 222.92ms (± 0.36%) +1.73ms (+ 0.78%) 220.64ms 227.33ms p=0.000 n=600
typescript-startup - node (v16.17.1, x64)
Execution time 202.94ms (± 0.19%) 204.29ms (± 0.23%) +1.35ms (+ 0.66%) 202.97ms 208.99ms p=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)
Benchmark Name Iterations
Current 53260 6
Baseline main 6

Developer Information:

Download Benchmark

@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.

@typescript-bot
Copy link
Collaborator

@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
Collaborator

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

Everything looks good!

@gabritto gabritto merged commit e83d613 into main Apr 4, 2023
@gabritto gabritto deleted the gabritto/issue52370 branch April 4, 2023 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs 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