Commit 15720fa
benchmark: fix configuation parameters
The benchmark runner spawns new processes for each configuration. The
specific configuration is transfered by process.argv. This means that
the values have to be parsed. As of right now only numbers and strings
are parsed correctly. However other values such as objects where used.
This fixes the benchmarks that used non-string/number values and
prevents future issues by asserting the type.
PR-URL: #5177
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>1 parent f6c505d commit 15720faCopy full SHA for 15720fa
File tree
Expand file treeCollapse file tree
6 files changed
+36
-26
lines changedOpen diff view settings
Filter options
- benchmark
- assert
- buffers
Expand file treeCollapse file tree
6 files changed
+36
-26
lines changedOpen diff view settings
Collapse file
benchmark/assert/deepequal-prims-and-objs-big-array.js
Copy file name to clipboardExpand all lines: benchmark/assert/deepequal-prims-and-objs-big-array.js+14-11Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
4 | 16 | |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
| 17 | + |
15 | 18 | |
16 | 19 | |
17 | 20 | |
18 | 21 | |
19 | | - |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | 25 | |
|
Collapse file
benchmark/assert/deepequal-prims-and-objs-big-loop.js
Copy file name to clipboardExpand all lines: benchmark/assert/deepequal-prims-and-objs-big-loop.js+14-11Lines changed: 14 additions & 11 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
4 | 16 | |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
| 17 | + |
15 | 18 | |
16 | 19 | |
17 | 20 | |
18 | 21 | |
19 | | - |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | 25 | |
|
Collapse file
benchmark/buffers/buffer-read.js
Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-read.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
2 | 2 | |
3 | 3 | |
4 | 4 | |
5 | | - |
| 5 | + |
6 | 6 | |
7 | 7 | |
8 | 8 | |
|
Collapse file
benchmark/buffers/buffer-tostring.js
Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-tostring.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
| 6 | + |
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
|
Collapse file
benchmark/buffers/buffer-write.js
Copy file name to clipboardExpand all lines: benchmark/buffers/buffer-write.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
| 4 | + |
5 | 5 | |
6 | 6 | |
7 | 7 | |
|
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
154 | 154 | |
155 | 155 | |
156 | 156 | |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
157 | 161 | |
158 | 162 | |
159 | 163 | |
|
0 commit comments