diff options
author | James M Snell <jasnell@gmail.com> | 2017-10-16 10:43:40 -0700 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-10-23 11:57:07 -0700 |
commit | 82b1660b1d7921a9b7d55156bd67f17da34eb106 (patch) | |
tree | 96f82da115f9028f6b2ae9c7d9db9eca3edcf322 /benchmark | |
parent | c30f107103e1f7e86657ddfc074eb502ece70b5f (diff) | |
download | node-new-82b1660b1d7921a9b7d55156bd67f17da34eb106.tar.gz |
benchmark: improve http2 benchmark configs
PR-URL: https://github.com/nodejs/node/pull/16239
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http2/headers.js | 3 | ||||
-rw-r--r-- | benchmark/http2/respond-with-fd.js | 5 | ||||
-rw-r--r-- | benchmark/http2/simple.js | 5 | ||||
-rw-r--r-- | benchmark/http2/write.js | 5 |
4 files changed, 11 insertions, 7 deletions
diff --git a/benchmark/http2/headers.js b/benchmark/http2/headers.js index f6b29347cd..62156774ca 100644 --- a/benchmark/http2/headers.js +++ b/benchmark/http2/headers.js @@ -6,7 +6,8 @@ const PORT = common.PORT; const bench = common.createBenchmark(main, { n: [1e3], nheaders: [0, 10, 100, 1000], -}, { flags: ['--no-warnings'] }); + benchmarker: ['h2load'] +}, { flags: ['--no-warnings', '--expose-http2'] }); function main(conf) { const n = +conf.n; diff --git a/benchmark/http2/respond-with-fd.js b/benchmark/http2/respond-with-fd.js index a235bd87d5..791e5f3d1e 100644 --- a/benchmark/http2/respond-with-fd.js +++ b/benchmark/http2/respond-with-fd.js @@ -10,8 +10,9 @@ const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000, 1000000], streams: [100, 200, 1000], - clients: [1, 2] -}, { flags: ['--no-warnings'] }); + clients: [1, 2], + benchmarker: ['h2load'] +}, { flags: ['--no-warnings', '--expose-http2'] }); function main(conf) { diff --git a/benchmark/http2/simple.js b/benchmark/http2/simple.js index 8d7767197b..e8cb3ddee2 100644 --- a/benchmark/http2/simple.js +++ b/benchmark/http2/simple.js @@ -11,8 +11,9 @@ const file = path.join(path.resolve(__dirname, '../fixtures'), 'alice.html'); const bench = common.createBenchmark(main, { requests: [100, 1000, 10000, 100000], streams: [100, 200, 1000], - clients: [1, 2] -}, { flags: ['--no-warnings'] }); + clients: [1, 2], + benchmarker: ['h2load'] +}, { flags: ['--no-warnings', '--expose-http2'] }); function main(conf) { const n = +conf.requests; diff --git a/benchmark/http2/write.js b/benchmark/http2/write.js index e4f64cc05d..91b9c8f0c5 100644 --- a/benchmark/http2/write.js +++ b/benchmark/http2/write.js @@ -6,8 +6,9 @@ const PORT = common.PORT; const bench = common.createBenchmark(main, { streams: [100, 200, 1000], length: [64 * 1024, 128 * 1024, 256 * 1024, 1024 * 1024], - size: [100000] -}, { flags: ['--no-warnings'] }); + size: [100000], + benchmarker: ['h2load'] +}, { flags: ['--no-warnings', '--expose-http2'] }); function main(conf) { const m = +conf.streams; |