From 91b6ba1973fbf136843a0ed02964879af095ce74 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 5026de1a8edd35..956ab657bc5295 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}});