From 0d17cb3567934975ff40300857433a67ddbe78fa Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 24 Jul 2017 16:06:52 -0700 Subject: [PATCH] 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 --- test/parallel/test-benchmark-timers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/parallel/test-benchmark-timers.js b/test/parallel/test-benchmark-timers.js index cfb7a14d405341..27844b427ccd1d 100644 --- a/test/parallel/test-benchmark-timers.js +++ b/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 } });