Skip to content

Commit

Permalink
add rpc_get_keys_paged bench
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed Nov 20, 2023
1 parent 5043d04 commit 64db2e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions substrate/utils/frame/remote-externalities/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1606,6 +1606,10 @@ mod remote_tests {

// scrape all
let prefix = StorageKey(vec![]);
// original
let start = Instant::now();
builder.rpc_get_keys_paged(prefix.clone(), at).await.unwrap();
log::error!("rpc_get_keys_paged: {:?}", start.elapsed());
// 16*32 chunks
let start = Instant::now();
let p4c8 = builder.rpc_get_keys_parallel(prefix.clone(), at, 4, 8).await.unwrap();
Expand Down

0 comments on commit 64db2e5

Please sign in to comment.