Add db_ledger benchmarks (#1875)

* Add db_ledger benchmarks

* ignore benches in CI, due to timeouts
This commit is contained in:
carllin
2018-11-23 06:12:43 -08:00
committed by GitHub
parent ca39486d06
commit 942256a647
4 changed files with 231 additions and 8 deletions

View File

@ -922,7 +922,7 @@ fn test_leader_to_validator_transition() {
// Leader could have executed transactions in bank but not recorded them, so
// we only have an upper bound on the balance
if let Ok(bal) = leader_client.poll_get_balance(&bob_pubkey) {
assert!(bal <= i - 1);
assert!(bal <= i);
}
// Check the ledger to make sure it's the right height, we should've
@ -1060,7 +1060,7 @@ fn test_leader_validator_basic() {
// Leader could have executed transactions in bank but not recorded them, so
// we only have an upper bound on the balance
if let Ok(bal) = leader_client.poll_get_balance(&bob_pubkey) {
assert!(bal <= i - 1);
assert!(bal <= i);
}
// Shut down