From 6f3abd6b8665546511e3809e210a779eef051d00 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 16:09:16 -0500 Subject: [PATCH] Benchmarking: Calculate weights for 3ade16addd2ef41a7a4968e096bfba0faa6405fe (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [ci] calculate weights * change(communities-manager): test extrinsic weights * change(pallet-communities): test extrinsic weights * fix(pallet-communities-manager): restore q counter in weights as u32 --------- Co-authored-by: pandres95 <2502577+pandres95@users.noreply.github.com> Co-authored-by: Pablo Andrés Dorado Suárez --- pallets/communities-manager/src/lib.rs | 2 +- pallets/communities-manager/src/tests.rs | 4 +- pallets/communities-manager/src/weights.rs | 42 ++++----- pallets/communities/src/weights.rs | 88 +++++++++---------- .../src/weights/pallet_communities_manager.rs | 22 ++--- runtime/kreivo/src/weights/pallet_payments.rs | 38 ++++---- 6 files changed, 98 insertions(+), 98 deletions(-) diff --git a/pallets/communities-manager/src/lib.rs b/pallets/communities-manager/src/lib.rs index 69b59a46..2e48d0e0 100644 --- a/pallets/communities-manager/src/lib.rs +++ b/pallets/communities-manager/src/lib.rs @@ -189,7 +189,7 @@ pub mod pallet { Ok(()) } - #[pallet::weight(::WeightInfo::create_memberships(*amount))] + #[pallet::weight(::WeightInfo::create_memberships((*amount).into()))] #[pallet::call_index(1)] pub fn create_memberships( origin: OriginFor, diff --git a/pallets/communities-manager/src/tests.rs b/pallets/communities-manager/src/tests.rs index 100c60b7..faf8e0ed 100644 --- a/pallets/communities-manager/src/tests.rs +++ b/pallets/communities-manager/src/tests.rs @@ -22,8 +22,8 @@ fn weights() { let calls = vec![ ("register", SubstrateWeight::::register()), ( - "create_memberships(100)", - SubstrateWeight::::create_memberships(100), + "create_memberships(1024)", + SubstrateWeight::::create_memberships(1024), ), ]; diff --git a/pallets/communities-manager/src/weights.rs b/pallets/communities-manager/src/weights.rs index 34e10052..0ea54cfd 100644 --- a/pallets/communities-manager/src/weights.rs +++ b/pallets/communities-manager/src/weights.rs @@ -8,7 +8,7 @@ use core::marker::PhantomData; /// Weight functions needed for pallet_communities. pub trait WeightInfo { fn register() -> Weight; - fn create_memberships(q: u16, ) -> Weight; + fn create_memberships(q: u32, ) -> Weight; } /// Weights for pallet_communities using the Substrate node and recommended hardware. @@ -16,6 +16,8 @@ pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { /// Storage: `Communities::Info` (r:1 w:1) /// Proof: `Communities::Info` (`max_values`: None, `max_size`: Some(19), added: 2494, mode: `MaxEncodedLen`) + /// Storage: `Communities::CommunityIdFor` (r:1 w:1) + /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `CommunityMemberships::Collection` (r:1 w:1) @@ -28,8 +30,6 @@ impl WeightInfo for SubstrateWeight { /// Proof: `KreivoCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::MemberCount` (r:1 w:1) /// Proof: `KreivoCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) - /// Storage: `Communities::CommunityIdFor` (r:0 w:1) - /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IndexToId` (r:0 w:1) /// Proof: `KreivoCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IdToIndex` (r:0 w:1) @@ -46,10 +46,10 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `278` // Estimated: `132561` - // Minimum execution time: 115_705_000 picoseconds. - Weight::from_parts(140_658_000, 0) + // Minimum execution time: 172_021_000 picoseconds. + Weight::from_parts(181_851_000, 0) .saturating_add(Weight::from_parts(0, 132561)) - .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(14)) } /// Storage: `CommunityMemberships::Item` (r:1023 w:1023) @@ -65,15 +65,15 @@ impl WeightInfo for SubstrateWeight { /// Storage: `CommunityMemberships::ItemPriceOf` (r:0 w:1023) /// Proof: `CommunityMemberships::ItemPriceOf` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`) /// The range of component `q` is `[1, 1024]`. - fn create_memberships(q: u16, ) -> Weight { + fn create_memberships(q: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `368` // Estimated: `3547 + q * (3334 ±0)` - // Minimum execution time: 87_026_000 picoseconds. - Weight::from_parts(110_670_000, 0) + // Minimum execution time: 125_757_000 picoseconds. + Weight::from_parts(127_470_000, 0) .saturating_add(Weight::from_parts(0, 3547)) - // Standard Error: 331_618 - .saturating_add(Weight::from_parts(83_810_638, 0).saturating_mul(q.into())) + // Standard Error: 322_917 + .saturating_add(Weight::from_parts(87_141_783, 0).saturating_mul(q.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(q.into()))) .saturating_add(T::DbWeight::get().writes(1)) @@ -85,6 +85,8 @@ impl WeightInfo for SubstrateWeight { impl WeightInfo for () { /// Storage: `Communities::Info` (r:1 w:1) /// Proof: `Communities::Info` (`max_values`: None, `max_size`: Some(19), added: 2494, mode: `MaxEncodedLen`) + /// Storage: `Communities::CommunityIdFor` (r:1 w:1) + /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `CommunityMemberships::Collection` (r:1 w:1) @@ -97,8 +99,6 @@ impl WeightInfo for () { /// Proof: `KreivoCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::MemberCount` (r:1 w:1) /// Proof: `KreivoCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) - /// Storage: `Communities::CommunityIdFor` (r:0 w:1) - /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IndexToId` (r:0 w:1) /// Proof: `KreivoCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IdToIndex` (r:0 w:1) @@ -115,10 +115,10 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `278` // Estimated: `132561` - // Minimum execution time: 115_705_000 picoseconds. - Weight::from_parts(140_658_000, 0) + // Minimum execution time: 172_021_000 picoseconds. + Weight::from_parts(181_851_000, 0) .saturating_add(Weight::from_parts(0, 132561)) - .saturating_add(RocksDbWeight::get().reads(7)) + .saturating_add(RocksDbWeight::get().reads(8)) .saturating_add(RocksDbWeight::get().writes(14)) } /// Storage: `CommunityMemberships::Item` (r:1023 w:1023) @@ -134,15 +134,15 @@ impl WeightInfo for () { /// Storage: `CommunityMemberships::ItemPriceOf` (r:0 w:1023) /// Proof: `CommunityMemberships::ItemPriceOf` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`) /// The range of component `q` is `[1, 1024]`. - fn create_memberships(q: u16, ) -> Weight { + fn create_memberships(q: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `368` // Estimated: `3547 + q * (3334 ±0)` - // Minimum execution time: 87_026_000 picoseconds. - Weight::from_parts(110_670_000, 0) + // Minimum execution time: 125_757_000 picoseconds. + Weight::from_parts(127_470_000, 0) .saturating_add(Weight::from_parts(0, 3547)) - // Standard Error: 331_618 - .saturating_add(Weight::from_parts(83_810_638, 0).saturating_mul(q.into())) + // Standard Error: 322_917 + .saturating_add(Weight::from_parts(87_141_783, 0).saturating_mul(q.into())) .saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().reads((2_u64).saturating_mul(q.into()))) .saturating_add(RocksDbWeight::get().writes(1)) diff --git a/pallets/communities/src/weights.rs b/pallets/communities/src/weights.rs index 083f516c..8dbb4f9e 100644 --- a/pallets/communities/src/weights.rs +++ b/pallets/communities/src/weights.rs @@ -59,8 +59,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `56` // Estimated: `3593` - // Minimum execution time: 58_161_000 picoseconds. - Weight::from_parts(69_157_000, 0) + // Minimum execution time: 39_254_000 picoseconds. + Weight::from_parts(44_989_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(3)) @@ -73,8 +73,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `122` // Estimated: `4087` - // Minimum execution time: 57_556_000 picoseconds. - Weight::from_parts(59_165_000, 0) + // Minimum execution time: 39_264_000 picoseconds. + Weight::from_parts(59_388_000, 0) .saturating_add(Weight::from_parts(0, 4087)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -87,8 +87,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3484` - // Minimum execution time: 33_456_000 picoseconds. - Weight::from_parts(37_220_000, 0) + // Minimum execution time: 24_894_000 picoseconds. + Weight::from_parts(36_775_000, 0) .saturating_add(Weight::from_parts(0, 3484)) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(1)) @@ -119,8 +119,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `880` // Estimated: `9846` - // Minimum execution time: 346_154_000 picoseconds. - Weight::from_parts(389_196_000, 0) + // Minimum execution time: 245_334_000 picoseconds. + Weight::from_parts(360_487_000, 0) .saturating_add(Weight::from_parts(0, 9846)) .saturating_add(T::DbWeight::get().reads(13)) .saturating_add(T::DbWeight::get().writes(13)) @@ -149,8 +149,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1006` // Estimated: `12798` - // Minimum execution time: 372_760_000 picoseconds. - Weight::from_parts(383_094_000, 0) + // Minimum execution time: 317_361_000 picoseconds. + Weight::from_parts(465_610_000, 0) .saturating_add(Weight::from_parts(0, 12798)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(10)) @@ -165,8 +165,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `717` // Estimated: `6894` - // Minimum execution time: 138_465_000 picoseconds. - Weight::from_parts(216_155_000, 0) + // Minimum execution time: 134_868_000 picoseconds. + Weight::from_parts(158_292_000, 0) .saturating_add(Weight::from_parts(0, 6894)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -181,8 +181,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `755` // Estimated: `6894` - // Minimum execution time: 178_550_000 picoseconds. - Weight::from_parts(224_353_000, 0) + // Minimum execution time: 198_275_000 picoseconds. + Weight::from_parts(202_790_000, 0) .saturating_add(Weight::from_parts(0, 6894)) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) @@ -209,8 +209,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `3035` // Estimated: `6148` - // Minimum execution time: 374_166_000 picoseconds. - Weight::from_parts(521_406_000, 0) + // Minimum execution time: 393_947_000 picoseconds. + Weight::from_parts(476_186_000, 0) .saturating_add(Weight::from_parts(0, 6148)) .saturating_add(T::DbWeight::get().reads(10)) .saturating_add(T::DbWeight::get().writes(6)) @@ -229,8 +229,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `2898` // Estimated: `4365` - // Minimum execution time: 186_847_000 picoseconds. - Weight::from_parts(249_529_000, 0) + // Minimum execution time: 178_506_000 picoseconds. + Weight::from_parts(241_482_000, 0) .saturating_add(Weight::from_parts(0, 4365)) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(2)) @@ -249,8 +249,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `1082` // Estimated: `8123` - // Minimum execution time: 204_012_000 picoseconds. - Weight::from_parts(219_951_000, 0) + // Minimum execution time: 164_095_000 picoseconds. + Weight::from_parts(219_358_000, 0) .saturating_add(Weight::from_parts(0, 8123)) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(3)) @@ -261,8 +261,8 @@ impl WeightInfo for SubstrateWeight { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3484` - // Minimum execution time: 48_041_000 picoseconds. - Weight::from_parts(51_107_000, 0) + // Minimum execution time: 33_857_000 picoseconds. + Weight::from_parts(47_890_000, 0) .saturating_add(Weight::from_parts(0, 3484)) .saturating_add(T::DbWeight::get().reads(1)) } @@ -280,8 +280,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `56` // Estimated: `3593` - // Minimum execution time: 58_161_000 picoseconds. - Weight::from_parts(69_157_000, 0) + // Minimum execution time: 39_254_000 picoseconds. + Weight::from_parts(44_989_000, 0) .saturating_add(Weight::from_parts(0, 3593)) .saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().writes(3)) @@ -294,8 +294,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `122` // Estimated: `4087` - // Minimum execution time: 57_556_000 picoseconds. - Weight::from_parts(59_165_000, 0) + // Minimum execution time: 39_264_000 picoseconds. + Weight::from_parts(59_388_000, 0) .saturating_add(Weight::from_parts(0, 4087)) .saturating_add(RocksDbWeight::get().reads(2)) .saturating_add(RocksDbWeight::get().writes(2)) @@ -308,8 +308,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3484` - // Minimum execution time: 33_456_000 picoseconds. - Weight::from_parts(37_220_000, 0) + // Minimum execution time: 24_894_000 picoseconds. + Weight::from_parts(36_775_000, 0) .saturating_add(Weight::from_parts(0, 3484)) .saturating_add(RocksDbWeight::get().reads(1)) .saturating_add(RocksDbWeight::get().writes(1)) @@ -340,8 +340,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `880` // Estimated: `9846` - // Minimum execution time: 346_154_000 picoseconds. - Weight::from_parts(389_196_000, 0) + // Minimum execution time: 245_334_000 picoseconds. + Weight::from_parts(360_487_000, 0) .saturating_add(Weight::from_parts(0, 9846)) .saturating_add(RocksDbWeight::get().reads(13)) .saturating_add(RocksDbWeight::get().writes(13)) @@ -370,8 +370,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1006` // Estimated: `12798` - // Minimum execution time: 372_760_000 picoseconds. - Weight::from_parts(383_094_000, 0) + // Minimum execution time: 317_361_000 picoseconds. + Weight::from_parts(465_610_000, 0) .saturating_add(Weight::from_parts(0, 12798)) .saturating_add(RocksDbWeight::get().reads(10)) .saturating_add(RocksDbWeight::get().writes(10)) @@ -386,8 +386,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `717` // Estimated: `6894` - // Minimum execution time: 138_465_000 picoseconds. - Weight::from_parts(216_155_000, 0) + // Minimum execution time: 134_868_000 picoseconds. + Weight::from_parts(158_292_000, 0) .saturating_add(Weight::from_parts(0, 6894)) .saturating_add(RocksDbWeight::get().reads(4)) .saturating_add(RocksDbWeight::get().writes(3)) @@ -402,8 +402,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `755` // Estimated: `6894` - // Minimum execution time: 178_550_000 picoseconds. - Weight::from_parts(224_353_000, 0) + // Minimum execution time: 198_275_000 picoseconds. + Weight::from_parts(202_790_000, 0) .saturating_add(Weight::from_parts(0, 6894)) .saturating_add(RocksDbWeight::get().reads(4)) .saturating_add(RocksDbWeight::get().writes(3)) @@ -430,8 +430,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `3035` // Estimated: `6148` - // Minimum execution time: 374_166_000 picoseconds. - Weight::from_parts(521_406_000, 0) + // Minimum execution time: 393_947_000 picoseconds. + Weight::from_parts(476_186_000, 0) .saturating_add(Weight::from_parts(0, 6148)) .saturating_add(RocksDbWeight::get().reads(10)) .saturating_add(RocksDbWeight::get().writes(6)) @@ -450,8 +450,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `2898` // Estimated: `4365` - // Minimum execution time: 186_847_000 picoseconds. - Weight::from_parts(249_529_000, 0) + // Minimum execution time: 178_506_000 picoseconds. + Weight::from_parts(241_482_000, 0) .saturating_add(Weight::from_parts(0, 4365)) .saturating_add(RocksDbWeight::get().reads(5)) .saturating_add(RocksDbWeight::get().writes(2)) @@ -470,8 +470,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `1082` // Estimated: `8123` - // Minimum execution time: 204_012_000 picoseconds. - Weight::from_parts(219_951_000, 0) + // Minimum execution time: 164_095_000 picoseconds. + Weight::from_parts(219_358_000, 0) .saturating_add(Weight::from_parts(0, 8123)) .saturating_add(RocksDbWeight::get().reads(6)) .saturating_add(RocksDbWeight::get().writes(3)) @@ -482,8 +482,8 @@ impl WeightInfo for () { // Proof Size summary in bytes: // Measured: `115` // Estimated: `3484` - // Minimum execution time: 48_041_000 picoseconds. - Weight::from_parts(51_107_000, 0) + // Minimum execution time: 33_857_000 picoseconds. + Weight::from_parts(47_890_000, 0) .saturating_add(Weight::from_parts(0, 3484)) .saturating_add(RocksDbWeight::get().reads(1)) } diff --git a/runtime/kreivo/src/weights/pallet_communities_manager.rs b/runtime/kreivo/src/weights/pallet_communities_manager.rs index ff8775bc..c684d75d 100644 --- a/runtime/kreivo/src/weights/pallet_communities_manager.rs +++ b/runtime/kreivo/src/weights/pallet_communities_manager.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_communities_manager` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-05-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `virto-builder`, CPU: `Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("kreivo-local")`, DB CACHE: 1024 @@ -37,6 +37,8 @@ pub struct WeightInfo(PhantomData); impl pallet_communities_manager::WeightInfo for WeightInfo { /// Storage: `Communities::Info` (r:1 w:1) /// Proof: `Communities::Info` (`max_values`: None, `max_size`: Some(19), added: 2494, mode: `MaxEncodedLen`) + /// Storage: `Communities::CommunityIdFor` (r:1 w:1) + /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `System::Account` (r:1 w:1) /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`) /// Storage: `CommunityMemberships::Collection` (r:1 w:1) @@ -49,8 +51,6 @@ impl pallet_communities_manager::WeightInfo for WeightI /// Proof: `KreivoCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::MemberCount` (r:1 w:1) /// Proof: `KreivoCollective::MemberCount` (`max_values`: None, `max_size`: Some(14), added: 2489, mode: `MaxEncodedLen`) - /// Storage: `Communities::CommunityIdFor` (r:0 w:1) - /// Proof: `Communities::CommunityIdFor` (`max_values`: None, `max_size`: Some(622), added: 3097, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IndexToId` (r:0 w:1) /// Proof: `KreivoCollective::IndexToId` (`max_values`: None, `max_size`: Some(54), added: 2529, mode: `MaxEncodedLen`) /// Storage: `KreivoCollective::IdToIndex` (r:0 w:1) @@ -67,10 +67,10 @@ impl pallet_communities_manager::WeightInfo for WeightI // Proof Size summary in bytes: // Measured: `278` // Estimated: `132561` - // Minimum execution time: 115_705_000 picoseconds. - Weight::from_parts(140_658_000, 0) + // Minimum execution time: 172_021_000 picoseconds. + Weight::from_parts(181_851_000, 0) .saturating_add(Weight::from_parts(0, 132561)) - .saturating_add(T::DbWeight::get().reads(7)) + .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(14)) } /// Storage: `CommunityMemberships::Item` (r:1023 w:1023) @@ -86,15 +86,15 @@ impl pallet_communities_manager::WeightInfo for WeightI /// Storage: `CommunityMemberships::ItemPriceOf` (r:0 w:1023) /// Proof: `CommunityMemberships::ItemPriceOf` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`) /// The range of component `q` is `[1, 1024]`. - fn create_memberships(q: u16, ) -> Weight { + fn create_memberships(q: u32, ) -> Weight { // Proof Size summary in bytes: // Measured: `368` // Estimated: `3547 + q * (3334 ±0)` - // Minimum execution time: 87_026_000 picoseconds. - Weight::from_parts(110_670_000, 0) + // Minimum execution time: 125_757_000 picoseconds. + Weight::from_parts(127_470_000, 0) .saturating_add(Weight::from_parts(0, 3547)) - // Standard Error: 331_618 - .saturating_add(Weight::from_parts(83_810_638, 0).saturating_mul(q.into())) + // Standard Error: 322_917 + .saturating_add(Weight::from_parts(87_141_783, 0).saturating_mul(q.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(q.into()))) .saturating_add(T::DbWeight::get().writes(1)) diff --git a/runtime/kreivo/src/weights/pallet_payments.rs b/runtime/kreivo/src/weights/pallet_payments.rs index 87f18306..b5a2abc3 100644 --- a/runtime/kreivo/src/weights/pallet_payments.rs +++ b/runtime/kreivo/src/weights/pallet_payments.rs @@ -2,7 +2,7 @@ //! Autogenerated weights for `pallet_payments` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2024-05-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! DATE: 2024-05-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `virto-builder`, CPU: `Intel(R) Xeon(R) Silver 4216 CPU @ 2.10GHz` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("kreivo-local")`, DB CACHE: 1024 @@ -50,11 +50,11 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `544` // Estimated: `8518` - // Minimum execution time: 156_381_000 picoseconds. - Weight::from_parts(218_271_051, 0) + // Minimum execution time: 165_087_000 picoseconds. + Weight::from_parts(251_421_235, 0) .saturating_add(Weight::from_parts(0, 8518)) - // Standard Error: 115_804 - .saturating_add(Weight::from_parts(121_389, 0).saturating_mul(q.into())) + // Standard Error: 57_252 + .saturating_add(Weight::from_parts(251_220, 0).saturating_mul(q.into())) .saturating_add(T::DbWeight::get().reads(6)) .saturating_add(T::DbWeight::get().writes(6)) } @@ -72,8 +72,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1153` // Estimated: `8859` - // Minimum execution time: 258_423_000 picoseconds. - Weight::from_parts(330_368_000, 0) + // Minimum execution time: 305_791_000 picoseconds. + Weight::from_parts(434_793_000, 0) .saturating_add(Weight::from_parts(0, 8859)) .saturating_add(T::DbWeight::get().reads(8)) .saturating_add(T::DbWeight::get().writes(8)) @@ -92,8 +92,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1120` // Estimated: `8518` - // Minimum execution time: 206_862_000 picoseconds. - Weight::from_parts(337_983_000, 0) + // Minimum execution time: 218_025_000 picoseconds. + Weight::from_parts(290_552_000, 0) .saturating_add(Weight::from_parts(0, 8518)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(7)) @@ -108,8 +108,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `377` // Estimated: `159279` - // Minimum execution time: 59_757_000 picoseconds. - Weight::from_parts(82_203_000, 0) + // Minimum execution time: 90_236_000 picoseconds. + Weight::from_parts(112_756_000, 0) .saturating_add(Weight::from_parts(0, 159279)) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) @@ -132,8 +132,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1221` // Estimated: `159279` - // Minimum execution time: 147_781_000 picoseconds. - Weight::from_parts(215_135_000, 0) + // Minimum execution time: 189_734_000 picoseconds. + Weight::from_parts(243_481_000, 0) .saturating_add(Weight::from_parts(0, 159279)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(6)) @@ -154,8 +154,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1223` // Estimated: `8859` - // Minimum execution time: 551_169_000 picoseconds. - Weight::from_parts(653_998_000, 0) + // Minimum execution time: 369_655_000 picoseconds. + Weight::from_parts(514_167_000, 0) .saturating_add(Weight::from_parts(0, 8859)) .saturating_add(T::DbWeight::get().reads(9)) .saturating_add(T::DbWeight::get().writes(8)) @@ -170,8 +170,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `391` // Estimated: `8518` - // Minimum execution time: 56_541_000 picoseconds. - Weight::from_parts(71_556_000, 0) + // Minimum execution time: 42_486_000 picoseconds. + Weight::from_parts(53_927_000, 0) .saturating_add(Weight::from_parts(0, 8518)) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(2)) @@ -190,8 +190,8 @@ impl pallet_payments::WeightInfo for WeightInfo { // Proof Size summary in bytes: // Measured: `1014` // Estimated: `8859` - // Minimum execution time: 362_624_000 picoseconds. - Weight::from_parts(400_237_000, 0) + // Minimum execution time: 237_509_000 picoseconds. + Weight::from_parts(373_059_000, 0) .saturating_add(Weight::from_parts(0, 8859)) .saturating_add(T::DbWeight::get().reads(7)) .saturating_add(T::DbWeight::get().writes(6))