GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — stream: avoid calls to listenerCount by ronag · Pull Request #50357 · nodejs/node

Conversation

@ronag

@ronag ronag commented Oct 24, 2023

Copy link
Copy Markdown
Member
streams/pipe-object-mode.js n=5000000         **      6.60 %       ±4.18% ±5.73% ±7.81%
streams/pipe.js n=5000000                      *      3.89 %       ±3.24% ±4.59% ±6.59%

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss and tonivj5 reacted with rocket emoji
All reactions
  • 🚀 2 reactions
@ronag
ronag requested review from anonrig, benjamingr, mcollina and rluvaton October 24, 2023 06:29
@nodejs-github-bot

nodejs-github-bot commented Oct 24, 2023 •
edited by ronag
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Oct 24, 2023
@ronag

ronag commented Oct 24, 2023

Copy link
Copy Markdown
Member Author

https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1455/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ronag
ronag force-pushed the readable-data-listener branch from bbba726 to 6ecfbcc Compare October 24, 2023 06:31
@ronag ronag changed the title streams: avoid calls to listenerCount stream: avoid calls to listenerCount Oct 24, 2023
@ronag
stream: avoid calls to listenerCount
f9f02fd
PR-URL: nodejs#50357
@ronag
ronag force-pushed the readable-data-listener branch from 6ecfbcc to f9f02fd Compare October 24, 2023 06:59
@ronag ronag added the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 24, 2023
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. label Oct 24, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 24, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55173/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Uzlopak
Uzlopak approved these changes Oct 24, 2023
View reviewed changes

@Uzlopak Uzlopak left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ronag ronag added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Oct 24, 2023
rluvaton
rluvaton approved these changes Oct 24, 2023
View reviewed changes
@rluvaton rluvaton added stream Issues and PRs related to Node.js streams. performance Issues and PRs related to the performance of Node.js. labels Oct 24, 2023
@H4ad

H4ad commented Oct 24, 2023

Copy link
Copy Markdown
Member

Results:

05:10:29                                                                                          confidence improvement accuracy (*)    (**)   (***)
05:10:29 streams/creation.js kind='duplex' n=50000000                                                            -0.12 %       ±1.06%  ±1.42%  ±1.86%
05:10:29 streams/creation.js kind='readable' n=50000000                                                           0.44 %       ±1.11%  ±1.48%  ±1.93%
05:10:29 streams/creation.js kind='transform' n=50000000                                                 ***      9.73 %       ±3.59%  ±4.79%  ±6.25%
05:10:29 streams/creation.js kind='writable' n=50000000                                                           0.85 %       ±1.32%  ±1.75%  ±2.28%
05:10:29 streams/destroy.js kind='duplex' n=1000000                                                        *      2.25 %       ±2.02%  ±2.69%  ±3.50%
05:10:29 streams/destroy.js kind='readable' n=1000000                                                            -1.58 %       ±2.03%  ±2.70%  ±3.52%
05:10:29 streams/destroy.js kind='transform' n=1000000                                                           -0.20 %       ±1.53%  ±2.04%  ±2.66%
05:10:29 streams/destroy.js kind='writable' n=1000000                                                            -0.21 %       ±1.61%  ±2.14%  ±2.79%
05:10:29 streams/pipe-object-mode.js n=5000000                                                                   -1.85 %       ±3.71%  ±4.93%  ±6.43%
05:10:29 streams/pipe.js n=5000000                                                                               -2.06 %       ±3.11%  ±4.14%  ±5.39%
05:10:29 streams/readable-async-iterator.js sync='no' n=100000                                                   -2.98 %       ±5.78%  ±7.72% ±10.10%
05:10:29 streams/readable-async-iterator.js sync='yes' n=100000                                                  -2.00 %       ±3.70%  ±4.99%  ±6.61%
05:10:29 streams/readable-bigread.js n=1000                                                                       0.42 %       ±1.88%  ±2.50%  ±3.26%
05:10:29 streams/readable-bigunevenread.js n=1000                                                                 1.00 %       ±1.72%  ±2.30%  ±3.00%
05:10:29 streams/readable-boundaryread.js type='buffer' n=2000                                             *      0.76 %       ±0.75%  ±1.00%  ±1.31%
05:10:29 streams/readable-boundaryread.js type='string' n=2000                                                   -0.43 %       ±0.54%  ±0.72%  ±0.94%
05:10:29 streams/readable-from.js type='array' n=10000000                                                        -7.15 %       ±7.48% ±10.07% ±13.34%
05:10:29 streams/readable-from.js type='async-generator' n=10000000                                      ***      6.43 %       ±1.16%  ±1.55%  ±2.03%
05:10:29 streams/readable-from.js type='sync-generator-with-async-values' n=10000000                     ***      9.24 %       ±1.61%  ±2.15%  ±2.81%
05:10:29 streams/readable-from.js type='sync-generator-with-sync-values' n=10000000                              -0.93 %       ±1.55%  ±2.07%  ±2.70%
05:10:29 streams/readable-readall.js n=5000                                                                      -1.37 %       ±2.93%  ±3.90%  ±5.08%
05:10:29 streams/readable-unevenread.js n=1000                                                                   -0.12 %       ±0.41%  ±0.54%  ±0.71%
05:10:29 streams/writable-manywrites.js len=1024 callback='no' writev='no' sync='no' n=100000                     0.11 %       ±0.96%  ±1.27%  ±1.66%
05:10:29 streams/writable-manywrites.js len=1024 callback='no' writev='no' sync='yes' n=100000                    0.22 %       ±3.12%  ±4.15%  ±5.41%
05:10:29 streams/writable-manywrites.js len=1024 callback='no' writev='yes' sync='no' n=100000                    0.35 %       ±2.28%  ±3.04%  ±3.95%
05:10:29 streams/writable-manywrites.js len=1024 callback='no' writev='yes' sync='yes' n=100000                  -1.60 %       ±2.48%  ±3.30%  ±4.30%
05:10:29 streams/writable-manywrites.js len=1024 callback='yes' writev='no' sync='no' n=100000                    0.18 %       ±1.18%  ±1.57%  ±2.04%
05:10:29 streams/writable-manywrites.js len=1024 callback='yes' writev='no' sync='yes' n=100000                   0.60 %       ±2.40%  ±3.19%  ±4.15%
05:10:29 streams/writable-manywrites.js len=1024 callback='yes' writev='yes' sync='no' n=100000                   0.11 %       ±1.85%  ±2.46%  ±3.21%
05:10:29 streams/writable-manywrites.js len=1024 callback='yes' writev='yes' sync='yes' n=100000                 -1.29 %       ±2.55%  ±3.40%  ±4.44%
05:10:29 streams/writable-manywrites.js len=32768 callback='no' writev='no' sync='no' n=100000                   -0.47 %       ±0.94%  ±1.25%  ±1.63%
05:10:29 streams/writable-manywrites.js len=32768 callback='no' writev='no' sync='yes' n=100000                   1.63 %       ±2.50%  ±3.33%  ±4.34%
05:10:29 streams/writable-manywrites.js len=32768 callback='no' writev='yes' sync='no' n=100000                  -1.18 %       ±2.30%  ±3.09%  ±4.07%
05:10:29 streams/writable-manywrites.js len=32768 callback='no' writev='yes' sync='yes' n=100000                 -0.25 %       ±2.47%  ±3.29%  ±4.28%
05:10:29 streams/writable-manywrites.js len=32768 callback='yes' writev='no' sync='no' n=100000                  -0.38 %       ±0.97%  ±1.29%  ±1.68%
05:10:29 streams/writable-manywrites.js len=32768 callback='yes' writev='no' sync='yes' n=100000                  0.03 %       ±2.58%  ±3.44%  ±4.48%
05:10:29 streams/writable-manywrites.js len=32768 callback='yes' writev='yes' sync='no' n=100000                  0.17 %       ±1.26%  ±1.68%  ±2.18%
05:10:29 streams/writable-manywrites.js len=32768 callback='yes' writev='yes' sync='yes' n=100000                -1.21 %       ±2.20%  ±2.93%  ±3.81%
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

