-
Notifications
You must be signed in to change notification settings - Fork 30.5k
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
benchmark: shorten pipe-to by reducing number of chunks #49577
benchmark: shorten pipe-to by reducing number of chunks #49577
Conversation
Benchmark link (with 2 iterations to see the general time it should take): https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1371/ Edit: each combination takes 1 second so it should now take around 15m |
FWIW you shouldn't always reduce iterations just to make them take less time. In most cases the number of iterations is where it is for a reason, namely because V8 does not optimize code right away (or the opposite: it could eventually deoptimize code for some reason) so you can easily get misleading results if the process does not stay alive long enough. |
Do you think it's applicable here? Because 2.5 hours is way too long |
I would say it's always applicable because it's not really safe to guess what V8 may or may not do, especially across V8 versions. |
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.
I'm +1
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.
+1 as well, ran into the same trying to run the entire suite of webstreams benchmark locally
Landed in 7ad4c0f |
PR-URL: #49577 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
PR-URL: nodejs#49577 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Debadree Chatterjee <[email protected]>
(this only now start taking a long time due to #49552)
without this, it takes 2.5 hours with this it should take around 15 minutes:
each iteration (single combination) takes 9 seconds (saw here).
there are 16 possible combinations.
so 9 seconds * 16 combination * 30 default runs * 2 versions = 2 hours and 24 minutes...