Skip to content

bench: additional work on node:bench - #65631

Open
jasnell wants to merge 14 commits into
nodejs:mainfrom
jasnell:jasnell/node-bench-2
Open

bench: additional work on node:bench#65631
jasnell wants to merge 14 commits into
nodejs:mainfrom
jasnell:jasnell/node-bench-2

Conversation

@jasnell

@jasnell jasnell commented Aug 29, 2026

Copy link
Copy Markdown
Member

This is a follow up to the first PR here #65606 ... The first 9 commits are from that PR. Unfortunately, we can't stack these properly so this PR looks way more inflated. Going to keep it Draft until the first lands.

Refines the implementation of the new experimental node:bench

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/loaders
  • @nodejs/performance
  • @nodejs/startup
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run. labels Aug 29, 2026
@jasnell jasnell changed the title perf_hooks: implement Histogram meanCI API bench: additional work on node:bench Aug 29, 2026
@jasnell
jasnell force-pushed the jasnell/node-bench-2 branch 2 times, most recently from 4358154 to f89fc50 Compare August 29, 2026 15:42
@jasnell
jasnell force-pushed the jasnell/node-bench-2 branch from 6d78070 to 3163d0f Compare August 30, 2026 20:21
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
Support serializable context.diagnostic messages and
optionally listen to diagnostic_channel messages

Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
@jasnell
jasnell force-pushed the jasnell/node-bench-2 branch from 3163d0f to b50499a Compare September 3, 2026 15:39
@jasnell
jasnell marked this pull request as ready for review September 3, 2026 15:40
@codecov

codecov Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.90958% with 76 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.08%. Comparing base (f3750c1) to head (09785df).
⚠️ Report is 12 commits behind head on main.

Files with missing lines Patch % Lines
lib/internal/bench_runner/cli.js 91.55% 62 Missing and 1 partial ⚠️
lib/internal/bench_runner/harness.js 97.36% 10 Missing and 1 partial ⚠️
lib/internal/bench_runner/benchmarks_stream.js 99.14% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #65631      +/-   ##
==========================================
+ Coverage   90.06%   90.08%   +0.02%     
==========================================
  Files         769      769              
  Lines      261316   262631    +1315     
  Branches    49631    50004     +373     
==========================================
+ Hits       235354   236592    +1238     
- Misses      17019    17066      +47     
- Partials     8943     8973      +30     
Files with missing lines Coverage Δ
lib/bench.js 100.00% <100.00%> (ø)
lib/internal/bench_runner/benchmark.js 99.66% <100.00%> (+0.04%) ⬆️
lib/internal/bench_runner/runner.js 100.00% <100.00%> (ø)
lib/internal/error_serdes.js 98.57% <100.00%> (+0.05%) ⬆️
lib/internal/bench_runner/benchmarks_stream.js 99.31% <99.14%> (-0.69%) ⬇️
lib/internal/bench_runner/harness.js 98.85% <97.36%> (-0.64%) ⬇️
lib/internal/bench_runner/cli.js 94.12% <91.55%> (-3.84%) ⬇️

... and 38 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.

Signed-off-by: James M Snell <jasnell@gmail.com>
Signed-off-by: James M Snell <jasnell@gmail.com>
Assisted-by: Opencode
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

Labels

lib / src Issues and PRs involving general changes in the lib/ or src/ directories. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants