Skip to content

benchmark: add --csv option to compare.js with --analyze - #65922

Open
jasnell wants to merge 1 commit into
nodejs:mainfrom
jasnell:jasnell/bench-compare-csv
Open

benchmark: add --csv option to compare.js with --analyze#65922
jasnell wants to merge 1 commit into
nodejs:mainfrom
jasnell:jasnell/bench-compare-csv

Conversation

@jasnell

@jasnell jasnell commented Sep 9, 2026

Copy link
Copy Markdown
Member

Add a --csv {filename} option to benchmark/compare.js to capture the CSV when the --analyze option is used

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/performance
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Sep 9, 2026
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from 520b0e2 to df6708b Compare September 9, 2026 01:27
@codecov

codecov Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.99%. Comparing base (dc3b46f) to head (c9c6a65).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65922      +/-   ##
==========================================
- Coverage   89.99%   89.99%   -0.01%     
==========================================
  Files         785      785              
  Lines      269282   269282              
  Branches    51296    51285      -11     
==========================================
- Hits       242348   242335      -13     
- Misses      17445    17447       +2     
- Partials     9489     9500      +11     

see 27 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread doc/contributing/writing-and-running-benchmarks.md Outdated
Comment thread benchmark/compare.js Outdated
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from df6708b to 2c335f8 Compare September 10, 2026 15:45
@jasnell

jasnell commented Sep 10, 2026

Copy link
Copy Markdown
Member Author

ok, had to tweak it a bit more to account for the progress display... but passing --csv - --analyze will now print the raw data followed by the analysis to process.stdout

@jasnell
jasnell requested a review from aduh95 September 10, 2026 15:47
Comment thread benchmark/compare.js Outdated
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from 2c335f8 to 53b9e22 Compare September 10, 2026 16:00
@jasnell
jasnell requested a review from aduh95 September 10, 2026 16:00
Comment thread benchmark/compare.js Outdated
@jasnell
jasnell requested a review from aduh95 September 10, 2026 16:38
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from c6e0e3a to 0ad655a Compare September 10, 2026 20:53
@aduh95

aduh95 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Can you address the linter failures?

@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from 0ad655a to 363ebf9 Compare September 10, 2026 21:52
Comment thread test/parallel/test-benchmark-compare.js Outdated
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from 68c4812 to 77be9bd Compare September 10, 2026 22:28
@jasnell
jasnell requested a review from aduh95 September 10, 2026 22:28
@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 10, 2026
@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 Sep 10, 2026
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@jasnell jasnell 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 Sep 12, 2026
@github-actions github-actions Bot added request-ci-failed Starting CI with the request-ci label failed and requires manual intervention. and removed request-ci Add this label to start a Jenkins CI on a PR. Only starts once the PR has an approving review. labels Sep 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✔  Jenkins credentials valid
- Querying data for job/node-test-pull-request/77359/
SyntaxError: Unexpected token '<', ..."    
  https://github.com/nodejs/node/actions/runs/34725026707

Add a `--csv {filename}` option to benchmark/compare.js
to capture the CSV when the `--analyze` option is used

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
@jasnell
jasnell force-pushed the jasnell/bench-compare-csv branch from 77be9bd to c9c6a65 Compare September 13, 2026 00:05
@jasnell

jasnell commented Sep 13, 2026

Copy link
Copy Markdown
Member Author

@ronag @aduh95 ... can I get another stamp on this after the rebase please :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. needs-ci PRs that need a full CI run. request-ci-failed Starting CI with the request-ci label failed and requires manual intervention.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants