summaryrefslogtreecommitdiff
path: root/benchmark/http2/headers.js
diff options
context:
space:
mode:
authorAnatoli Papirovski <apapirovski@mac.com>2017-11-21 08:46:13 -0500
committerJames M Snell <jasnell@gmail.com>2017-11-21 07:59:08 -0800
commitf5352b3f320abe866c6b48640df1514a14fabb73 (patch)
tree548e87379e5f1044fdeec31404e8b6cd78b729fe /benchmark/http2/headers.js
parent3e29e0126ed5f3d1ad0ff9e53f4ebc5edd696563 (diff)
downloadandroid-node-v8-f5352b3f320abe866c6b48640df1514a14fabb73.tar.gz
android-node-v8-f5352b3f320abe866c6b48640df1514a14fabb73.tar.bz2
android-node-v8-f5352b3f320abe866c6b48640df1514a14fabb73.zip
benchmark: set maxHeaderListPairs in h2 headers.js
PR-URL: https://github.com/nodejs/node/pull/17194 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'benchmark/http2/headers.js')
-rw-r--r--benchmark/http2/headers.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/benchmark/http2/headers.js b/benchmark/http2/headers.js
index 62156774ca..3c8d0465ac 100644
--- a/benchmark/http2/headers.js
+++ b/benchmark/http2/headers.js
@@ -13,7 +13,9 @@ function main(conf) {
const n = +conf.n;
const nheaders = +conf.nheaders;
const http2 = require('http2');
- const server = http2.createServer();
+ const server = http2.createServer({
+ maxHeaderListPairs: 20000
+ });
const headersObject = {
':path': '/',
@@ -34,7 +36,9 @@ function main(conf) {
stream.end('Hi!');
});
server.listen(PORT, () => {
- const client = http2.connect(`http://localhost:${PORT}/`);
+ const client = http2.connect(`http://localhost:${PORT}/`, {
+ maxHeaderListPairs: 20000
+ });
function doRequest(remaining) {
const req = client.request(headersObject);