Add print to bench-tps about blockhash time (#6272)

This commit is contained in:
sakridge 2019-10-08 11:34:10 -07:00 committed by GitHub
parent 788296047a
commit 6123d2f9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -173,6 +173,10 @@ where
sleep(Duration::from_millis(100));
continue;
}
info!(
"Took {} ms for new blockhash",
duration_as_ms(&blockhash_time.elapsed())
);
blockhash_time = Instant::now();
let balance = client.get_balance(&id.pubkey()).unwrap_or(0);
metrics_submit_lamport_balance(balance);