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
+41 -43
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_vesting
//! 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_vesting
//!
//! 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:
@@ -49,100 +50,97 @@ pub trait WeightInfo {
fn vest_other_unlocked(l: u32, ) -> Weight;
fn vested_transfer(l: u32, ) -> Weight;
fn force_vested_transfer(l: u32, ) -> Weight;
}
/// Weights for pallet_vesting using the Substrate node and recommended hardware.
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn vest_locked(l: u32, ) -> Weight {
(57_472_000 as Weight)
.saturating_add((155_000 as Weight).saturating_mul(l as Weight))
(42_905_000 as Weight)
// Standard Error: 13_000
.saturating_add((232_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn vest_unlocked(l: u32, ) -> Weight {
(61_681_000 as Weight)
.saturating_add((138_000 as Weight).saturating_mul(l as Weight))
(45_650_000 as Weight)
// Standard Error: 12_000
.saturating_add((215_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn vest_other_locked(l: u32, ) -> Weight {
(56_910_000 as Weight)
.saturating_add((160_000 as Weight).saturating_mul(l as Weight))
(42_273_000 as Weight)
// Standard Error: 15_000
.saturating_add((246_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn vest_other_unlocked(l: u32, ) -> Weight {
(61_319_000 as Weight)
.saturating_add((144_000 as Weight).saturating_mul(l as Weight))
(45_324_000 as Weight)
// Standard Error: 12_000
.saturating_add((214_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn vested_transfer(l: u32, ) -> Weight {
(124_996_000 as Weight)
.saturating_add((209_000 as Weight).saturating_mul(l as Weight))
(96_661_000 as Weight)
// Standard Error: 10_000
.saturating_add((211_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn force_vested_transfer(l: u32, ) -> Weight {
(123_911_000 as Weight)
.saturating_add((213_000 as Weight).saturating_mul(l as Weight))
(98_812_000 as Weight)
// Standard Error: 13_000
.saturating_add((139_000 as Weight).saturating_mul(l as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
fn vest_locked(l: u32, ) -> Weight {
(57_472_000 as Weight)
.saturating_add((155_000 as Weight).saturating_mul(l as Weight))
(42_905_000 as Weight)
// Standard Error: 13_000
.saturating_add((232_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn vest_unlocked(l: u32, ) -> Weight {
(61_681_000 as Weight)
.saturating_add((138_000 as Weight).saturating_mul(l as Weight))
(45_650_000 as Weight)
// Standard Error: 12_000
.saturating_add((215_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn vest_other_locked(l: u32, ) -> Weight {
(56_910_000 as Weight)
.saturating_add((160_000 as Weight).saturating_mul(l as Weight))
(42_273_000 as Weight)
// Standard Error: 15_000
.saturating_add((246_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn vest_other_unlocked(l: u32, ) -> Weight {
(61_319_000 as Weight)
.saturating_add((144_000 as Weight).saturating_mul(l as Weight))
(45_324_000 as Weight)
// Standard Error: 12_000
.saturating_add((214_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn vested_transfer(l: u32, ) -> Weight {
(124_996_000 as Weight)
.saturating_add((209_000 as Weight).saturating_mul(l as Weight))
(96_661_000 as Weight)
// Standard Error: 10_000
.saturating_add((211_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn force_vested_transfer(l: u32, ) -> Weight {
(123_911_000 as Weight)
.saturating_add((213_000 as Weight).saturating_mul(l as Weight))
(98_812_000 as Weight)
// Standard Error: 13_000
.saturating_add((139_000 as Weight).saturating_mul(l as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
.saturating_add(RocksDbWeight::get().writes(4 as Weight))
}
}