mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
1a8b087129
* polkadot: update weights * kusama: update weights * westend: update weights * rococo: update weights * Reduce testing constants (#5787) Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
130 lines
5.2 KiB
Rust
130 lines
5.2 KiB
Rust
// Copyright 2017-2022 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_membership`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-07-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! 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_membership
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/src/weights/pallet_membership.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_membership`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
|
|
// Storage: TechnicalMembership Members (r:1 w:1)
|
|
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[1, 99]`.
|
|
fn add_member(m: u32, ) -> Weight {
|
|
(15_163_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((81_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Members (r:1 w:1)
|
|
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn remove_member(m: u32, ) -> Weight {
|
|
(17_488_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((69_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Members (r:1 w:1)
|
|
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[2, 100]`.
|
|
fn swap_member(m: u32, ) -> Weight {
|
|
(17_608_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((81_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Members (r:1 w:1)
|
|
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
// Storage: TechnicalMembership Prime (r:1 w:0)
|
|
// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn reset_member(m: u32, ) -> Weight {
|
|
(17_267_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((207_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Members (r:1 w:1)
|
|
// Storage: TechnicalCommittee Proposals (r:1 w:0)
|
|
// Storage: TechnicalMembership Prime (r:1 w:1)
|
|
// Storage: TechnicalCommittee Members (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn change_key(m: u32, ) -> Weight {
|
|
(17_855_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((76_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Members (r:1 w:0)
|
|
// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn set_prime(m: u32, ) -> Weight {
|
|
(4_661_000 as Weight)
|
|
// Standard Error: 0
|
|
.saturating_add((31_000 as Weight).saturating_mul(m as Weight))
|
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
}
|
|
// Storage: TechnicalMembership Prime (r:0 w:1)
|
|
// Storage: TechnicalCommittee Prime (r:0 w:1)
|
|
/// The range of component `m` is `[1, 100]`.
|
|
fn clear_prime(_m: u32, ) -> Weight {
|
|
(1_538_000 as Weight)
|
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
}
|
|
}
|