Browse Source

benchmark: update to use new wrk

v0.11.12-release
Timothy J Fontaine 11 years ago
parent
commit
bfc823de90
  1. 2
      benchmark/http/chunked.js
  2. 3
      benchmark/http/cluster.js
  3. 2
      benchmark/http/end-vs-write-end.js
  4. 2
      benchmark/http/simple.js

2
benchmark/http/chunked.js

@ -21,7 +21,7 @@ function main(conf) {
var chunk = new Buffer(conf.size); var chunk = new Buffer(conf.size);
chunk.fill('8'); 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) { var server = http.createServer(function(req, res) {
function send(left) { function send(left) {

3
benchmark/http/cluster.js

@ -26,8 +26,7 @@ function main(conf) {
setTimeout(function() { setTimeout(function() {
var path = '/' + conf.type + '/' + conf.length; var path = '/' + conf.type + '/' + conf.length;
var args = ['-r', '-t', 5, '-c', conf.c, '-k']; var args = ['-d', '10s', '-t', 8, '-c', conf.c];
var args = ['-r', 5000, '-t', 8, '-c', conf.c];
bench.http(path, args, function() { bench.http(path, args, function() {
w1.destroy(); w1.destroy();

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

@ -45,7 +45,7 @@ function main(conf) {
} }
var method = conf.method === 'write' ? write : end; 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) { var server = http.createServer(function(req, res) {
method(res); method(res);

2
benchmark/http/simple.js

@ -15,7 +15,7 @@ function main(conf) {
var server = require('../http_simple.js'); var server = require('../http_simple.js');
setTimeout(function() { setTimeout(function() {
var path = '/' + conf.type + '/' + conf.length + '/' + conf.chunks; 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() { bench.http(path, args, function() {
server.close(); server.close();

Loading…
Cancel
Save