Commit 5e167bd
benchmark: make benchmarks runnable in older versions of Node.js
Also remove the require-cachable.js benchmarks because now all builtin
modules are cacheable, it would be comparing oranges to apples when
we try to compare the performance of loading all cacheable modules
in different Node.js binaries since the set of modules are just
different. Comparison of startup performance that involves loading
of the long-standing, stable builtins is already covered by the
require-builtins benchmark.
PR-URL: #45746
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent a1831da commit 5e167bdCopy full SHA for 5e167bd
File tree
Expand file treeCollapse file tree
3 files changed
+43
-64
lines changedOpen diff view settings
Filter options
- benchmark
- fixtures
- misc
Expand file treeCollapse file tree
3 files changed
+43
-64
lines changedOpen diff view settings
Collapse file
+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | | - |
| 41 | + |
42 | 42 | |
43 | 43 | |
44 | 44 | |
| ||
91 | 91 | |
92 | 92 | |
93 | 93 | |
94 | | - |
| 94 | + |
95 | 95 | |
96 | 96 | |
97 | 97 | |
| ||
290 | 290 | |
291 | 291 | |
292 | 292 | |
293 | | - |
| 293 | + |
294 | 294 | |
295 | 295 | |
296 | | - |
| 296 | + |
297 | 297 | |
298 | 298 | |
299 | 299 | |
|
Collapse file
benchmark/fixtures/require-cachable.js
Copy file name to clipboardExpand all lines: benchmark/fixtures/require-cachable.js-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file
benchmark/misc/startup.js
Copy file name to clipboard+39-50Lines changed: 39 additions & 50 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
| 3 | + |
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | | - |
13 | 11 | |
14 | 12 | |
15 | | - |
16 | | - |
17 | | - |
| 13 | + |
| 14 | + |
18 | 15 | |
19 | 16 | |
20 | | - |
| 17 | + |
21 | 18 | |
22 | | - |
23 | | - |
24 | | - |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
25 | 33 | |
26 | | - |
27 | | - |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
28 | 38 | |
29 | 39 | |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | | - |
42 | | - |
43 | | - |
| 40 | + |
| 41 | + |
| 42 | + |
44 | 43 | |
45 | | - |
46 | | - |
47 | | - |
48 | | - |
49 | | - |
| 44 | + |
50 | 45 | |
51 | | - |
52 | | - |
53 | | - |
54 | | - |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
55 | 53 | |
56 | | - |
| 54 | + |
57 | 55 | |
58 | 56 | |
59 | 57 | |
60 | 58 | |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
65 | | - |
66 | | - |
67 | | - |
68 | | - |
69 | | - |
70 | | - |
| 59 | + |
71 | 60 | |
| 61 | + |
| 62 | + |
72 | 63 | |
73 | 64 | |
74 | | - |
75 | | - |
| 65 | + |
76 | 66 | |
77 | | - |
78 | | - |
| 67 | + |
79 | 68 | |
80 | 69 | |
0 commit comments