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

+6-4
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ const fork = require('child_process').fork;
1616
const path = require('path');
1717

1818
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
19-
const argv = ['--set', 'n=1',
20-
'--set', 'writes=1',
21-
'--set', 'len=1',
19+
const argv = ['--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
const child = fork(runjs, argv, {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});

0 commit comments

Comments
 (0)