logs
This commit is contained in:
committed by
Greg Fitzgerald
parent
8b02e0f57c
commit
b9ae7d1ebb
@ -164,15 +164,12 @@ fn main() {
|
|||||||
now = Instant::now();
|
now = Instant::now();
|
||||||
let txs = tx_count - initial_tx_count;
|
let txs = tx_count - initial_tx_count;
|
||||||
initial_tx_count = tx_count;
|
initial_tx_count = tx_count;
|
||||||
println!("Transactions processed {} on {}", txs, val.events_addr);
|
println!("{}: Transactions processed {}", val.events_addr, txs);
|
||||||
let ns = duration.as_secs() * 1_000_000_000 + u64::from(duration.subsec_nanos());
|
let ns = duration.as_secs() * 1_000_000_000 + u64::from(duration.subsec_nanos());
|
||||||
let tps = (txs * 1_000_000_000) as f64 / ns as f64;
|
let tps = (txs * 1_000_000_000) as f64 / ns as f64;
|
||||||
println!("{} tps", tps);
|
println!("{}: {} tps", val.events_addr, tps);
|
||||||
let txs = tx_count - first_count;
|
let txs = tx_count - first_count;
|
||||||
println!(
|
println!("{}: Total Transactions processed {}", val.events_addr, txs);
|
||||||
"Total Transactions processed {} on {}",
|
|
||||||
txs, val.events_addr
|
|
||||||
);
|
|
||||||
if txs == transactions.len() as u64 {
|
if txs == transactions.len() as u64 {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user