@@ -4,13 +4,13 @@ const common = require('../common.js');
44
55const bench = common . createBenchmark ( main , {
66 n : [ 1e3 ] ,
7- nheaders : [ 0 , 10 , 100 , 1000 ]
7+ nheaders : [ 0 , 10 , 100 , 1000 ] ,
88} , { flags : [ '--no-warnings' ] } ) ;
99
1010function main ( { n, nheaders } ) {
1111 const http2 = require ( 'http2' ) ;
1212 const server = http2 . createServer ( {
13- maxHeaderListPairs : 20000
13+ maxHeaderListPairs : 20000 ,
1414 } ) ;
1515
1616 const headersObject = {
@@ -20,7 +20,7 @@ function main({ n, nheaders }) {
2020 'accept-language' : 'en' ,
2121 'content-type' : 'text/plain' ,
2222 'referer' : 'https://example.org/' ,
23- 'user-agent' : 'SuperBenchmarker 3000'
23+ 'user-agent' : 'SuperBenchmarker 3000' ,
2424 } ;
2525
2626 for ( let i = 0 ; i < nheaders ; i ++ ) {
@@ -33,7 +33,7 @@ function main({ n, nheaders }) {
3333 } ) ;
3434 server . listen ( 0 , ( ) => {
3535 const client = http2 . connect ( `http://localhost:${ server . address ( ) . port } /` , {
36- maxHeaderListPairs : 20000
36+ maxHeaderListPairs : 20000 ,
3737 } ) ;
3838
3939 function doRequest ( remaining ) {
0 commit comments