diff --git a/parachains/runtimes/collectives/collectives-polkadot/src/lib.rs b/parachains/runtimes/collectives/collectives-polkadot/src/lib.rs index 3d97557f0f..018b448410 100644 --- a/parachains/runtimes/collectives/collectives-polkadot/src/lib.rs +++ b/parachains/runtimes/collectives/collectives-polkadot/src/lib.rs @@ -446,7 +446,7 @@ impl pallet_collective::Config for Runtime { type MaxProposals = ConstU32; type MaxMembers = ConstU32; type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote; - type WeightInfo = pallet_collective::weights::SubstrateWeight; + type WeightInfo = weights::pallet_collective::WeightInfo; } pub const MAX_FOUNDERS: u32 = 10; @@ -485,7 +485,7 @@ impl pallet_alliance::Config for Runtime { type MaxAnnouncementsCount = ConstU32<100>; type MaxMembersCount = ConstU32; type AllyDeposit = AllyDeposit; - type WeightInfo = pallet_alliance::weights::SubstrateWeight; + type WeightInfo = weights::pallet_alliance::WeightInfo; } // Create the runtime by composing the FRAME pallets that were previously configured. diff --git a/parachains/runtimes/collectives/collectives-polkadot/src/weights/mod.rs b/parachains/runtimes/collectives/collectives-polkadot/src/weights/mod.rs index c78ba86656..bf736022ca 100644 --- a/parachains/runtimes/collectives/collectives-polkadot/src/weights/mod.rs +++ b/parachains/runtimes/collectives/collectives-polkadot/src/weights/mod.rs @@ -2,8 +2,10 @@ pub mod block_weights; pub mod cumulus_pallet_xcmp_queue; pub mod extrinsic_weights; pub mod frame_system; +pub mod pallet_alliance; pub mod pallet_balances; pub mod pallet_collator_selection; +pub mod pallet_collective; pub mod pallet_multisig; pub mod pallet_proxy; pub mod pallet_session; diff --git a/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs b/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs index e7528d5c3d..e50df38d6f 100644 --- a/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs +++ b/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_alliance.rs @@ -17,24 +17,25 @@ //! Autogenerated weights for `pallet_alliance` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2022-07-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! DATE: 2022-11-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024 // Executed Command: -// ./artifacts/polkadot-parachain +// /home/benchbot/cargo_target_dir/production/polkadot-parachain // benchmark // pallet -// --chain=collectives-polkadot-dev -// --execution=wasm -// --wasm-execution=compiled -// --pallet=pallet_alliance -// --extrinsic=* // --steps=50 // --repeat=20 -// --json +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/cumulus/.git/.artifacts/bench.json +// --pallet=pallet_alliance +// --chain=collectives-polkadot-dev // --header=./file_header.txt -// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights +// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/ #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] @@ -55,10 +56,13 @@ impl pallet_alliance::WeightInfo for WeightInfo { /// The range of component `x` is `[2, 10]`. /// The range of component `y` is `[0, 90]`. /// The range of component `p` is `[1, 100]`. - fn propose_proposed(_b: u32, _x: u32, _y: u32, p: u32, ) -> Weight { - Weight::from_ref_time(53_023_000 as u64) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(132_000 as u64).saturating_mul(p as u64)) + fn propose_proposed(_b: u32, _x: u32, y: u32, p: u32, ) -> Weight { + // Minimum execution time: 41_862 nanoseconds. + Weight::from_ref_time(44_475_938 as u64) + // Standard Error: 2_412 + .saturating_add(Weight::from_ref_time(39_913 as u64).saturating_mul(y as u64)) + // Standard Error: 2_201 + .saturating_add(Weight::from_ref_time(175_874 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -66,12 +70,11 @@ impl pallet_alliance::WeightInfo for WeightInfo { // Storage: AllianceMotion Voting (r:1 w:1) /// The range of component `x` is `[3, 10]`. /// The range of component `y` is `[2, 90]`. - fn vote(x: u32, y: u32, ) -> Weight { - Weight::from_ref_time(33_003_000 as u64) - // Standard Error: 106_000 - .saturating_add(Weight::from_ref_time(312_000 as u64).saturating_mul(x as u64)) - // Standard Error: 4_000 - .saturating_add(Weight::from_ref_time(82_000 as u64).saturating_mul(y as u64)) + fn vote(_x: u32, y: u32, ) -> Weight { + // Minimum execution time: 44_943 nanoseconds. + Weight::from_ref_time(47_476_239 as u64) + // Standard Error: 3_021 + .saturating_add(Weight::from_ref_time(111_095 as u64).saturating_mul(y as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -81,9 +84,10 @@ impl pallet_alliance::WeightInfo for WeightInfo { // Storage: AllianceMotion Voting (r:0 w:1) /// The range of component `p` is `[1, 100]`. fn veto(p: u32, ) -> Weight { - Weight::from_ref_time(27_289_000 as u64) - // Standard Error: 1_000 - .saturating_add(Weight::from_ref_time(131_000 as u64).saturating_mul(p as u64)) + // Minimum execution time: 31_655 nanoseconds. + Weight::from_ref_time(35_486_028 as u64) + // Standard Error: 1_602 + .saturating_add(Weight::from_ref_time(177_740 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(3 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -96,13 +100,14 @@ impl pallet_alliance::WeightInfo for WeightInfo { /// The range of component `y` is `[2, 90]`. /// The range of component `p` is `[1, 100]`. fn close_early_disapproved(x: u32, y: u32, p: u32, ) -> Weight { - Weight::from_ref_time(31_884_000 as u64) - // Standard Error: 72_000 - .saturating_add(Weight::from_ref_time(358_000 as u64).saturating_mul(x as u64)) - // Standard Error: 3_000 - .saturating_add(Weight::from_ref_time(109_000 as u64).saturating_mul(y as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(109_000 as u64).saturating_mul(p as u64)) + // Minimum execution time: 48_595 nanoseconds. + Weight::from_ref_time(43_160_052 as u64) + // Standard Error: 24_167 + .saturating_add(Weight::from_ref_time(18_121 as u64).saturating_mul(x as u64)) + // Standard Error: 2_354 + .saturating_add(Weight::from_ref_time(80_608 as u64).saturating_mul(y as u64)) + // Standard Error: 2_103 + .saturating_add(Weight::from_ref_time(170_852 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -115,16 +120,15 @@ impl pallet_alliance::WeightInfo for WeightInfo { /// The range of component `x` is `[2, 10]`. /// The range of component `y` is `[2, 90]`. /// The range of component `p` is `[1, 100]`. - fn close_early_approved(b: u32, x: u32, y: u32, p: u32, ) -> Weight { - Weight::from_ref_time(43_205_000 as u64) - // Standard Error: 0 - .saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64)) - // Standard Error: 73_000 - .saturating_add(Weight::from_ref_time(123_000 as u64).saturating_mul(x as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(91_000 as u64).saturating_mul(y as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(114_000 as u64).saturating_mul(p as u64)) + fn close_early_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight { + // Minimum execution time: 59_651 nanoseconds. + Weight::from_ref_time(55_415_708 as u64) + // Standard Error: 216 + .saturating_add(Weight::from_ref_time(2_458 as u64).saturating_mul(b as u64)) + // Standard Error: 2_503 + .saturating_add(Weight::from_ref_time(62_857 as u64).saturating_mul(y as u64)) + // Standard Error: 2_236 + .saturating_add(Weight::from_ref_time(187_234 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } @@ -138,14 +142,13 @@ impl pallet_alliance::WeightInfo for WeightInfo { /// The range of component `x` is `[2, 10]`. /// The range of component `y` is `[2, 90]`. /// The range of component `p` is `[1, 100]`. - fn close_disapproved(x: u32, y: u32, p: u32, ) -> Weight { - Weight::from_ref_time(49_769_000 as u64) - // Standard Error: 69_000 - .saturating_add(Weight::from_ref_time(352_000 as u64).saturating_mul(x as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(81_000 as u64).saturating_mul(y as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(100_000 as u64).saturating_mul(p as u64)) + fn close_disapproved(_x: u32, y: u32, p: u32, ) -> Weight { + // Minimum execution time: 64_871 nanoseconds. + Weight::from_ref_time(62_783_382 as u64) + // Standard Error: 2_394 + .saturating_add(Weight::from_ref_time(75_872 as u64).saturating_mul(y as u64)) + // Standard Error: 2_139 + .saturating_add(Weight::from_ref_time(197_924 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } @@ -160,60 +163,94 @@ impl pallet_alliance::WeightInfo for WeightInfo { /// The range of component `y` is `[2, 90]`. /// The range of component `p` is `[1, 100]`. fn close_approved(b: u32, _x: u32, y: u32, p: u32, ) -> Weight { - Weight::from_ref_time(40_901_000 as u64) - // Standard Error: 0 - .saturating_add(Weight::from_ref_time(3_000 as u64).saturating_mul(b as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(79_000 as u64).saturating_mul(y as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(102_000 as u64).saturating_mul(p as u64)) + // Minimum execution time: 49_900 nanoseconds. + Weight::from_ref_time(45_150_540 as u64) + // Standard Error: 197 + .saturating_add(Weight::from_ref_time(412 as u64).saturating_mul(b as u64)) + // Standard Error: 2_284 + .saturating_add(Weight::from_ref_time(73_832 as u64).saturating_mul(y as u64)) + // Standard Error: 2_040 + .saturating_add(Weight::from_ref_time(190_434 as u64).saturating_mul(p as u64)) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Alliance Members (r:3 w:3) // Storage: AllianceMotion Members (r:1 w:1) - /// The range of component `x` is `[2, 10]`. + /// The range of component `x` is `[1, 10]`. /// The range of component `y` is `[0, 90]`. /// The range of component `z` is `[0, 100]`. - fn init_members(_x: u32, y: u32, z: u32, ) -> Weight { - Weight::from_ref_time(39_647_000 as u64) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(123_000 as u64).saturating_mul(y as u64)) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(116_000 as u64).saturating_mul(z as u64)) + fn init_members(x: u32, y: u32, z: u32, ) -> Weight { + // Minimum execution time: 46_750 nanoseconds. + Weight::from_ref_time(31_805_458 as u64) + // Standard Error: 10_486 + .saturating_add(Weight::from_ref_time(114_892 as u64).saturating_mul(x as u64)) + // Standard Error: 1_110 + .saturating_add(Weight::from_ref_time(179_285 as u64).saturating_mul(y as u64)) + // Standard Error: 1_001 + .saturating_add(Weight::from_ref_time(149_906 as u64).saturating_mul(z as u64)) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } + // Storage: Alliance Members (r:3 w:3) + // Storage: AllianceMotion Proposals (r:1 w:0) + // Storage: Alliance DepositOf (r:101 w:50) + // Storage: System Account (r:50 w:50) + // Storage: AllianceMotion Members (r:0 w:1) + // Storage: AllianceMotion Prime (r:0 w:1) + /// The range of component `x` is `[1, 100]`. + /// The range of component `y` is `[0, 100]`. + /// The range of component `z` is `[0, 50]`. + fn disband(x: u32, y: u32, z: u32, ) -> Weight { + // Minimum execution time: 254_550 nanoseconds. + Weight::from_ref_time(255_691_000 as u64) + // Standard Error: 20_111 + .saturating_add(Weight::from_ref_time(418_055 as u64).saturating_mul(x as u64)) + // Standard Error: 20_014 + .saturating_add(Weight::from_ref_time(500_742 as u64).saturating_mul(y as u64)) + // Standard Error: 39_992 + .saturating_add(Weight::from_ref_time(9_058_238 as u64).saturating_mul(z as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(x as u64))) + .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(y as u64))) + .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(z as u64))) + .saturating_add(T::DbWeight::get().writes(5 as u64)) + .saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(z as u64))) + } // Storage: Alliance Rule (r:0 w:1) fn set_rule() -> Weight { - Weight::from_ref_time(14_689_000 as u64) + // Minimum execution time: 18_103 nanoseconds. + Weight::from_ref_time(18_546_000 as u64) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Alliance Announcements (r:1 w:1) fn announce() -> Weight { - Weight::from_ref_time(15_988_000 as u64) + // Minimum execution time: 20_188 nanoseconds. + Weight::from_ref_time(20_474_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } // Storage: Alliance Announcements (r:1 w:1) fn remove_announcement() -> Weight { - Weight::from_ref_time(16_823_000 as u64) + // Minimum execution time: 22_146 nanoseconds. + Weight::from_ref_time(24_837_000 as u64) .saturating_add(T::DbWeight::get().reads(1 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } - // Storage: Alliance UnscrupulousAccounts (r:1 w:0) // Storage: Alliance Members (r:4 w:1) + // Storage: Alliance UnscrupulousAccounts (r:1 w:0) // Storage: System Account (r:1 w:1) // Storage: Alliance DepositOf (r:0 w:1) fn join_alliance() -> Weight { - Weight::from_ref_time(46_340_000 as u64) + // Minimum execution time: 54_380 nanoseconds. + Weight::from_ref_time(55_406_000 as u64) .saturating_add(T::DbWeight::get().reads(6 as u64)) .saturating_add(T::DbWeight::get().writes(3 as u64)) } // Storage: Alliance Members (r:4 w:1) // Storage: Alliance UnscrupulousAccounts (r:1 w:0) fn nominate_ally() -> Weight { - Weight::from_ref_time(36_225_000 as u64) + // Minimum execution time: 40_764 nanoseconds. + Weight::from_ref_time(41_560_000 as u64) .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(1 as u64)) } @@ -222,57 +259,75 @@ impl pallet_alliance::WeightInfo for WeightInfo { // Storage: AllianceMotion Members (r:0 w:1) // Storage: AllianceMotion Prime (r:0 w:1) fn elevate_ally() -> Weight { - Weight::from_ref_time(30_236_000 as u64) + // Minimum execution time: 36_303 nanoseconds. + Weight::from_ref_time(36_952_000 as u64) .saturating_add(T::DbWeight::get().reads(4 as u64)) .saturating_add(T::DbWeight::get().writes(4 as u64)) } - // Storage: Alliance UpForKicking (r:1 w:0) - // Storage: Alliance Members (r:3 w:1) + // Storage: Alliance Members (r:4 w:2) // Storage: AllianceMotion Proposals (r:1 w:0) - // Storage: Alliance DepositOf (r:1 w:1) - // Storage: System Account (r:1 w:1) // Storage: AllianceMotion Members (r:0 w:1) // Storage: AllianceMotion Prime (r:0 w:1) - fn retire() -> Weight { - Weight::from_ref_time(44_311_000 as u64) - .saturating_add(T::DbWeight::get().reads(7 as u64)) + // Storage: Alliance RetiringMembers (r:0 w:1) + fn give_retirement_notice() -> Weight { + // Minimum execution time: 38_922 nanoseconds. + Weight::from_ref_time(39_294_000 as u64) + .saturating_add(T::DbWeight::get().reads(5 as u64)) .saturating_add(T::DbWeight::get().writes(5 as u64)) } + // Storage: Alliance RetiringMembers (r:1 w:1) + // Storage: Alliance Members (r:1 w:1) + // Storage: Alliance DepositOf (r:1 w:1) + // Storage: System Account (r:1 w:1) + fn retire() -> Weight { + // Minimum execution time: 43_402 nanoseconds. + Weight::from_ref_time(43_837_000 as u64) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } // Storage: Alliance Members (r:3 w:1) // Storage: AllianceMotion Proposals (r:1 w:0) // Storage: Alliance DepositOf (r:1 w:1) - // Storage: System Account (r:1 w:1) + // Storage: System Account (r:2 w:2) + // Storage: ParachainInfo ParachainId (r:1 w:0) + // Storage: PolkadotXcm SupportedVersion (r:1 w:0) + // Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1) + // Storage: PolkadotXcm SafeXcmVersion (r:1 w:0) + // Storage: ParachainSystem HostConfiguration (r:1 w:0) + // Storage: ParachainSystem PendingUpwardMessages (r:1 w:1) // Storage: AllianceMotion Members (r:0 w:1) // Storage: AllianceMotion Prime (r:0 w:1) - // Storage: Alliance UpForKicking (r:0 w:1) fn kick_member() -> Weight { - Weight::from_ref_time(46_112_000 as u64) - .saturating_add(T::DbWeight::get().reads(6 as u64)) - .saturating_add(T::DbWeight::get().writes(6 as u64)) + // Minimum execution time: 120_039 nanoseconds. + Weight::from_ref_time(121_205_000 as u64) + .saturating_add(T::DbWeight::get().reads(13 as u64)) + .saturating_add(T::DbWeight::get().writes(8 as u64)) } // Storage: Alliance UnscrupulousAccounts (r:1 w:1) // Storage: Alliance UnscrupulousWebsites (r:1 w:1) - /// The range of component `n` is `[1, 100]`. - /// The range of component `l` is `[1, 255]`. + /// The range of component `n` is `[0, 100]`. + /// The range of component `l` is `[0, 255]`. fn add_unscrupulous_items(n: u32, l: u32, ) -> Weight { - Weight::from_ref_time(0 as u64) - // Standard Error: 2_000 - .saturating_add(Weight::from_ref_time(1_300_000 as u64).saturating_mul(n as u64)) - // Standard Error: 1_000 - .saturating_add(Weight::from_ref_time(125_000 as u64).saturating_mul(l as u64)) + // Minimum execution time: 16_702 nanoseconds. + Weight::from_ref_time(16_779_000 as u64) + // Standard Error: 2_712 + .saturating_add(Weight::from_ref_time(1_285_845 as u64).saturating_mul(n as u64)) + // Standard Error: 1_062 + .saturating_add(Weight::from_ref_time(68_045 as u64).saturating_mul(l as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } // Storage: Alliance UnscrupulousAccounts (r:1 w:1) // Storage: Alliance UnscrupulousWebsites (r:1 w:1) - /// The range of component `n` is `[1, 100]`. - /// The range of component `l` is `[1, 255]`. + /// The range of component `n` is `[0, 100]`. + /// The range of component `l` is `[0, 255]`. fn remove_unscrupulous_items(n: u32, l: u32, ) -> Weight { - Weight::from_ref_time(0 as u64) - // Standard Error: 197_000 - .saturating_add(Weight::from_ref_time(34_156_000 as u64).saturating_mul(n as u64)) - // Standard Error: 87_000 - .saturating_add(Weight::from_ref_time(7_042_000 as u64).saturating_mul(l as u64)) + // Minimum execution time: 16_760 nanoseconds. + Weight::from_ref_time(16_907_000 as u64) + // Standard Error: 165_970 + .saturating_add(Weight::from_ref_time(12_792_975 as u64).saturating_mul(n as u64)) + // Standard Error: 65_001 + .saturating_add(Weight::from_ref_time(512_791 as u64).saturating_mul(l as u64)) .saturating_add(T::DbWeight::get().reads(2 as u64)) .saturating_add(T::DbWeight::get().writes(2 as u64)) } diff --git a/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_collective.rs b/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_collective.rs new file mode 100644 index 0000000000..056953e90a --- /dev/null +++ b/parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_collective.rs @@ -0,0 +1,209 @@ +// Copyright 2021 Parity Technologies (UK) Ltd. +// This file is part of Cumulus. + +// Cumulus is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Cumulus is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Cumulus. If not, see . + +//! Autogenerated weights for `pallet_collective` +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2022-11-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("collectives-polkadot-dev"), DB CACHE: 1024 + +// Executed Command: +// /home/benchbot/cargo_target_dir/production/polkadot-parachain +// benchmark +// pallet +// --steps=50 +// --repeat=20 +// --extrinsic=* +// --execution=wasm +// --wasm-execution=compiled +// --heap-pages=4096 +// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/cumulus/.git/.artifacts/bench.json +// --pallet=pallet_collective +// --chain=collectives-polkadot-dev +// --header=./file_header.txt +// --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/ + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] + +use frame_support::{traits::Get, weights::Weight}; +use sp_std::marker::PhantomData; + +/// Weight functions for `pallet_collective`. +pub struct WeightInfo(PhantomData); +impl pallet_collective::WeightInfo for WeightInfo { + // Storage: AllianceMotion Members (r:1 w:1) + // Storage: AllianceMotion Proposals (r:1 w:0) + // Storage: AllianceMotion Prime (r:0 w:1) + // Storage: AllianceMotion Voting (r:100 w:100) + /// The range of component `m` is `[0, 100]`. + /// The range of component `n` is `[0, 100]`. + /// The range of component `p` is `[0, 100]`. + fn set_members(m: u32, _n: u32, p: u32, ) -> Weight { + // Minimum execution time: 17_673 nanoseconds. + Weight::from_ref_time(17_891_000 as u64) + // Standard Error: 61_591 + .saturating_add(Weight::from_ref_time(4_893_341 as u64).saturating_mul(m as u64)) + // Standard Error: 61_591 + .saturating_add(Weight::from_ref_time(7_372_897 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(p as u64))) + .saturating_add(T::DbWeight::get().writes(2 as u64)) + .saturating_add(T::DbWeight::get().writes((1 as u64).saturating_mul(p as u64))) + } + // Storage: AllianceMotion Members (r:1 w:0) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn execute(b: u32, m: u32, ) -> Weight { + // Minimum execution time: 22_238 nanoseconds. + Weight::from_ref_time(21_508_595 as u64) + // Standard Error: 34 + .saturating_add(Weight::from_ref_time(1_793 as u64).saturating_mul(b as u64)) + // Standard Error: 360 + .saturating_add(Weight::from_ref_time(17_737 as u64).saturating_mul(m as u64)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + } + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion ProposalOf (r:1 w:0) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[1, 100]`. + fn propose_execute(b: u32, m: u32, ) -> Weight { + // Minimum execution time: 24_826 nanoseconds. + Weight::from_ref_time(23_742_099 as u64) + // Standard Error: 34 + .saturating_add(Weight::from_ref_time(1_922 as u64).saturating_mul(b as u64)) + // Standard Error: 355 + .saturating_add(Weight::from_ref_time(30_647 as u64).saturating_mul(m as u64)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + } + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion ProposalOf (r:1 w:1) + // Storage: AllianceMotion Proposals (r:1 w:1) + // Storage: AllianceMotion ProposalCount (r:1 w:1) + // Storage: AllianceMotion Voting (r:0 w:1) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[2, 100]`. + /// The range of component `p` is `[1, 100]`. + fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 31_785 nanoseconds. + Weight::from_ref_time(30_339_101 as u64) + // Standard Error: 143 + .saturating_add(Weight::from_ref_time(4_127 as u64).saturating_mul(b as u64)) + // Standard Error: 1_497 + .saturating_add(Weight::from_ref_time(26_901 as u64).saturating_mul(m as u64)) + // Standard Error: 1_478 + .saturating_add(Weight::from_ref_time(179_739 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(4 as u64)) + } + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion Voting (r:1 w:1) + /// The range of component `m` is `[5, 100]`. + fn vote(m: u32, ) -> Weight { + // Minimum execution time: 33_393 nanoseconds. + Weight::from_ref_time(36_717_049 as u64) + // Standard Error: 2_427 + .saturating_add(Weight::from_ref_time(52_572 as u64).saturating_mul(m as u64)) + .saturating_add(T::DbWeight::get().reads(2 as u64)) + .saturating_add(T::DbWeight::get().writes(1 as u64)) + } + // Storage: AllianceMotion Voting (r:1 w:1) + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion Proposals (r:1 w:1) + // Storage: AllianceMotion ProposalOf (r:0 w:1) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_disapproved(m: u32, p: u32, ) -> Weight { + // Minimum execution time: 33_378 nanoseconds. + Weight::from_ref_time(34_734_755 as u64) + // Standard Error: 1_644 + .saturating_add(Weight::from_ref_time(28_090 as u64).saturating_mul(m as u64)) + // Standard Error: 1_603 + .saturating_add(Weight::from_ref_time(163_809 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(3 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: AllianceMotion Voting (r:1 w:1) + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion ProposalOf (r:1 w:1) + // Storage: AllianceMotion Proposals (r:1 w:1) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 45_128 nanoseconds. + Weight::from_ref_time(42_122_418 as u64) + // Standard Error: 142 + .saturating_add(Weight::from_ref_time(3_356 as u64).saturating_mul(b as u64)) + // Standard Error: 1_510 + .saturating_add(Weight::from_ref_time(42_981 as u64).saturating_mul(m as u64)) + // Standard Error: 1_472 + .saturating_add(Weight::from_ref_time(179_794 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: AllianceMotion Voting (r:1 w:1) + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion Prime (r:1 w:0) + // Storage: AllianceMotion Proposals (r:1 w:1) + // Storage: AllianceMotion ProposalOf (r:0 w:1) + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_disapproved(m: u32, p: u32, ) -> Weight { + // Minimum execution time: 35_611 nanoseconds. + Weight::from_ref_time(36_011_285 as u64) + // Standard Error: 1_739 + .saturating_add(Weight::from_ref_time(37_018 as u64).saturating_mul(m as u64)) + // Standard Error: 1_696 + .saturating_add(Weight::from_ref_time(165_311 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(4 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: AllianceMotion Voting (r:1 w:1) + // Storage: AllianceMotion Members (r:1 w:0) + // Storage: AllianceMotion Prime (r:1 w:0) + // Storage: AllianceMotion ProposalOf (r:1 w:1) + // Storage: AllianceMotion Proposals (r:1 w:1) + /// The range of component `b` is `[1, 1024]`. + /// The range of component `m` is `[4, 100]`. + /// The range of component `p` is `[1, 100]`. + fn close_approved(b: u32, m: u32, p: u32, ) -> Weight { + // Minimum execution time: 48_279 nanoseconds. + Weight::from_ref_time(45_846_962 as u64) + // Standard Error: 148 + .saturating_add(Weight::from_ref_time(1_953 as u64).saturating_mul(b as u64)) + // Standard Error: 1_569 + .saturating_add(Weight::from_ref_time(45_331 as u64).saturating_mul(m as u64)) + // Standard Error: 1_530 + .saturating_add(Weight::from_ref_time(181_458 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(5 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } + // Storage: AllianceMotion Proposals (r:1 w:1) + // Storage: AllianceMotion Voting (r:0 w:1) + // Storage: AllianceMotion ProposalOf (r:0 w:1) + /// The range of component `p` is `[1, 100]`. + fn disapprove_proposal(p: u32, ) -> Weight { + // Minimum execution time: 20_838 nanoseconds. + Weight::from_ref_time(24_287_938 as u64) + // Standard Error: 1_411 + .saturating_add(Weight::from_ref_time(172_000 as u64).saturating_mul(p as u64)) + .saturating_add(T::DbWeight::get().reads(1 as u64)) + .saturating_add(T::DbWeight::get().writes(3 as u64)) + } +}