From 46ba7867bf7ef26a5b22f66f6fa72a000473a02b Mon Sep 17 00:00:00 2001 From: nanocryk <6422796+nanocryk@users.noreply.github.com> Date: Wed, 4 Dec 2024 10:59:15 +0100 Subject: [PATCH] fix bench --- pallets/author-noting/src/benchmarks.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pallets/author-noting/src/benchmarks.rs b/pallets/author-noting/src/benchmarks.rs index d8d8f9249..27fb88e7f 100644 --- a/pallets/author-noting/src/benchmarks.rs +++ b/pallets/author-noting/src/benchmarks.rs @@ -56,13 +56,13 @@ mod test_sproof { benchmarks! { set_latest_author_data { // Depend on the number of parachains registered - let x in 1..100; + let x in 0..100; let mut container_chains = vec![]; let data = if TypeId::of::<<::RelayOrPara as RelayOrPara>::InherentArg>() == TypeId::of::() { let mut sproof_builder = test_sproof::ParaHeaderSproofBuilder::default(); - for para_id in 1..x { + for para_id in 0..x { let para_id = para_id.into(); container_chains.push(para_id); // Mock assigned authors for this para id @@ -83,7 +83,7 @@ benchmarks! { relay_storage_proof: proof, }; - for para_id in 1..x { + for para_id in 0..x { let para_id = para_id.into(); let author: T::AccountId = account("account id", 0u32, 0u32); @@ -93,7 +93,7 @@ benchmarks! { *(Box::new(arg) as Box).downcast().unwrap() } else if TypeId::of::<<::RelayOrPara as RelayOrPara>::InherentArg>() == TypeId::of::<()>() { - for para_id in 1..x { + for para_id in 0..x { let slot: crate::InherentType = 13u64.into(); let header = sp_runtime::generic::Header:: { parent_hash: Default::default(),