mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 11:41:02 +00:00
Fix bench bot (#2900)
* Fix bench bot * cargo run --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/ * Fix weights files * Fix' * cargo run --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=pallet_membership --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/ Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
This commit is contained in:
@@ -548,7 +548,7 @@ impl pallet_membership::Config<pallet_membership::Instance1> for Runtime {
|
||||
type MembershipInitialized = TechnicalCommittee;
|
||||
type MembershipChanged = TechnicalCommittee;
|
||||
type MaxMembers = TechnicalMaxMembers;
|
||||
type WeightInfo = ();
|
||||
type WeightInfo = weights::pallet_membership::WeightInfo<Runtime>;
|
||||
}
|
||||
|
||||
parameter_types! {
|
||||
|
||||
@@ -25,6 +25,7 @@ pub mod pallet_election_provider_multi_phase;
|
||||
pub mod pallet_identity;
|
||||
pub mod pallet_im_online;
|
||||
pub mod pallet_indices;
|
||||
pub mod pallet_membership;
|
||||
pub mod pallet_multisig;
|
||||
pub mod pallet_proxy;
|
||||
pub mod pallet_scheduler;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
//! Autogenerated weights for pallet_membership
|
||||
//!
|
||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
||||
//! DATE: 2021-04-18, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! DATE: 2021-04-21, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128
|
||||
|
||||
// Executed Command:
|
||||
@@ -44,49 +44,51 @@ use sp_std::marker::PhantomData;
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> pallet_membership::WeightInfo for WeightInfo<T> {
|
||||
fn add_member(m: u32, ) -> Weight {
|
||||
(24_568_000 as Weight)
|
||||
(23_269_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((242_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((250_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))
|
||||
}
|
||||
fn remove_member(m: u32, ) -> Weight {
|
||||
(29_822_000 as Weight)
|
||||
(28_329_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((195_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((204_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))
|
||||
}
|
||||
fn swap_member(m: u32, ) -> Weight {
|
||||
(29_885_000 as Weight)
|
||||
(28_550_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((214_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((219_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))
|
||||
}
|
||||
fn reset_member(m: u32, ) -> Weight {
|
||||
(30_347_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((440_000 as Weight).saturating_mul(m as Weight))
|
||||
(29_358_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((442_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))
|
||||
}
|
||||
fn change_key(m: u32, ) -> Weight {
|
||||
(31_762_000 as Weight)
|
||||
(30_386_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((208_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((212_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))
|
||||
}
|
||||
fn set_prime(m: u32, ) -> Weight {
|
||||
(7_818_000 as Weight)
|
||||
(7_366_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((114_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add((115_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))
|
||||
}
|
||||
fn clear_prime(_m: u32, ) -> Weight {
|
||||
(2_946_000 as Weight)
|
||||
fn clear_prime(m: u32, ) -> Weight {
|
||||
(2_778_000 as Weight)
|
||||
// Standard Error: 0
|
||||
.saturating_add((1_000 as Weight).saturating_mul(m as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user