Skip to content

Commit 3bc713e

Browse files
Trottaddaleax
authored andcommitted
test: reduce run time for test-benchmark-crypto
Specify options to reduce combinations of benchmarks run during testing. This reduces the run time by approximately 30% and will hopefully allow Raspberry Pi 1 devices in CI to finish the test. PR-URL: #14189 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent 7325704 commit 3bc713e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎test/parallel/test-benchmark-crypto.js‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ const fork = require('child_process').fork;
1616
constpath=require('path');
1717

1818
construnjs=path.join(__dirname,'..','..','benchmark','run.js');
19-
constargv=['--set','n=1',
20-
'--set','writes=1',
21-
'--set','len=1',
19+
constargv=['--set','algo=sha256',
2220
'--set','api=stream',
23-
'--set','out=buffer',
2421
'--set','keylen=1024',
22+
'--set','len=1',
23+
'--set','n=1',
24+
'--set','out=buffer',
2525
'--set','type=buf',
26+
'--set','v=crypto',
27+
'--set','writes=1',
2628
'crypto'];
2729

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

0 commit comments

Comments
(0)