Skip to content

Commit cd9eba9

Browse files
Trottaddaleax
authored andcommitted
test: reduce test-benchmark-net run duration
Set configuration option to reduce combinations of benchmark settings tried in test, reducing execution time by about 50%. PR-URL: #14183 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent eb90ad6 commit cd9eba9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/sequential/test-benchmark-net.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ const path = require('path');
1515

1616
const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js');
1717

18-
const child = fork(runjs, ['--set', 'dur=0', 'net'],
18+
const child = fork(runjs,
19+
['--set', 'dur=0',
20+
'--set', 'len=1024',
21+
'--set', 'type=buf',
22+
'net'],
1923
{env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}});
2024
child.on('exit', (code, signal) => {
2125
assert.strictEqual(code, 0);

0 commit comments

Comments
 (0)