test: fix incorrect calculation in test-perf-hooks.js · nodejs/node@931b80f · GitHub
Skip to content

Commit 931b80f

Browse files
joyeecheungaduh95
authored andcommitted
test: fix incorrect calculation in test-perf-hooks.js
After https://redirect.github.com/nodejs/node/pull/46588, Date.now() - performance.timeOrigin and process.uptime() are no longer similar - the former measures uptime from process initilaization, while the latter measures uptime from the main context initialization. Account for the differences in the test. PR-URL: #60271 Refs: https://github.com/nodejs/reliability/blob/main/reports/2025-10-15.md Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent 742eebc commit 931b80f

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

test/sequential/test-perf-hooks.js

Lines changed: 14 additions & 7 deletions

0 commit comments

Comments
 (0)