From bfc823de9057b8cc9c7efd97e6216e2de02aa818 Mon Sep 17 00:00:00 2001 From: Timothy J Fontaine Date: Tue, 25 Feb 2014 11:05:54 -0800 Subject: [PATCH] benchmark: update to use new wrk --- benchmark/http/chunked.js | 2 +- benchmark/http/cluster.js | 3 +-- benchmark/http/end-vs-write-end.js | 2 +- 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();