mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
435d1b4e8d
* [benchmarks] pr with weights (#1945) Co-authored-by: paritytech-ci <paritytech-ci@parity.io> * Use master for some methods Co-authored-by: Egor_P <egor@parity.io> Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
209 lines
9.2 KiB
Rust
209 lines
9.2 KiB
Rust
// 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 <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: 2022-12-05, 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<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_collective::WeightInfo for WeightInfo<T> {
|
|
// 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: 20_020 nanoseconds.
|
|
Weight::from_ref_time(20_243_000 as u64)
|
|
// Standard Error: 64_886
|
|
.saturating_add(Weight::from_ref_time(5_203_566 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 64_886
|
|
.saturating_add(Weight::from_ref_time(7_724_672 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: 24_663 nanoseconds.
|
|
Weight::from_ref_time(23_740_074 as u64)
|
|
// Standard Error: 41
|
|
.saturating_add(Weight::from_ref_time(2_074 as u64).saturating_mul(b as u64))
|
|
// Standard Error: 430
|
|
.saturating_add(Weight::from_ref_time(19_672 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: 27_356 nanoseconds.
|
|
Weight::from_ref_time(26_292_620 as u64)
|
|
// Standard Error: 47
|
|
.saturating_add(Weight::from_ref_time(1_993 as u64).saturating_mul(b as u64))
|
|
// Standard Error: 494
|
|
.saturating_add(Weight::from_ref_time(27_913 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: 34_601 nanoseconds.
|
|
Weight::from_ref_time(31_018_653 as u64)
|
|
// Standard Error: 127
|
|
.saturating_add(Weight::from_ref_time(6_066 as u64).saturating_mul(b as u64))
|
|
// Standard Error: 1_328
|
|
.saturating_add(Weight::from_ref_time(27_417 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 1_312
|
|
.saturating_add(Weight::from_ref_time(194_944 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: 35_483 nanoseconds.
|
|
Weight::from_ref_time(38_628_067 as u64)
|
|
// Standard Error: 2_889
|
|
.saturating_add(Weight::from_ref_time(74_863 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: 36_440 nanoseconds.
|
|
Weight::from_ref_time(40_424_479 as u64)
|
|
// Standard Error: 2_324
|
|
.saturating_add(Weight::from_ref_time(9_789 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 2_266
|
|
.saturating_add(Weight::from_ref_time(147_219 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: 48_555 nanoseconds.
|
|
Weight::from_ref_time(46_468_609 as u64)
|
|
// Standard Error: 136
|
|
.saturating_add(Weight::from_ref_time(2_655 as u64).saturating_mul(b as u64))
|
|
// Standard Error: 1_448
|
|
.saturating_add(Weight::from_ref_time(42_243 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 1_412
|
|
.saturating_add(Weight::from_ref_time(184_606 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: 38_157 nanoseconds.
|
|
Weight::from_ref_time(39_875_224 as u64)
|
|
// Standard Error: 1_662
|
|
.saturating_add(Weight::from_ref_time(31_313 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 1_621
|
|
.saturating_add(Weight::from_ref_time(168_754 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: 50_534 nanoseconds.
|
|
Weight::from_ref_time(47_567_256 as u64)
|
|
// Standard Error: 141
|
|
.saturating_add(Weight::from_ref_time(2_276 as u64).saturating_mul(b as u64))
|
|
// Standard Error: 1_497
|
|
.saturating_add(Weight::from_ref_time(58_022 as u64).saturating_mul(m as u64))
|
|
// Standard Error: 1_459
|
|
.saturating_add(Weight::from_ref_time(192_898 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: 23_077 nanoseconds.
|
|
Weight::from_ref_time(26_331_711 as u64)
|
|
// Standard Error: 1_620
|
|
.saturating_add(Weight::from_ref_time(176_129 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))
|
|
}
|
|
}
|