Skip to content

Commit e29477a

Browse files
Trottjasnell
authored andcommitted
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>
1 parent 6fb27af commit e29477a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/sequential/test-benchmark-http.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ const path = require('path');
2020

2121
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
2222

23-
const child = fork(runjs, ['--set', 'dur=0.1',
24-
'--set', 'n=1',
25-
'--set', 'len=1',
23+
const child = fork(runjs, ['--set', 'benchmarker=test-double',
2624
'--set', 'c=1',
2725
'--set', 'chunks=0',
28-
'--set', 'benchmarker=test-double',
26+
'--set', 'dur=0.1',
27+
'--set', 'key=""',
28+
'--set', 'len=1',
29+
'--set', 'n=1',
2930
'http'],
3031
{env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
3132
child.on('exit', (code, signal) => {

0 commit comments

Comments
 (0)