mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
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: https://github.com/nodejs/node/pull/14189 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
parent
daead5a767
commit
3eae310334
@ -16,13 +16,15 @@ const fork = require('child_process').fork;
|
||||
const path = require('path');
|
||||
|
||||
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
|
||||
const argv = ['--set', 'n=1',
|
||||
'--set', 'writes=1',
|
||||
'--set', 'len=1',
|
||||
const argv = ['--set', 'algo=sha256',
|
||||
'--set', 'api=stream',
|
||||
'--set', 'out=buffer',
|
||||
'--set', 'keylen=1024',
|
||||
'--set', 'len=1',
|
||||
'--set', 'n=1',
|
||||
'--set', 'out=buffer',
|
||||
'--set', 'type=buf',
|
||||
'--set', 'v=crypto',
|
||||
'--set', 'writes=1',
|
||||
'crypto'];
|
||||
|
||||
const child = fork(runjs, argv, {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
|
||||
|
Loading…
Reference in New Issue
Block a user