Full block import benchmark (#5745)

This commit is contained in:
Nikolay Volf authored and GitHub committed 2020-04-23 12:55:57 +02:00
1 parent 624e95b1af
commit 1a41b88430
5 files changed
+49 -13

No files matched your search

@@ -117,6 +117,7 @@ impl BatchVerifier {
use std::sync::{Mutex, Condvar};
let pending = std::mem::replace(&mut self.pending_tasks, vec![]);
let started = std::time::Instant::now();
log::trace!(
target: "runtime",
@@ -158,6 +159,12 @@ impl BatchVerifier {
let _ = cond_var.wait(mtx).expect("Waiting can only fail when the mutex waited on is poisoned; qed");
}
log::trace!(
target: "runtime",
"Finalization of batch verification took {} ms",
started.elapsed().as_millis(),
);
!self.invalid.swap(false, AtomicOrdering::Relaxed)
}
}