Skip to content

add new index in metrics result and change the parameters passed in Metrics constructor #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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