diff --git a/bin/thor b/bin/thor index 9db08f2..62fb6b0 100755 --- a/bin/thor +++ b/bin/thor @@ -174,7 +174,7 @@ live.stop = function stop() { // // Metrics collection. // -var metrics = new Metrics(cli.amount * cli.args.length); +var metrics = new Metrics(cli.amount * cli.messages); // Iterate over all the urls so we can target multiple locations at once, which // is helpfull if you are testing multiple loadbalancer endpoints for example. diff --git a/metrics.js b/metrics.js index f0d5c0d..06dc2e1 100644 --- a/metrics.js +++ b/metrics.js @@ -144,6 +144,8 @@ Metrics.prototype.summary = function summary() { results.writeRow(['Total transferred', this.send.bytes(2)]); results.writeRow(['Total received', this.read.bytes(2)]); + results.writeRow(['Requests per second', (this.requests / this.timing.duration * 1000).toFixed(2) + ' /s']) + // Up next is outputting the series. var handshaking = this.handshaking , latency = this.latency