You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
debug!(target:"trie::parallel_state_root","test info: total elapsed in account node {:?}", start.elapsed());
185
-
debug!(target:"trie::parallel_state_root","test info: hash elapsed in branch node {:?}us",hash_elapsed_branch);
186
-
debug!(target:"trie::parallel_state_root","test info: hash elapsed in leaf node {:?}us",hash_elapsed_leaf);
187
-
debug!(target:"trie::parallel_state_root","test info: hash elapsed in missing node {:?}us",hash_elapsed_miss);
187
+
debug!(target:"trie::parallel_state_root","test info: total time elapsed {:?}", start.elapsed());
188
+
debug!(target:"trie::parallel_state_root","test info: time elapsed in missing leaves {:?}us",hash_elapsed_miss);
189
+
// debug!(target: "trie::parallel_state_root", "test info: time elapsed in hash branch node {:?}us", hash_elapsed_branch);
190
+
// debug!(target: "trie::parallel_state_root", "test info: time elapsed in hash leaf node {:?}us", hash_elapsed_leaf);
188
191
189
192
let start = std::time::Instant::now();
190
193
let root = hash_builder.root();
191
-
debug!(target:"trie::parallel_state_root","test info: elapsed in hash builder root {:?}", start.elapsed());
194
+
debug!(target:"trie::parallel_state_root","test info: total time elapsed in hash builder {:?}us", start.elapsed().as_micros()+hash_elapsed_branch+hash_elapsed_leaf);
192
195
193
196
trie_updates.finalize(
194
197
account_node_iter.walker,
@@ -240,11 +243,13 @@ impl From<ParallelStateRootError> for ProviderError {
240
243
241
244
#[cfg(test)]
242
245
mod tests {
243
-
usesuper::*;
244
246
use rand::Rng;
245
-
use reth_primitives::{keccak256,Account,Address,StorageEntry,U256};
246
-
use reth_provider::{test_utils::create_test_provider_factory,HashingWriter};
247
-
use reth_trie::{test_utils,HashedStorage};
247
+
248
+
use reth_primitives::{Account,Address, keccak256,StorageEntry,U256};
249
+
use reth_provider::{HashingWriter, test_utils::create_test_provider_factory};
0 commit comments