Commit 30451d3
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 79b2387 commit 30451d3Copy full SHA for 30451d3
File tree
Expand file treeCollapse file tree
1 file changed
+14
-7
lines changedOpen diff view settings
Filter options
- test/sequential
Expand file treeCollapse file tree
1 file changed
+14
-7
lines changedOpen diff view settings
Collapse file
test/sequential/test-perf-hooks.js
Copy file name to clipboardExpand all lines: test/sequential/test-perf-hooks.js+14-7Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
32 | 31 | |
33 | 32 | |
34 | 33 | |
35 | 34 | |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | 35 | |
41 | 36 | |
42 | 37 | |
| ||
58 | 53 | |
59 | 54 | |
60 | 55 | |
61 | | - |
62 | | - |
| 56 | + |
| 57 | + |
63 | 58 | |
64 | 59 | |
65 | 60 | |
| ||
93 | 88 | |
94 | 89 | |
95 | 90 | |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
96 | 103 | |
97 | 104 | |
98 | 105 | |
|
0 commit comments