New Weights for All Pallets (#12325)

* new weights for everything

* fix

* fmt

* new batch

* fmt

* new batch

* Update run_all_benchmarks.sh

* add headers

* update weights

* Update lib.rs

* block and extrinsic weight
This commit is contained in:
Shawn Tabrizi
2022-11-08 14:50:28 -04:00
committed by GitHub
parent e4c341e023
commit 78cddd7631
43 changed files with 4169 additions and 3264 deletions
+76 -45
View File
@@ -7,7 +7,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@@ -18,7 +18,8 @@
//! Autogenerated weights for pallet_membership
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-05-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-11-07, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
@@ -32,8 +33,10 @@
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --template=./.maintain/frame-weight-template.hbs
// --heap-pages=4096
// --output=./frame/membership/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
@@ -60,10 +63,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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 {
Weight::from_ref_time(15_318_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(51_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 23_796 nanoseconds.
Weight::from_ref_time(24_829_996 as u64)
// Standard Error: 723
.saturating_add(Weight::from_ref_time(48_467 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(2 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -72,10 +77,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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 {
Weight::from_ref_time(18_005_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(45_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 27_255 nanoseconds.
Weight::from_ref_time(28_234_490 as u64)
// Standard Error: 833
.saturating_add(Weight::from_ref_time(34_894 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -84,10 +91,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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 {
Weight::from_ref_time(18_029_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(55_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 26_626 nanoseconds.
Weight::from_ref_time(27_989_042 as u64)
// Standard Error: 729
.saturating_add(Weight::from_ref_time(51_567 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -96,10 +105,12 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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 {
Weight::from_ref_time(18_105_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(158_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 25_412 nanoseconds.
Weight::from_ref_time(27_713_414 as u64)
// Standard Error: 883
.saturating_add(Weight::from_ref_time(157_085 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(3 as u64))
}
@@ -108,29 +119,35 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// 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 {
Weight::from_ref_time(18_852_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(55_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 27_122 nanoseconds.
Weight::from_ref_time(28_477_394 as u64)
// Standard Error: 801
.saturating_add(Weight::from_ref_time(56_383 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(3 as u64))
.saturating_add(T::DbWeight::get().writes(4 as u64))
}
// 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 {
Weight::from_ref_time(4_869_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(28_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 9_368 nanoseconds.
Weight::from_ref_time(10_133_132 as u64)
// Standard Error: 366
.saturating_add(Weight::from_ref_time(17_708 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().reads(1 as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
// 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 {
Weight::from_ref_time(1_593_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 5_546 nanoseconds.
Weight::from_ref_time(5_962_740 as u64)
// Standard Error: 186
.saturating_add(Weight::from_ref_time(2_096 as u64).saturating_mul(m as u64))
.saturating_add(T::DbWeight::get().writes(2 as u64))
}
}
@@ -141,10 +158,12 @@ impl WeightInfo for () {
// 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 {
Weight::from_ref_time(15_318_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(51_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 23_796 nanoseconds.
Weight::from_ref_time(24_829_996 as u64)
// Standard Error: 723
.saturating_add(Weight::from_ref_time(48_467 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(2 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -153,10 +172,12 @@ impl WeightInfo for () {
// 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 {
Weight::from_ref_time(18_005_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(45_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 27_255 nanoseconds.
Weight::from_ref_time(28_234_490 as u64)
// Standard Error: 833
.saturating_add(Weight::from_ref_time(34_894 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -165,10 +186,12 @@ impl WeightInfo for () {
// 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 {
Weight::from_ref_time(18_029_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(55_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 26_626 nanoseconds.
Weight::from_ref_time(27_989_042 as u64)
// Standard Error: 729
.saturating_add(Weight::from_ref_time(51_567 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -177,10 +200,12 @@ impl WeightInfo for () {
// 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 {
Weight::from_ref_time(18_105_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(158_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 25_412 nanoseconds.
Weight::from_ref_time(27_713_414 as u64)
// Standard Error: 883
.saturating_add(Weight::from_ref_time(157_085 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(3 as u64))
}
@@ -189,29 +214,35 @@ impl WeightInfo for () {
// 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 {
Weight::from_ref_time(18_852_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(55_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 27_122 nanoseconds.
Weight::from_ref_time(28_477_394 as u64)
// Standard Error: 801
.saturating_add(Weight::from_ref_time(56_383 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(3 as u64))
.saturating_add(RocksDbWeight::get().writes(4 as u64))
}
// 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 {
Weight::from_ref_time(4_869_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(28_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 9_368 nanoseconds.
Weight::from_ref_time(10_133_132 as u64)
// Standard Error: 366
.saturating_add(Weight::from_ref_time(17_708 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().reads(1 as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
// 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 {
Weight::from_ref_time(1_593_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(m as u64))
// Minimum execution time: 5_546 nanoseconds.
Weight::from_ref_time(5_962_740 as u64)
// Standard Error: 186
.saturating_add(Weight::from_ref_time(2_096 as u64).saturating_mul(m as u64))
.saturating_add(RocksDbWeight::get().writes(2 as u64))
}
}