imp: stats: run time and throughput on one line
This commit is contained in:
		
							parent
							
								
									8d618f0821
								
							
						
					
					
						commit
						cda693a94f
					
				| @ -57,8 +57,8 @@ stats opts@CliOpts{reportspec_=rspec, progstarttime_} j = do | |||||||
|   writeOutputLazyText opts $ TB.toLazyText b |   writeOutputLazyText opts $ TB.toLazyText b | ||||||
|   t <- getPOSIXTime |   t <- getPOSIXTime | ||||||
|   let dt = t - progstarttime_ |   let dt = t - progstarttime_ | ||||||
|   printf "Run time                 : %.2f s\n" (realToFrac dt :: Float) |   printf "Run time (throughput)    : %.2fs (%.0f txns/s)\n"  | ||||||
|   printf "Throughput               : %.0f txns/s\n" (fromIntegral numtxns / realToFrac dt :: Float) |     (realToFrac dt :: Float) (fromIntegral numtxns / realToFrac dt :: Float) | ||||||
| 
 | 
 | ||||||
| showLedgerStats :: Ledger -> Day -> DateSpan -> (TB.Builder, Int) | showLedgerStats :: Ledger -> Day -> DateSpan -> (TB.Builder, Int) | ||||||
| showLedgerStats l today span = | showLedgerStats l today span = | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user