New Weights for All Pallets (#9148)

* Create run_benchmarks.sh

* Update run_benchmarks.sh

* new weights

* Delete run_benchmarks.sh

* wrong folder

* remove grandpa weight

* Update weights.rs
This commit is contained in:
Shawn Tabrizi
2021-06-21 10:57:43 +01:00
committed by GitHub
parent a26ec52450
commit e5831c3db3
27 changed files with 1854 additions and 1813 deletions
+121 -97
View File
@@ -1,6 +1,6 @@
// This file is part of Substrate.
// Copyright (C) 2020-2021 Parity Technologies (UK) Ltd.
// Copyright (C) 2021 Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,9 +15,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//! Weights for pallet_collective
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! Autogenerated weights for pallet_collective
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
//! DATE: 2021-06-19, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128
// Executed Command:
@@ -43,17 +44,16 @@ use sp_std::marker::PhantomData;
/// Weight functions needed for pallet_collective.
pub trait WeightInfo {
fn set_members(_m: u32, _n: u32, _p: u32, ) -> Weight;
fn execute(_b: u32, _m: u32, ) -> Weight;
fn propose_execute(_b: u32, _m: u32, ) -> Weight;
fn propose_proposed(_b: u32, _m: u32, _p: u32, ) -> Weight;
fn vote(_m: u32, ) -> Weight;
fn close_early_disapproved(_m: u32, _p: u32, ) -> Weight;
fn close_early_approved(_b: u32, _m: u32, _p: u32, ) -> Weight;
fn close_disapproved(_m: u32, _p: u32, ) -> Weight;
fn close_approved(_b: u32, _m: u32, _p: u32, ) -> Weight;
fn disapprove_proposal(_p: u32, ) -> Weight;
fn set_members(m: u32, n: u32, p: u32, ) -> Weight;
fn execute(b: u32, m: u32, ) -> Weight;
fn propose_execute(b: u32, m: u32, ) -> Weight;
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight;
fn vote(m: u32, ) -> Weight;
fn close_early_disapproved(m: u32, p: u32, ) -> Weight;
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight;
fn close_disapproved(m: u32, p: u32, ) -> Weight;
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight;
fn disapprove_proposal(p: u32, ) -> Weight;
}
/// Weights for pallet_collective using the Substrate node and recommended hardware.
@@ -61,170 +61,194 @@ pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
(0 as Weight)
.saturating_add((20_933_000 as Weight).saturating_mul(m as Weight))
.saturating_add((254_000 as Weight).saturating_mul(n as Weight))
.saturating_add((28_233_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 5_000
.saturating_add((15_266_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 5_000
.saturating_add((39_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 5_000
.saturating_add((20_899_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(p as Weight)))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
fn execute(b: u32, m: u32, ) -> Weight {
(31_147_000 as Weight)
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
.saturating_add((115_000 as Weight).saturating_mul(m as Weight))
(21_945_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((93_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
}
fn propose_execute(b: u32, m: u32, ) -> Weight {
(38_774_000 as Weight)
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
.saturating_add((226_000 as Weight).saturating_mul(m as Weight))
(26_316_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((184_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
}
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
(64_230_000 as Weight)
.saturating_add((5_000 as Weight).saturating_mul(b as Weight))
.saturating_add((138_000 as Weight).saturating_mul(m as Weight))
.saturating_add((637_000 as Weight).saturating_mul(p as Weight))
(42_664_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 2_000
.saturating_add((166_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 2_000
.saturating_add((435_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
fn vote(m: u32, ) -> Weight {
(57_051_000 as Weight)
.saturating_add((220_000 as Weight).saturating_mul(m as Weight))
(43_750_000 as Weight)
// Standard Error: 3_000
.saturating_add((198_000 as Weight).saturating_mul(m as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
(61_406_000 as Weight)
.saturating_add((225_000 as Weight).saturating_mul(m as Weight))
.saturating_add((630_000 as Weight).saturating_mul(p as Weight))
(44_153_000 as Weight)
// Standard Error: 0
.saturating_add((185_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((454_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
(92_864_000 as Weight)
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
.saturating_add((233_000 as Weight).saturating_mul(m as Weight))
.saturating_add((597_000 as Weight).saturating_mul(p as Weight))
(65_478_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 2_000
.saturating_add((167_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 2_000
.saturating_add((434_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_disapproved(m: u32, p: u32, ) -> Weight {
(67_942_000 as Weight)
.saturating_add((232_000 as Weight).saturating_mul(m as Weight))
.saturating_add((636_000 as Weight).saturating_mul(p as Weight))
(49_001_000 as Weight)
// Standard Error: 0
.saturating_add((189_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((464_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
(99_742_000 as Weight)
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
.saturating_add((233_000 as Weight).saturating_mul(m as Weight))
.saturating_add((598_000 as Weight).saturating_mul(p as Weight))
(65_049_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 1_000
.saturating_add((192_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 1_000
.saturating_add((469_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn disapprove_proposal(p: u32, ) -> Weight {
(36_628_000 as Weight)
.saturating_add((640_000 as Weight).saturating_mul(p as Weight))
(27_288_000 as Weight)
// Standard Error: 1_000
.saturating_add((477_000 as Weight).saturating_mul(p as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
fn set_members(m: u32, n: u32, p: u32, ) -> Weight {
(0 as Weight)
.saturating_add((20_933_000 as Weight).saturating_mul(m as Weight))
.saturating_add((254_000 as Weight).saturating_mul(n as Weight))
.saturating_add((28_233_000 as Weight).saturating_mul(p as Weight))
// Standard Error: 5_000
.saturating_add((15_266_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 5_000
.saturating_add((39_000 as Weight).saturating_mul(n as Weight))
// Standard Error: 5_000
.saturating_add((20_899_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().reads((1 as Weight).saturating_mul(p as Weight)))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
.saturating_add(RocksDbWeight::get().writes((1 as Weight).saturating_mul(p as Weight)))
}
fn execute(b: u32, m: u32, ) -> Weight {
(31_147_000 as Weight)
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
.saturating_add((115_000 as Weight).saturating_mul(m as Weight))
(21_945_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((93_000 as Weight).saturating_mul(m as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
}
fn propose_execute(b: u32, m: u32, ) -> Weight {
(38_774_000 as Weight)
.saturating_add((4_000 as Weight).saturating_mul(b as Weight))
.saturating_add((226_000 as Weight).saturating_mul(m as Weight))
(26_316_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 0
.saturating_add((184_000 as Weight).saturating_mul(m as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
}
fn propose_proposed(b: u32, m: u32, p: u32, ) -> Weight {
(64_230_000 as Weight)
.saturating_add((5_000 as Weight).saturating_mul(b as Weight))
.saturating_add((138_000 as Weight).saturating_mul(m as Weight))
.saturating_add((637_000 as Weight).saturating_mul(p as Weight))
(42_664_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 2_000
.saturating_add((166_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 2_000
.saturating_add((435_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
fn vote(m: u32, ) -> Weight {
(57_051_000 as Weight)
.saturating_add((220_000 as Weight).saturating_mul(m as Weight))
(43_750_000 as Weight)
// Standard Error: 3_000
.saturating_add((198_000 as Weight).saturating_mul(m as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn close_early_disapproved(m: u32, p: u32, ) -> Weight {
(61_406_000 as Weight)
.saturating_add((225_000 as Weight).saturating_mul(m as Weight))
.saturating_add((630_000 as Weight).saturating_mul(p as Weight))
(44_153_000 as Weight)
// Standard Error: 0
.saturating_add((185_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((454_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn close_early_approved(b: u32, m: u32, p: u32, ) -> Weight {
(92_864_000 as Weight)
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
.saturating_add((233_000 as Weight).saturating_mul(m as Weight))
.saturating_add((597_000 as Weight).saturating_mul(p as Weight))
(65_478_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 2_000
.saturating_add((167_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 2_000
.saturating_add((434_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn close_disapproved(m: u32, p: u32, ) -> Weight {
(67_942_000 as Weight)
.saturating_add((232_000 as Weight).saturating_mul(m as Weight))
.saturating_add((636_000 as Weight).saturating_mul(p as Weight))
(49_001_000 as Weight)
// Standard Error: 0
.saturating_add((189_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 0
.saturating_add((464_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn close_approved(b: u32, m: u32, p: u32, ) -> Weight {
(99_742_000 as Weight)
.saturating_add((1_000 as Weight).saturating_mul(b as Weight))
.saturating_add((233_000 as Weight).saturating_mul(m as Weight))
.saturating_add((598_000 as Weight).saturating_mul(p as Weight))
(65_049_000 as Weight)
// Standard Error: 0
.saturating_add((3_000 as Weight).saturating_mul(b as Weight))
// Standard Error: 1_000
.saturating_add((192_000 as Weight).saturating_mul(m as Weight))
// Standard Error: 1_000
.saturating_add((469_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn disapprove_proposal(p: u32, ) -> Weight {
(36_628_000 as Weight)
.saturating_add((640_000 as Weight).saturating_mul(p as Weight))
(27_288_000 as Weight)
// Standard Error: 1_000
.saturating_add((477_000 as Weight).saturating_mul(p as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
}