Skip to content

Commit

Permalink
test: shorten test-benchmark-http
Browse files Browse the repository at this point in the history
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 authored and jasnell committed May 23, 2017
1 parent 6fb27af commit e29477a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/sequential/test-benchmark-http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit e29477a

Please sign in to comment.