Skip to content

perf_hooks: reduce overhead of new user timings - #49914

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
H4ad:perf/perf_hooks_usertiming
Oct 5, 2023
Merged

perf_hooks: reduce overhead of new user timings#49914
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
H4ad:perf/perf_hooks_usertiming

Conversation

@H4ad

@H4adH4ad commented Sep 28, 2023

Copy link
Copy Markdown
Member

Continuing the work started on nodejs/performance#109.

This PR should be landed after #49837.

 confidence improvement accuracy (*) (**) (***)
perf_hooks/usertiming.js observe='all' n=100000 *** 351.28 % ±9.79% ±13.17% ±17.46%
perf_hooks/usertiming.js observe='measure' n=100000 *** 436.41 % ±8.94% ±12.03% ±15.93%
Be aware that when doing many comparisons the risk of a false-positive
result increases. In this case, there are 2 comparisons, you can thus
expect the following amount of false-positive results:
0.10 false positives, when considering a 5% risk acceptance (*, **, ***),
0.02 false positives, when considering a 1% risk acceptance (**, ***),
0.00 false positives, when considering a 0.1% risk acceptance (***)

I will use the changes on the latest PR to keep this even simpler, so I will keep as draft for now.

cc @nodejs/performance

@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Sep 28, 2023
@H4ad
H4adforce-pushed the perf/perf_hooks_usertiming branch from f6ff458 to 5fd5fadCompareOctober 1, 2023 14:29
@H4ad
H4ad marked this pull request as ready for review October 1, 2023 14:30
@anonriganonrig added the request-ci Add this label to start a Jenkins CI on a PR. label Oct 1, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 1, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadlib/internal/perf/usertiming.js Outdated

@benjamingrbenjamingr 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.

gj

@H4ad
H4adforce-pushed the perf/perf_hooks_usertiming branch from df6db01 to 41a0fdfCompareOctober 1, 2023 16:16
Qard
Qard approved these changes Oct 2, 2023
@anonriganonrig added performance Issues and PRs related to the performance of Node.js. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Oct 2, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Oct 2, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@anonriganonrig added the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 5, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Oct 5, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 0e507d3 into nodejs:mainOct 5, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 0e507d3

@H4ad
H4ad deleted the perf/perf_hooks_usertiming branch October 5, 2023 11:28
targos pushed a commit that referenced this pull request Nov 11, 2023
PR-URL: #49914
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
@targostargos mentioned this pull request Nov 12, 2023
debadree25 pushed a commit to debadree25/node that referenced this pull request Apr 15, 2024
PR-URL: nodejs#49914
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.performanceIssues and PRs related to the performance of Node.js.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@H4ad@nodejs-github-bot@Qard@sheplu@benjamingr@anonrig