Skip to content
Permalink
Browse files

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: #13109
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
  • Loading branch information...
Trott committed May 18, 2017
1 parent 9e4660b commit 171a43a98685d5cca6710d2d6bf4d20008de3426
Showing with 5 additions and 4 deletions.
  1. +5 −4 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) => {

0 comments on commit 171a43a

Please sign in to comment.
You can’t perform that action at this time.