Skip to content

perf_hooks: couple of perf hooks improvements #58209

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented May 7, 2025

  • Add uvMetricsInfo to the json output for PerformanceNodeTiming ... just looks like this was overlooked
  • Add fast api variation for loopIdleTime

@jasnell jasnell requested review from anonrig and aduh95 May 7, 2025 04:15
@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/performance

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels May 7, 2025
@nodejs-github-bot

This comment was marked as outdated.

Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.20%. Comparing base (292263e) to head (2c6a37e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #58209   +/-   ##
=======================================
  Coverage   90.20%   90.20%           
=======================================
  Files         633      633           
  Lines      186852   186861    +9     
  Branches    36679    36687    +8     
=======================================
+ Hits       168547   168557   +10     
+ Misses      11095    11094    -1     
  Partials     7210     7210           
Files with missing lines Coverage Δ
lib/internal/perf/nodetiming.js 94.31% <100.00%> (+0.03%) ⬆️
src/node_external_reference.h 100.00% <ø> (ø)
src/node_perf.cc 86.88% <100.00%> (+0.44%) ⬆️

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

@jasnell jasnell force-pushed the jasnell/perf_hooks_fast_apis branch from a17ab54 to 8c33455 Compare May 7, 2025 15:58
@nodejs-github-bot

This comment was marked as outdated.

Copy link
Member

@BridgeAR BridgeAR left a comment

Choose a reason for hiding this comment

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

The code is LGTM, it would just be good to have some rests to verify the fast code working as expected.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

Lgtm

@jasnell jasnell force-pushed the jasnell/perf_hooks_fast_apis branch from 8c33455 to 6157497 Compare May 12, 2025 17:22
jasnell added 2 commits May 12, 2025 10:40
```
perf_hooks/bench-eventlooputil.js method='ELU_passed' n=1000000                 1.18 %       ±2.02% ±2.69% ±3.50%
perf_hooks/bench-eventlooputil.js method='ELU_simple' n=1000000        ***      7.29 %       ±1.84% ±2.45% ±3.19%
perf_hooks/bench-eventlooputil.js method='idleTime' n=1000000           **      4.20 %       ±2.97% ±3.96% ±5.15%
```
@jasnell jasnell force-pushed the jasnell/perf_hooks_fast_apis branch from 6157497 to 2c6a37e Compare May 12, 2025 17:40
@jasnell jasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label May 12, 2025
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 pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants