benchmark: update to use new wrk

This commit is contained in:
Timothy J Fontaine 2014-02-25 11:05:54 -08:00
parent fa0ac99541
commit bfc823de90
4 changed files with 4 additions and 5 deletions

View File

@ -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) {

View File

@ -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();

View File

@ -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);

View File

@ -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();