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
+29 -31
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_scheduler
//! 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_scheduler
//!
//! 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:
@@ -47,72 +48,69 @@ pub trait WeightInfo {
fn cancel(s: u32, ) -> Weight;
fn schedule_named(s: u32, ) -> Weight;
fn cancel_named(s: u32, ) -> Weight;
}
/// Weights for pallet_scheduler using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn schedule(s: u32, ) -> Weight {
(35_029_000 as Weight)
.saturating_add((77_000 as Weight).saturating_mul(s as Weight))
(24_811_000 as Weight)
// Standard Error: 1_000
.saturating_add((116_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn cancel(s: u32, ) -> Weight {
(31_419_000 as Weight)
.saturating_add((4_015_000 as Weight).saturating_mul(s as Weight))
(23_851_000 as Weight)
// Standard Error: 3_000
.saturating_add((1_439_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn schedule_named(s: u32, ) -> Weight {
(44_752_000 as Weight)
.saturating_add((123_000 as Weight).saturating_mul(s as Weight))
(31_096_000 as Weight)
// Standard Error: 1_000
.saturating_add((141_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn cancel_named(s: u32, ) -> Weight {
(35_712_000 as Weight)
.saturating_add((4_008_000 as Weight).saturating_mul(s as Weight))
(26_715_000 as Weight)
// Standard Error: 4_000
.saturating_add((1_455_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
fn schedule(s: u32, ) -> Weight {
(35_029_000 as Weight)
.saturating_add((77_000 as Weight).saturating_mul(s as Weight))
(24_811_000 as Weight)
// Standard Error: 1_000
.saturating_add((116_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn cancel(s: u32, ) -> Weight {
(31_419_000 as Weight)
.saturating_add((4_015_000 as Weight).saturating_mul(s as Weight))
(23_851_000 as Weight)
// Standard Error: 3_000
.saturating_add((1_439_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn schedule_named(s: u32, ) -> Weight {
(44_752_000 as Weight)
.saturating_add((123_000 as Weight).saturating_mul(s as Weight))
(31_096_000 as Weight)
// Standard Error: 1_000
.saturating_add((141_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn cancel_named(s: u32, ) -> Weight {
(35_712_000 as Weight)
.saturating_add((4_008_000 as Weight).saturating_mul(s as Weight))
(26_715_000 as Weight)
// Standard Error: 4_000
.saturating_add((1_455_000 as Weight).saturating_mul(s as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
}