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‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ const fork = require('child_process').fork;
1010
constpath=require('path');
1111

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

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

0 commit comments

Comments
(0)