Skip to content

Commit

Permalink
Pretty print server benchmark results to console
Browse files Browse the repository at this point in the history
  • Loading branch information
mulbc committed Jun 29, 2020
1 parent 2e10de8 commit b741b2f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,13 @@ func scheduleTests(config common.Testconf) {
log.WithField("test", test.Name).Infof("GRAFANA: ?from=%d&to=%d", startTime.UnixNano()/int64(1000000), stopTime.UnixNano()/int64(1000000))
benchResult := sumBenchmarkResults(benchResults)
benchResult.Duration = stopTime.Sub(startTime)
log.WithField("test", test.Name).Infof("PERF RESULTS: %+v", benchResult)
log.WithField("test", test.Name).
WithField("Total Operations", benchResult.Operations).
WithField("Total Bytes", benchResult.Bytes).
WithField("Average BW in Byte/s", benchResult.Bandwidth).
WithField("Average latency in ms", benchResult.LatencyAvg).
WithField("Test runtime on server", benchResult.Duration).
Infof("PERF RESULTS")
}
log.Info("All performance tests finished")
for {
Expand Down

0 comments on commit b741b2f

Please sign in to comment.