From d3e07e3667670a80cc9597e62ae7280f4d5a47ce 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 PR-URL: https://github.com/nodejs/node/pull/14464 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Jeremiah Senkpiel --- 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 } });