Skip to content

Commit 3726131

Browse files
Trottevanlucas
authored andcommitted
test: minimize time for child_process benchmark
test-benchmark-child-process sometimes times out on Windows in CI. Minimize the number of configurations that run so it will (hopefully) not time out anymore. Set dur=0. PR-URL: #12518 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]>
1 parent eac0d70 commit 3726131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎test/sequential/test-benchmark-child-process.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ const path = require('path');
88

99
construnjs=path.join(__dirname,'..','..','benchmark','run.js');
1010

11-
constchild=fork(runjs,['--set','dur=0.1',
11+
constchild=fork(runjs,['--set','dur=0',
1212
'--set','n=1',
1313
'--set','len=1',
14+
'--set','params=1',
15+
'--set','methodName=execSync',
1416
'child_process'],
1517
{env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
1618
child.on('exit',(code,signal)=>{

0 commit comments

Comments
(0)