Skip to content

Commit

Permalink
fixup: fix benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
apapirovski committed Apr 24, 2018
1 parent 665bac0 commit e21e7ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/http/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function main({ duplicates, n }) {
'Transfer-Encoding': 'chunked',
};

for (var i = 0; i < n; i++) {
for (var i = 0; i < n / duplicates; i++) {
headers[`foo${i}`] = [];
for (var j = 0; j < duplicates; j++) {
headers[`foo${i}`].push(`some header value ${i}`);
Expand All @@ -28,7 +28,7 @@ function main({ duplicates, n }) {
server.listen(common.PORT, function() {
bench.http({
path: '/',
connections: 1
connections: 10
}, function() {
server.close();
});
Expand Down

0 comments on commit e21e7ff

Please sign in to comment.