diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-02-25 11:05:54 -0800 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2014-02-25 11:28:46 -0800 |
commit | bfc823de9057b8cc9c7efd97e6216e2de02aa818 (patch) | |
tree | e08634e69e5b6229fb924dcc62e17138e8722aa0 /benchmark | |
parent | fa0ac99541f7722af63863f032beff0d485afdec (diff) | |
download | android-node-v8-bfc823de9057b8cc9c7efd97e6216e2de02aa818.tar.gz android-node-v8-bfc823de9057b8cc9c7efd97e6216e2de02aa818.tar.bz2 android-node-v8-bfc823de9057b8cc9c7efd97e6216e2de02aa818.zip |
benchmark: update to use new wrk
Diffstat (limited to 'benchmark')
-rw-r--r-- | benchmark/http/chunked.js | 2 | ||||
-rw-r--r-- | benchmark/http/cluster.js | 3 | ||||
-rw-r--r-- | benchmark/http/end-vs-write-end.js | 2 | ||||
-rw-r--r-- | benchmark/http/simple.js | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/benchmark/http/chunked.js b/benchmark/http/chunked.js index bead074dc1..0589ff3166 100644 --- a/benchmark/http/chunked.js +++ b/benchmark/http/chunked.js @@ -21,7 +21,7 @@ function main(conf) { var chunk = new Buffer(conf.size); chunk.fill('8'); - var args = ['-r', 5000, '-t', 8, '-c', conf.c]; + var args = ['-d', '10s', '-t', 8, '-c', conf.c]; var server = http.createServer(function(req, res) { function send(left) { diff --git a/benchmark/http/cluster.js b/benchmark/http/cluster.js index 12bb8d5946..6391704ff7 100644 --- a/benchmark/http/cluster.js +++ b/benchmark/http/cluster.js @@ -26,8 +26,7 @@ function main(conf) { setTimeout(function() { var path = '/' + conf.type + '/' + conf.length; - var args = ['-r', '-t', 5, '-c', conf.c, '-k']; - var args = ['-r', 5000, '-t', 8, '-c', conf.c]; + var args = ['-d', '10s', '-t', 8, '-c', conf.c]; bench.http(path, args, function() { w1.destroy(); diff --git a/benchmark/http/end-vs-write-end.js b/benchmark/http/end-vs-write-end.js index 06fce6f468..973f23afa9 100644 --- a/benchmark/http/end-vs-write-end.js +++ b/benchmark/http/end-vs-write-end.js @@ -45,7 +45,7 @@ function main(conf) { } var method = conf.method === 'write' ? write : end; - var args = ['-r', 5000, '-t', 8, '-c', conf.c]; + var args = ['-d', '10s', '-t', 8, '-c', conf.c]; var server = http.createServer(function(req, res) { method(res); diff --git a/benchmark/http/simple.js b/benchmark/http/simple.js index 13af9669f4..5bff9283cb 100644 --- a/benchmark/http/simple.js +++ b/benchmark/http/simple.js @@ -15,7 +15,7 @@ function main(conf) { var server = require('../http_simple.js'); setTimeout(function() { var path = '/' + conf.type + '/' + conf.length + '/' + conf.chunks; - var args = ['-r', 5000, '-t', 8, '-c', conf.c]; + var args = ['-d', '10s', '-t', 8, '-c', conf.c]; bench.http(path, args, function() { server.close(); |