diff options
author | Bartosz Sosnowski <bartosz@janeasystems.com> | 2016-08-05 12:34:50 +0300 |
---|---|---|
committer | Bartosz Sosnowski <bartosz@janeasystems.com> | 2016-08-31 18:49:26 +0300 |
commit | b1bbc68fb1c04780a9820a5c0e4e939e5b30058a (patch) | |
tree | c37b3886d862e64d1a3f5c140a75430099b9cd78 /benchmark/http/chunked.js | |
parent | f6e33ef8bcfd0ccb4c7e95a1ba249f0c8d79ece5 (diff) |
benchmark: support for multiple http benchmarkers
This adds support for multiple HTTP benchmarkers. Adds autocannon
as the secondary benchmarker.
PR-URL: https://github.com/nodejs/node/pull/8140
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'benchmark/http/chunked.js')
-rw-r--r-- | benchmark/http/chunked.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmark/http/chunked.js b/benchmark/http/chunked.js index a61978c7322..46d6ab2e266 100644 --- a/benchmark/http/chunked.js +++ b/benchmark/http/chunked.js @@ -20,8 +20,6 @@ function main(conf) { const http = require('http'); var chunk = Buffer.alloc(conf.size, '8'); - var args = ['-d', '10s', '-t', 8, '-c', conf.c]; - var server = http.createServer(function(req, res) { function send(left) { if (left === 0) return res.end(); @@ -34,7 +32,9 @@ function main(conf) { }); server.listen(common.PORT, function() { - bench.http('/', args, function() { + bench.http({ + connections: conf.c + }, function() { server.close(); }); }); |