From 93e385def1adb50d861ad3559e9bc48a8b89f564 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Tue, 11 Jul 2017 20:03:14 -0700 Subject: [PATCH 1/2] test: reduce run time for test-benchmark-http Specify more configuration options to reduce run time by about a third. Refs: https://github.com/nodejs/node/issues/14177 --- test/sequential/test-benchmark-http.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js index 34fbc3732b20b9..a000d262bf891d 100644 --- a/test/sequential/test-benchmark-http.js +++ b/test/sequential/test-benchmark-http.js @@ -23,11 +23,13 @@ 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', 'n=1', + '--set', 'res=normal', 'http'], {env}); child.on('exit', (code, signal) => { From f63e768e56c554b0e0470ea0f1aa58bdf87b5fe2 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 12 Jul 2017 06:27:25 -0700 Subject: [PATCH 2/2] squash: method=write per refack comment --- test/sequential/test-benchmark-http.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/sequential/test-benchmark-http.js b/test/sequential/test-benchmark-http.js index a000d262bf891d..fb0c1390c545e2 100644 --- a/test/sequential/test-benchmark-http.js +++ b/test/sequential/test-benchmark-http.js @@ -28,6 +28,7 @@ const child = fork(runjs, ['--set', 'benchmarker=test-double', '--set', 'dur=0.1', '--set', 'key=""', '--set', 'len=1', + '--set', 'method=write', '--set', 'n=1', '--set', 'res=normal', 'http'],