H4ad
H4ad approved these changes Oct 24, 2023
View reviewed changes
@nodejs-github-bot

nodejs-github-bot commented Oct 24, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55190/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions github-actions Bot mentioned this pull request Oct 25, 2023
CI Reliability 2023-10-25 nodejs/reliability#697
Open
16 tasks
@nodejs-github-bot

nodejs-github-bot commented Oct 25, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55214/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot

nodejs-github-bot commented Oct 25, 2023

Copy link
Copy Markdown
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/55215/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

anonrig
anonrig approved these changes Oct 25, 2023
View reviewed changes
@anonrig anonrig added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 25, 2023
mcollina
mcollina approved these changes Oct 25, 2023
View reviewed changes

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

lgtm

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
benjamingr
benjamingr approved these changes Oct 25, 2023
View reviewed changes
@github-actions github-actions Bot mentioned this pull request Oct 26, 2023
CI Reliability 2023-10-26 nodejs/reliability#698
Open
20 tasks
@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 26, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 79be4ea into nodejs:main Oct 26, 2023
@nodejs-github-bot

nodejs-github-bot commented Oct 26, 2023

Copy link
Copy Markdown
Collaborator

Landed in 79be4ea

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Oct 27, 2023
CI Reliability 2023-10-27 nodejs/reliability#699
Open
CI Reliability 2023-10-28 nodejs/reliability#700
Open
targos pushed a commit that referenced this pull request Nov 11, 2023
@ronag @targos
stream: avoid calls to listenerCount
893024c
PR-URL: #50357
Reviewed-By: Raz Luvaton <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@targos targos mentioned this pull request Nov 12, 2023
v21.2.0 release proposal #50681
Merged
UlisesGascon pushed a commit that referenced this pull request Dec 11, 2023
@ronag @UlisesGascon
stream: avoid calls to listenerCount
59f7316
PR-URL: #50357
Reviewed-By: Raz Luvaton <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
@UlisesGascon UlisesGascon mentioned this pull request Dec 12, 2023
v20.11.0 proposal #51124
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mcollina mcollina mcollina approved these changes
@benjamingr benjamingr benjamingr approved these changes
@anonrig anonrig anonrig approved these changes
@H4ad H4ad H4ad approved these changes
@rluvaton rluvaton rluvaton approved these changes
+1 more reviewer
@Uzlopak Uzlopak Uzlopak approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. needs-ci PRs that need a full CI run. performance Issues and PRs related to the performance of Node.js. stream Issues and PRs related to Node.js streams.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@ronag @nodejs-github-bot @H4ad @mcollina @benjamingr @anonrig @Uzlopak @rluvaton
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.