GeezerVison is showing github.com — stream: refactor the objectMode assignment logic by rickyes · Pull Request #32949 · nodejs/node
Conversation
rickyes
commented
Apr 20, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
~7% improvement. reduce repetitive judgments when options is undefined.
streams/creation.js kind='duplex' n=50000000 0.85 % ±3.68% ±4.90% ±6.37%
streams/creation.js kind='readable' n=50000000 *** 6.89 % ±3.93% ±5.25% ±6.85%
streams/creation.js kind='transform' n=50000000 0.17 % ±4.49% ±5.99% ±7.82%
streams/creation.js kind='writable' n=50000000 -1.35 % ±3.37% ±4.48% ±5.84%
/cc @ronag
Checklist
-
make -j4 test (UNIX), or vcbuild test (Windows) passes
- tests and/or benchmarks are included
- commit message follows commit guidelines
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bricss reacted with thumbs up emoji
ronag
commented
Apr 20, 2020
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
After I conducted another benchmark test locally, there was no performance difference. The difference between the two results was so big, I will close this PR.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 31, 2021
This was referenced Sep 12, 2021
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
stream
Issues and PRs related to Node.js streams.
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.
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.
|