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: https://github.com/nodejs/node/pull/14464 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
This commit is contained in:
parent
aa6fac68da
commit
d3e07e3667
@ -10,8 +10,9 @@ const fork = require('child_process').fork;
|
||||
const path = require('path');
|
||||
|
||||
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
|
||||
const argv = ['--set', 'thousands=0.001',
|
||||
const argv = ['--set', 'type=depth',
|
||||
'--set', 'millions=0.000001',
|
||||
'--set', 'thousands=0.001',
|
||||
'timers'];
|
||||
|
||||
const child = fork(runjs, argv, { env: { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 } });
|
||||
|
Loading…
x
Reference in New Issue
Block a user