mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-14 14:25:45 +00:00
958cf435b1
* polkadot: update weights * westend: update weights * kusama: update weights * rococo: update weights
325 lines
16 KiB
Rust
325 lines
16 KiB
Rust
// 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 <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_collective`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-05-26, 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("rococo-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=rococo-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_collective
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/rococo/src/weights/
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_collective`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
|
|
/// Storage: TechnicalCommittee Members (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Voting (r:100 w:100)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `15766 + m * (1967 ±16) + p * (4332 ±16)`
|
|
// Minimum execution time: 17_826_000 picoseconds.
|
|
Weight::from_parts(18_046_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 15766))
|
|
// Standard Error: 42_164
|
|
.saturating_add(Weight::from_parts(4_858_188, 0).saturating_mul(m.into()))
|
|
// Standard Error: 42_164
|
|
.saturating_add(Weight::from_parts(7_379_354, 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, 1967).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 4332).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee 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: `107 + m * (32 ±0)`
|
|
// Estimated: `1593 + m * (32 ±0)`
|
|
// Minimum execution time: 16_992_000 picoseconds.
|
|
Weight::from_parts(16_555_669, 0)
|
|
.saturating_add(Weight::from_parts(0, 1593))
|
|
// Standard Error: 18
|
|
.saturating_add(Weight::from_parts(976, 0).saturating_mul(b.into()))
|
|
// Standard Error: 189
|
|
.saturating_add(Weight::from_parts(12_101, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee 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: `107 + m * (32 ±0)`
|
|
// Estimated: `3573 + m * (32 ±0)`
|
|
// Minimum execution time: 19_900_000 picoseconds.
|
|
Weight::from_parts(19_068_072, 0)
|
|
.saturating_add(Weight::from_parts(0, 3573))
|
|
// Standard Error: 12
|
|
.saturating_add(Weight::from_parts(1_161, 0).saturating_mul(b.into()))
|
|
// Standard Error: 129
|
|
.saturating_add(Weight::from_parts(22_376, 0).saturating_mul(m.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(Weight::from_parts(0, 32).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalCount (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee ProposalCount (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Voting (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `397 + m * (32 ±0) + p * (36 ±0)`
|
|
// Estimated: `3789 + m * (33 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 26_264_000 picoseconds.
|
|
Weight::from_parts(27_099_606, 0)
|
|
.saturating_add(Weight::from_parts(0, 3789))
|
|
// Standard Error: 50
|
|
.saturating_add(Weight::from_parts(2_278, 0).saturating_mul(b.into()))
|
|
// Standard Error: 525
|
|
.saturating_add(Weight::from_parts(19_424, 0).saturating_mul(m.into()))
|
|
// Standard Error: 519
|
|
.saturating_add(Weight::from_parts(120_852, 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, 33).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Voting (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `846 + m * (64 ±0)`
|
|
// Estimated: `4310 + m * (64 ±0)`
|
|
// Minimum execution time: 22_954_000 picoseconds.
|
|
Weight::from_parts(23_675_214, 0)
|
|
.saturating_add(Weight::from_parts(0, 4310))
|
|
// Standard Error: 256
|
|
.saturating_add(Weight::from_parts(40_562, 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, 64).saturating_mul(m.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Voting (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `435 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3880 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 27_797_000 picoseconds.
|
|
Weight::from_parts(28_934_600, 0)
|
|
.saturating_add(Weight::from_parts(0, 3880))
|
|
// Standard Error: 374
|
|
.saturating_add(Weight::from_parts(20_716, 0).saturating_mul(m.into()))
|
|
// Standard Error: 364
|
|
.saturating_add(Weight::from_parts(115_491, 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, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Voting (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `737 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4054 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 39_160_000 picoseconds.
|
|
Weight::from_parts(40_470_419, 0)
|
|
.saturating_add(Weight::from_parts(0, 4054))
|
|
// Standard Error: 82
|
|
.saturating_add(Weight::from_parts(2_146, 0).saturating_mul(b.into()))
|
|
// Standard Error: 869
|
|
.saturating_add(Weight::from_parts(21_442, 0).saturating_mul(m.into()))
|
|
// Standard Error: 847
|
|
.saturating_add(Weight::from_parts(144_479, 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, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Voting (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `455 + m * (64 ±0) + p * (36 ±0)`
|
|
// Estimated: `3900 + m * (65 ±0) + p * (36 ±0)`
|
|
// Minimum execution time: 30_953_000 picoseconds.
|
|
Weight::from_parts(31_427_489, 0)
|
|
.saturating_add(Weight::from_parts(0, 3900))
|
|
// Standard Error: 397
|
|
.saturating_add(Weight::from_parts(24_280, 0).saturating_mul(m.into()))
|
|
// Standard Error: 387
|
|
.saturating_add(Weight::from_parts(116_864, 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, 65).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 36).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Voting (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Members (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Members (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Prime (r:1 w:0)
|
|
/// Proof Skipped: TechnicalCommittee Prime (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee ProposalOf (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `757 + b * (1 ±0) + m * (64 ±0) + p * (40 ±0)`
|
|
// Estimated: `4074 + b * (1 ±0) + m * (66 ±0) + p * (40 ±0)`
|
|
// Minimum execution time: 41_468_000 picoseconds.
|
|
Weight::from_parts(43_538_242, 0)
|
|
.saturating_add(Weight::from_parts(0, 4074))
|
|
// Standard Error: 80
|
|
.saturating_add(Weight::from_parts(1_994, 0).saturating_mul(b.into()))
|
|
// Standard Error: 853
|
|
.saturating_add(Weight::from_parts(19_637, 0).saturating_mul(m.into()))
|
|
// Standard Error: 831
|
|
.saturating_add(Weight::from_parts(144_674, 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, 1).saturating_mul(b.into()))
|
|
.saturating_add(Weight::from_parts(0, 66).saturating_mul(m.into()))
|
|
.saturating_add(Weight::from_parts(0, 40).saturating_mul(p.into()))
|
|
}
|
|
/// Storage: TechnicalCommittee Proposals (r:1 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Proposals (max_values: Some(1), max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee Voting (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee Voting (max_values: None, max_size: None, mode: Measured)
|
|
/// Storage: TechnicalCommittee ProposalOf (r:0 w:1)
|
|
/// Proof Skipped: TechnicalCommittee 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: `264 + p * (32 ±0)`
|
|
// Estimated: `1749 + p * (32 ±0)`
|
|
// Minimum execution time: 15_998_000 picoseconds.
|
|
Weight::from_parts(17_837_641, 0)
|
|
.saturating_add(Weight::from_parts(0, 1749))
|
|
// Standard Error: 422
|
|
.saturating_add(Weight::from_parts(111_526, 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, 32).saturating_mul(p.into()))
|
|
}
|
|
}
|