Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Display total execution time in statistics.
Move the `conc. writers` row up to the `target` row because
it's only reflecting the CLI inputs and not the actual results.
  • Loading branch information
romshark committed Nov 15, 2019
1 parent 1670b98 commit 9b4e022
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion printStatistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ func printStatistics(

dr := func(k, v string) { tbMain.Append([]string{k, v}) }
dr("target", numPrint.Sprintf("%d", target))
dr("", "")
dr("conc. writers", totalConcWriters)
dr("", "")
dr("time total", timeTotal.String())
dr("max heap", humanize.Bytes(memStats.MaxHeapAlloc))
dr("max heap obj", maxHeapObj)
dr("mem samples", memStatSamples)
Expand Down

0 comments on commit 9b4e022

Please sign in to comment.