imp: stats: run time and throughput on one line

This commit is contained in:
Simon Michael 2021-11-26 07:11:56 -10:00
parent 8d618f0821
commit cda693a94f

View File

@ -57,8 +57,8 @@ stats opts@CliOpts{reportspec_=rspec, progstarttime_} j = do
writeOutputLazyText opts $ TB.toLazyText b
t <- getPOSIXTime
let dt = t - progstarttime_
printf "Run time : %.2f s\n" (realToFrac dt :: Float)
printf "Throughput : %.0f txns/s\n" (fromIntegral numtxns / realToFrac dt :: Float)
printf "Run time (throughput) : %.2fs (%.0f txns/s)\n"
(realToFrac dt :: Float) (fromIntegral numtxns / realToFrac dt :: Float)
showLedgerStats :: Ledger -> Day -> DateSpan -> (TB.Builder, Int)
showLedgerStats l today span =