Skip to content

Commit bfc823d

Browse files
committed
benchmark: update to use new wrk
1 parent fa0ac99 commit bfc823d

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

benchmark/http/chunked.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function main(conf) {
2121
var chunk = new Buffer(conf.size);
2222
chunk.fill('8');
2323

24-
var args = ['-r', 5000, '-t', 8, '-c', conf.c];
24+
var args = ['-d', '10s', '-t', 8, '-c', conf.c];
2525

2626
var server = http.createServer(function(req, res) {
2727
function send(left) {

benchmark/http/cluster.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ function main(conf) {
2626

2727
setTimeout(function() {
2828
var path = '/' + conf.type + '/' + conf.length;
29-
var args = ['-r', '-t', 5, '-c', conf.c, '-k'];
30-
var args = ['-r', 5000, '-t', 8, '-c', conf.c];
29+
var args = ['-d', '10s', '-t', 8, '-c', conf.c];
3130

3231
bench.http(path, args, function() {
3332
w1.destroy();

benchmark/http/end-vs-write-end.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function main(conf) {
4545
}
4646

4747
var method = conf.method === 'write' ? write : end;
48-
var args = ['-r', 5000, '-t', 8, '-c', conf.c];
48+
var args = ['-d', '10s', '-t', 8, '-c', conf.c];
4949

5050
var server = http.createServer(function(req, res) {
5151
method(res);

benchmark/http/simple.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function main(conf) {
1515
var server = require('../http_simple.js');
1616
setTimeout(function() {
1717
var path = '/' + conf.type + '/' + conf.length + '/' + conf.chunks;
18-
var args = ['-r', 5000, '-t', 8, '-c', conf.c];
18+
var args = ['-d', '10s', '-t', 8, '-c', conf.c];
1919

2020
bench.http(path, args, function() {
2121
server.close();

0 commit comments

Comments
 (0)