FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

benchmark: shorten pipe-to by reducing number of chunks by rluvaton · Pull Request #49577 · nodejs/node · GitHub

/ node Public

benchmark: shorten pipe-to by reducing number of chunks - #49577

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
rluvaton:make-pipe-to-benchmark-shorter
Sep 13, 2023
Merged

benchmark: shorten pipe-to by reducing number of chunks#49577
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
rluvaton:make-pipe-to-benchmark-shorter

Conversation

rluvaton commented Sep 9, 2023
edited
Loading

Copy link
Copy Markdown
Member

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

nodejs-github-bot added the benchmark Issues and PRs related to the benchmark subsystem. label Sep 9, 2023

rluvaton commented Sep 9, 2023
edited
Loading

Copy link
Copy Markdown
Member Author

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

mscdex commented Sep 9, 2023

Copy link
Copy Markdown
Contributor

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.

rluvaton commented Sep 9, 2023

Copy link
Copy Markdown
Member Author

Do you think it's applicable here? Because 2.5 hours is way too long

mscdex commented Sep 9, 2023

Copy link
Copy Markdown
Contributor

Do you think it's applicable here?

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.

anonrig left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I'm +1

debadree25 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

+1 as well, ran into the same trying to run the entire suite of webstreams benchmark locally

debadree25 added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Sep 13, 2023
rluvaton added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 13, 2023
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 13, 2023
nodejs-github-bot merged commit 7ad4c0f into nodejs:main Sep 13, 2023

Copy link
Copy Markdown
Collaborator

Landed in 7ad4c0f

rluvaton deleted the make-pipe-to-benchmark-shorter branch September 13, 2023 21:03
ruyadorno pushed a commit that referenced this pull request Sep 28, 2023
PR-URL: #49577
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Debadree Chatterjee <debadree333@gmail.com>
This was referenced Sep 28, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 outstanding review comments, and a CI started. benchmark Issues and PRs related to the benchmark subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL