// Copyright (C) Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot 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.
// Polkadot 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 Polkadot. If not, see .
//! Autogenerated weights for `pallet_collective`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
// --pallet=pallet_collective
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/kusama/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: Council Members (r:1 w:1)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:0)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:100 w:100)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Prime (r:0 w:1)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `m` is `[0, 100]`.
/// The range of component `n` is `[0, 100]`.
/// The range of component `p` is `[0, 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 {
// Proof Size summary in bytes:
// Measured: `0 + m * (3232 ±0) + p * (3190 ±0)`
// Estimated: `19164 + m * (7799 ±17) + p * (10110 ±17)`
// Minimum execution time: 17_032_000 picoseconds.
Weight::from_parts(17_263_000, 0)
.saturating_add(Weight::from_parts(0, 19164))
// Standard Error: 51_363
.saturating_add(Weight::from_parts(5_779_193, 0).saturating_mul(m.into()))
// Standard Error: 51_363
.saturating_add(Weight::from_parts(8_434_866, 0).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())))
.saturating_add(Weight::from_parts(0, 7799).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 10110).saturating_mul(p.into()))
}
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `136 + m * (32 ±0)`
// Estimated: `1622 + m * (32 ±0)`
// Minimum execution time: 15_686_000 picoseconds.
Weight::from_parts(15_185_500, 0)
.saturating_add(Weight::from_parts(0, 1622))
// Standard Error: 26
.saturating_add(Weight::from_parts(1_363, 0).saturating_mul(b.into()))
// Standard Error: 277
.saturating_add(Weight::from_parts(15_720, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
}
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:0)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[1, 100]`.
fn propose_execute(b: u32, m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `136 + m * (32 ±0)`
// Estimated: `5224 + m * (64 ±0)`
// Minimum execution time: 18_314_000 picoseconds.
Weight::from_parts(17_659_522, 0)
.saturating_add(Weight::from_parts(0, 5224))
// Standard Error: 22
.saturating_add(Weight::from_parts(1_153, 0).saturating_mul(b.into()))
// Standard Error: 237
.saturating_add(Weight::from_parts(25_439, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(Weight::from_parts(0, 64).saturating_mul(m.into()))
}
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalCount (r:1 w:1)
/// Proof Skipped: Council ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[2, 100]`.
/// The range of component `p` is `[1, 100]`.
/// 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 {
// Proof Size summary in bytes:
// Measured: `426 + m * (32 ±0) + p * (36 ±0)`
// Estimated: `9685 + m * (165 ±0) + p * (180 ±0)`
// Minimum execution time: 23_916_000 picoseconds.
Weight::from_parts(25_192_989, 0)
.saturating_add(Weight::from_parts(0, 9685))
// Standard Error: 50
.saturating_add(Weight::from_parts(2_327, 0).saturating_mul(b.into()))
// Standard Error: 528
.saturating_add(Weight::from_parts(17_763, 0).saturating_mul(m.into()))
// Standard Error: 522
.saturating_add(Weight::from_parts(116_903, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(4))
.saturating_add(Weight::from_parts(0, 165).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 180).saturating_mul(p.into()))
}
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[5, 100]`.
/// The range of component `m` is `[5, 100]`.
fn vote(m: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `875 + m * (64 ±0)`
// Estimated: `6698 + m * (128 ±0)`
// Minimum execution time: 21_641_000 picoseconds.
Weight::from_parts(22_373_888, 0)
.saturating_add(Weight::from_parts(0, 6698))
// Standard Error: 299
.saturating_add(Weight::from_parts(41_168, 0).saturating_mul(m.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
.saturating_add(Weight::from_parts(0, 128).saturating_mul(m.into()))
}
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
/// 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 {
// Proof Size summary in bytes:
// Measured: `464 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `8211 + m * (260 ±0) + p * (144 ±0)`
// Minimum execution time: 26_158_000 picoseconds.
Weight::from_parts(27_675_242, 0)
.saturating_add(Weight::from_parts(0, 8211))
// Standard Error: 845
.saturating_add(Weight::from_parts(10_799, 0).saturating_mul(m.into()))
// Standard Error: 824
.saturating_add(Weight::from_parts(141_199, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 260).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 144).saturating_mul(p.into()))
}
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
/// 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 {
// Proof Size summary in bytes:
// Measured: `766 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `12372 + b * (4 ±0) + m * (264 ±0) + p * (160 ±0)`
// Minimum execution time: 37_601_000 picoseconds.
Weight::from_parts(41_302_278, 0)
.saturating_add(Weight::from_parts(0, 12372))
// Standard Error: 67
.saturating_add(Weight::from_parts(1_608, 0).saturating_mul(b.into()))
// Standard Error: 716
.saturating_add(Weight::from_parts(14_628, 0).saturating_mul(m.into()))
// Standard Error: 698
.saturating_add(Weight::from_parts(129_997, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 4).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 264).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 160).saturating_mul(p.into()))
}
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
fn close_disapproved(m: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `484 + m * (64 ±0) + p * (36 ±0)`
// Estimated: `10240 + m * (325 ±0) + p * (180 ±0)`
// Minimum execution time: 29_185_000 picoseconds.
Weight::from_parts(30_594_183, 0)
.saturating_add(Weight::from_parts(0, 10240))
// Standard Error: 865
.saturating_add(Weight::from_parts(30_165, 0).saturating_mul(m.into()))
// Standard Error: 844
.saturating_add(Weight::from_parts(131_623, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 325).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 180).saturating_mul(p.into()))
}
/// Storage: Council Voting (r:1 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Members (r:1 w:0)
/// Proof Skipped: Council Members (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Prime (r:1 w:0)
/// Proof Skipped: Council Prime (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:1 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// The range of component `b` is `[2, 1024]`.
/// The range of component `m` is `[4, 100]`.
/// The range of component `p` is `[1, 100]`.
/// 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 {
// Proof Size summary in bytes:
// Measured: `786 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
// Estimated: `14575 + b * (5 ±0) + m * (330 ±0) + p * (200 ±0)`
// Minimum execution time: 43_157_000 picoseconds.
Weight::from_parts(43_691_874, 0)
.saturating_add(Weight::from_parts(0, 14575))
// Standard Error: 61
.saturating_add(Weight::from_parts(1_862, 0).saturating_mul(b.into()))
// Standard Error: 654
.saturating_add(Weight::from_parts(17_183, 0).saturating_mul(m.into()))
// Standard Error: 638
.saturating_add(Weight::from_parts(133_193, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(5))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 5).saturating_mul(b.into()))
.saturating_add(Weight::from_parts(0, 330).saturating_mul(m.into()))
.saturating_add(Weight::from_parts(0, 200).saturating_mul(p.into()))
}
/// Storage: Council Proposals (r:1 w:1)
/// Proof Skipped: Council Proposals (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Council Voting (r:0 w:1)
/// Proof Skipped: Council Voting (max_values: None, max_size: None, mode: Measured)
/// Storage: Council ProposalOf (r:0 w:1)
/// Proof Skipped: Council ProposalOf (max_values: None, max_size: None, mode: Measured)
/// The range of component `p` is `[1, 100]`.
/// The range of component `p` is `[1, 100]`.
fn disapprove_proposal(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `293 + p * (32 ±0)`
// Estimated: `2364 + p * (96 ±0)`
// Minimum execution time: 14_666_000 picoseconds.
Weight::from_parts(16_623_386, 0)
.saturating_add(Weight::from_parts(0, 2364))
// Standard Error: 430
.saturating_add(Weight::from_parts(111_461, 0).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(3))
.saturating_add(Weight::from_parts(0, 96).saturating_mul(p.into()))
}
}