Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/thor
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down