Browse Source

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>
v6
Rich Trott 7 years ago
parent
commit
d3e07e3667
  1. 3
      test/parallel/test-benchmark-timers.js

3
test/parallel/test-benchmark-timers.js

@ -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…
Cancel
Save