summaryrefslogtreecommitdiff
path: root/benchmark/http/end-vs-write-end.js
diff options
context:
space:
mode:
authorBartosz Sosnowski <bartosz@janeasystems.com>2016-08-05 11:34:50 +0200
committerBartosz Sosnowski <bartosz@janeasystems.com>2016-08-31 17:49:26 +0200
commitb1bbc68fb1c04780a9820a5c0e4e939e5b30058a (patch)
treec37b3886d862e64d1a3f5c140a75430099b9cd78 /benchmark/http/end-vs-write-end.js
parentf6e33ef8bcfd0ccb4c7e95a1ba249f0c8d79ece5 (diff)
downloadandroid-node-v8-b1bbc68fb1c04780a9820a5c0e4e939e5b30058a.tar.gz
android-node-v8-b1bbc68fb1c04780a9820a5c0e4e939e5b30058a.tar.bz2
android-node-v8-b1bbc68fb1c04780a9820a5c0e4e939e5b30058a.zip
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/end-vs-write-end.js')
-rw-r--r--benchmark/http/end-vs-write-end.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/benchmark/http/end-vs-write-end.js b/benchmark/http/end-vs-write-end.js
index 0cdc88111d..62b1a6a097 100644
--- a/benchmark/http/end-vs-write-end.js
+++ b/benchmark/http/end-vs-write-end.js
@@ -43,14 +43,15 @@ function main(conf) {
}
var method = conf.method === 'write' ? write : end;
- var args = ['-d', '10s', '-t', 8, '-c', conf.c];
var server = http.createServer(function(req, res) {
method(res);
});
server.listen(common.PORT, function() {
- bench.http('/', args, function() {
+ bench.http({
+ connections: conf.c
+ }, function() {
server.close();
});
});