From e29477ab253ecada09af0959ce8aa5a398a0e23e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 18 May 2017 16:20:33 -0700 Subject: [PATCH] test: shorten test-benchmark-http Add `--set key=""` to cut down the time it takes to run test-benchmark-http by about a third. Alphabetize options in `--set` list. PR-URL: https://github.com/nodejs/node/pull/13109 Reviewed-By: Refael Ackermann Reviewed-By: Joyee Cheung Reviewed-By: Colin Ihrig Reviewed-By: Michael Dawson --- test/sequential/test-benchmark-http.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js index fc9272779b5217..cbeafcb8e6f19a 100644 --- a/test/sequential/test-benchmark-http.js +++ b/test/sequential/test-benchmark-http.js @@ -20,12 +20,13 @@ const path = require('path'); const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); -const child = fork(runjs, ['--set', 'dur=0.1', - '--set', 'n=1', - '--set', 'len=1', +const child = fork(runjs, ['--set', 'benchmarker=test-double', '--set', 'c=1', '--set', 'chunks=0', - '--set', 'benchmarker=test-double', + '--set', 'dur=0.1', + '--set', 'key=""', + '--set', 'len=1', + '--set', 'n=1', 'http'], {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}}); child.on('exit', (code, signal) => {