From cd9eba9da86f61e55045e539d20b227e5f0bb706 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 11 Jul 2017 21:45:17 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/14183 Reviewed-By: Gibson Fahnestock Reviewed-By: Benjamin Gruenbaum Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann --- test/sequential/test-benchmark-net.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/sequential/test-benchmark-net.js b/test/sequential/test-benchmark-net.js index 826d891fd76621..ef5f4fbb91c760 100644 --- a/test/sequential/test-benchmark-net.js +++ b/test/sequential/test-benchmark-net.js @@ -15,7 +15,11 @@ const path = require('path'); const runjs = path.join(__dirname, '..', '..', 'benchmark', 'run.js'); -const child = fork(runjs, ['--set', 'dur=0', 'net'], +const child = fork(runjs, + ['--set', 'dur=0', + '--set', 'len=1024', + '--set', 'type=buf', + 'net'], {env: {NODEJS_BENCHMARK_ZERO_ALLOWED: 1}}); child.on('exit', (code, signal) => { assert.strictEqual(code, 0);