@@ -4,13 +4,13 @@ const common = require('../common.js');
4
4
5
5
const bench = common . createBenchmark ( main , {
6
6
n : [ 1e3 ] ,
7
- nheaders : [ 0 , 10 , 100 , 1000 ]
7
+ nheaders : [ 0 , 10 , 100 , 1000 ] ,
8
8
} , { flags : [ '--no-warnings' ] } ) ;
9
9
10
10
function main ( { n, nheaders } ) {
11
11
const http2 = require ( 'http2' ) ;
12
12
const server = http2 . createServer ( {
13
- maxHeaderListPairs : 20000
13
+ maxHeaderListPairs : 20000 ,
14
14
} ) ;
15
15
16
16
const headersObject = {
@@ -20,7 +20,7 @@ function main({ n, nheaders }) {
20
20
'accept-language' : 'en' ,
21
21
'content-type' : 'text/plain' ,
22
22
'referer' : 'https://example.org/' ,
23
- 'user-agent' : 'SuperBenchmarker 3000'
23
+ 'user-agent' : 'SuperBenchmarker 3000' ,
24
24
} ;
25
25
26
26
for ( let i = 0 ; i < nheaders ; i ++ ) {
@@ -33,7 +33,7 @@ function main({ n, nheaders }) {
33
33
} ) ;
34
34
server . listen ( 0 , ( ) => {
35
35
const client = http2 . connect ( `http://localhost:${ server . address ( ) . port } /` , {
36
- maxHeaderListPairs : 20000
36
+ maxHeaderListPairs : 20000 ,
37
37
} ) ;
38
38
39
39
function doRequest ( remaining ) {
0 commit comments