Duration on Metrics and depenendent Reporters
This is real duration, calculated by subtracting the last Result's timestamp with the first Result's timestamp. Garbage collection and go routine scheduling delays can affect this number. Fixes #29
This commit is contained in:
@@ -19,6 +19,7 @@ func ReportText(results []Result) ([]byte, error) {
|
||||
|
||||
w := tabwriter.NewWriter(out, 0, 8, 2, '\t', tabwriter.StripEscape)
|
||||
fmt.Fprintf(w, "Requests\t[total]\t%d\n", m.Requests)
|
||||
fmt.Fprintf(w, "Duration\t[total]\t%s\n", m.Duration)
|
||||
fmt.Fprintf(w, "Latencies\t[mean, 95, 99, max]\t%s, %s, %s, %s\n",
|
||||
m.Latencies.Mean, m.Latencies.P95, m.Latencies.P99, m.Latencies.Max)
|
||||
fmt.Fprintf(w, "Bytes In\t[total, mean]\t%d, %.2f\n", m.BytesIn.Total, m.BytesIn.Mean)
|
||||
|
||||
Reference in New Issue
Block a user