Browse Source

test: reduce run time for test-benchmark-http

Specify more configuration options to reduce run time by about a third.

PR-URL: https://github.com/nodejs/node/pull/14180
Fixes: https://github.com/nodejs/node/issues/14177
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
v6
Rich Trott 8 years ago
parent
commit
daead5a767
  1. 3
      test/sequential/test-benchmark-http.js

3
test/sequential/test-benchmark-http.js

@ -23,11 +23,14 @@ const env = Object.assign({}, process.env,
const child = fork(runjs, ['--set', 'benchmarker=test-double',
'--set', 'c=1',
'--set', 'chunkedEnc=true',
'--set', 'chunks=0',
'--set', 'dur=0.1',
'--set', 'key=""',
'--set', 'len=1',
'--set', 'method=write',
'--set', 'n=1',
'--set', 'res=normal',
'http'],
{env});
child.on('exit', (code, signal) => {

Loading…
Cancel
Save