// 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-12-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! HOSTNAME: `bm6`, 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 // benchmark // pallet // --chain=collectives-polkadot-dev // --execution=wasm // --wasm-execution=compiled // --pallet=pallet_collective // --extrinsic=* // --steps=50 // --repeat=20 // --json // --header=./file_header.txt // --output=./parachains/runtimes/collectives/collectives-polkadot/src/weights/pallet_collective.rs #![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_445 nanoseconds. Weight::from_ref_time(17_574_000) // Standard Error: 65_394 .saturating_add(Weight::from_ref_time(5_265_879).saturating_mul(m.into())) // Standard Error: 65_394 .saturating_add(Weight::from_ref_time(7_444_558).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(p.into()))) .saturating_add(T::DbWeight::get().writes(2)) .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into()))) } // Storage: AllianceMotion Members (r:1 w:0) /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[1, 100]`. fn execute(b: u32, m: u32, ) -> Weight { // Minimum execution time: 20_317 nanoseconds. Weight::from_ref_time(19_615_265) // Standard Error: 27 .saturating_add(Weight::from_ref_time(2_017).saturating_mul(b.into())) // Standard Error: 287 .saturating_add(Weight::from_ref_time(14_147).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(1)) } // Storage: AllianceMotion Members (r:1 w:0) // Storage: AllianceMotion ProposalOf (r:1 w:0) /// The range of component `b` is `[2, 1024]`. /// The range of component `m` is `[1, 100]`. fn propose_execute(b: u32, m: u32, ) -> Weight { // Minimum execution time: 23_080 nanoseconds. Weight::from_ref_time(21_846_487) // Standard Error: 28 .saturating_add(Weight::from_ref_time(1_944).saturating_mul(b.into())) // Standard Error: 297 .saturating_add(Weight::from_ref_time(24_113).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) } // 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 `[2, 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: 29_006 nanoseconds. Weight::from_ref_time(30_263_788) // Standard Error: 89 .saturating_add(Weight::from_ref_time(2_887).saturating_mul(b.into())) // Standard Error: 935 .saturating_add(Weight::from_ref_time(16_046).saturating_mul(m.into())) // Standard Error: 923 .saturating_add(Weight::from_ref_time(110_411).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(4)) } // 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: 28_028 nanoseconds. Weight::from_ref_time(29_008_901) // Standard Error: 442 .saturating_add(Weight::from_ref_time(39_227).saturating_mul(m.into())) .saturating_add(T::DbWeight::get().reads(2)) .saturating_add(T::DbWeight::get().writes(1)) } // 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: 30_789 nanoseconds. Weight::from_ref_time(32_883_315) // Standard Error: 927 .saturating_add(Weight::from_ref_time(20_146).saturating_mul(m.into())) // Standard Error: 904 .saturating_add(Weight::from_ref_time(100_366).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(3)) .saturating_add(T::DbWeight::get().writes(3)) } // 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 `[2, 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: 41_415 nanoseconds. Weight::from_ref_time(43_034_456) // Standard Error: 86 .saturating_add(Weight::from_ref_time(1_786).saturating_mul(b.into())) // Standard Error: 909 .saturating_add(Weight::from_ref_time(13_068).saturating_mul(m.into())) // Standard Error: 886 .saturating_add(Weight::from_ref_time(111_933).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } // 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: 32_062 nanoseconds. Weight::from_ref_time(35_026_550) // Standard Error: 930 .saturating_add(Weight::from_ref_time(18_809).saturating_mul(m.into())) // Standard Error: 907 .saturating_add(Weight::from_ref_time(103_195).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(4)) .saturating_add(T::DbWeight::get().writes(3)) } // 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 `[2, 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: 43_574 nanoseconds. Weight::from_ref_time(44_782_136) // Standard Error: 90 .saturating_add(Weight::from_ref_time(1_990).saturating_mul(b.into())) // Standard Error: 960 .saturating_add(Weight::from_ref_time(15_697).saturating_mul(m.into())) // Standard Error: 936 .saturating_add(Weight::from_ref_time(113_994).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(5)) .saturating_add(T::DbWeight::get().writes(3)) } // 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_012 nanoseconds. Weight::from_ref_time(22_919_021) // Standard Error: 928 .saturating_add(Weight::from_ref_time(98_275).saturating_mul(p.into())) .saturating_add(T::DbWeight::get().reads(1)) .saturating_add(T::DbWeight::get().writes(3)) } }