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

stream: avoid calls to listenerCount #50357

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

ronag
Copy link
Member

@ronag ronag commented Oct 24, 2023

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%

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Oct 24, 2023

Review requested:

  • @nodejs/streams

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

ronag commented Oct 24, 2023

ronag added a commit to nxtedition/node that referenced this pull request Oct 24, 2023
@ronag ronag changed the title streams: avoid calls to listenerCount stream: avoid calls to listenerCount Oct 24, 2023
@ronag ronag added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 24, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 24, 2023
@nodejs-github-bot
Copy link
Collaborator

Copy link
Contributor

@Uzlopak Uzlopak left a comment

Choose a reason for hiding this comment

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

LGTM

@ronag ronag added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Oct 24, 2023
@rluvaton rluvaton added stream Issues and PRs related to the stream subsystem. performance Issues and PRs related to the performance of Node.js. labels Oct 24, 2023
@H4ad
Copy link
Member

H4ad commented Oct 24, 2023

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%

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@anonrig anonrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 25, 2023
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 26, 2023
@nodejs-github-bot nodejs-github-bot merged commit 79be4ea into nodejs:main Oct 26, 2023
62 checks passed
@nodejs-github-bot
Copy link
Collaborator

Landed in 79be4ea

alexfernandez pushed a commit to alexfernandez/node that referenced this pull request Nov 1, 2023
PR-URL: nodejs#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 pushed a commit that referenced this pull request Nov 11, 2023
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 pushed a commit that referenced this pull request Dec 11, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. 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 the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants