From a2aa7265f3cf6c3f0a74af57ab94161746b68e09 Mon Sep 17 00:00:00 2001 From: rickyes Date: Sun, 2 Aug 2020 15:49:20 +0800 Subject: [PATCH] benchmark: fix EADDRNOTAVAIL error in http2 --- benchmark/http2/compat.js | 2 +- benchmark/http2/respond-with-fd.js | 2 +- benchmark/http2/simple.js | 2 +- benchmark/http2/write.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/http2/compat.js b/benchmark/http2/compat.js index 2c7e732b07f0a5..4d5b0120a8a7ff 100644 --- a/benchmark/http2/compat.js +++ b/benchmark/http2/compat.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { streams: [1, 10, 20, 40, 100, 200], clients: [2], benchmarker: ['test-double-http2'], - duration: 5 + duration: 2 }, { flags: ['--no-warnings'] }); function main({ requests, streams, clients, duration }) { diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index 5bf5988d16a64c..e27e88b65285b1 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -11,7 +11,7 @@ const bench = common.createBenchmark(main, { streams: [1, 10, 20, 40, 100, 200], clients: [2], benchmarker: ['test-double-http2'], - duration: 5 + duration: 2 }, { flags: ['--no-warnings'] }); function main({ requests, streams, clients, duration }) { diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index 929c4c655e1295..759bfa2975cb1e 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, { streams: [1, 10, 20, 40, 100, 200], clients: [2], benchmarker: ['test-double-http2'], - duration: 5 + duration: 2 }, { flags: ['--no-warnings'] }); function main({ requests, streams, clients, duration }) { diff --git a/benchmark/http2/write.js b/benchmark/http2/write.js index 7ea8b2c02da650..843c6a54848b36 100644 --- a/benchmark/http2/write.js +++ b/benchmark/http2/write.js @@ -7,7 +7,7 @@ const bench = common.createBenchmark(main, { length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], size: [100000], benchmarker: ['test-double-http2'], - duration: 5 + duration: 2 }, { flags: ['--no-warnings'] }); function main({ streams, length, size, duration }) {