Skip to content

Commit 91b6ba1

Browse files
Trottaddaleax
authored andcommitted
test: refactor test-benchmark-timers
* add `type` option to reduce combinations of benchmarks run (saves about 15% on run duration of test on my local machine) * alphabetize options PR-URL: #14464 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]>
1 parent c285389 commit 91b6ba1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/parallel/test-benchmark-timers.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ const fork = require('child_process').fork;
1010
const path = require('path');
1111

1212
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
13-
const argv = ['--set', 'thousands=0.001',
13+
const argv = ['--set', 'type=depth',
1414
'--set', 'millions=0.000001',
15+
'--set', 'thousands=0.001',
1516
'timers'];
1617

1718
const child = fork(runjs, argv, {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});

0 commit comments

Comments
 (0)