@ -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) {
@ -26,8 +26,7 @@ function main(conf) {
setTimeout(function() {
var path = '/' + conf.type + '/' + conf.length;
var args = ['-r', '-t', 5, '-c', conf.c, '-k'];
bench.http(path, args, function() {
w1.destroy();
@ -45,7 +45,7 @@ function main(conf) {
}
var method = conf.method === 'write' ? write : end;
method(res);
@ -15,7 +15,7 @@ function main(conf) {
var server = require('../http_simple.js');
var path = '/' + conf.type + '/' + conf.length + '/' + conf.chunks;
server.close();