From 64db2e5dcf39e6922b47432514fe8a17e8d07181 Mon Sep 17 00:00:00 2001 From: Liam Aharon Date: Mon, 20 Nov 2023 12:47:59 +0400 Subject: [PATCH] add rpc_get_keys_paged bench --- substrate/utils/frame/remote-externalities/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/substrate/utils/frame/remote-externalities/src/lib.rs b/substrate/utils/frame/remote-externalities/src/lib.rs index 7b9fe4d8ed9e..17d4df2db886 100644 --- a/substrate/utils/frame/remote-externalities/src/lib.rs +++ b/substrate/utils/frame/remote-externalities/src/lib.rs @@ -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();