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
+27 -27
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");
@@ -17,8 +17,8 @@
//! Autogenerated weights for pallet_tips
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.0
//! DATE: 2020-12-20, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []
//! 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:
@@ -56,44 +56,44 @@ pub trait WeightInfo {
pub struct SubstrateWeight<T>(PhantomData<T>);
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn report_awesome(r: u32, ) -> Weight {
(73_795_000 as Weight)
(49_844_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn retract_tip() -> Weight {
(61_753_000 as Weight)
(45_934_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn tip_new(r: u32, t: u32, ) -> Weight {
(47_731_000 as Weight)
(31_777_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((154_000 as Weight).saturating_mul(t as Weight))
.saturating_add((127_000 as Weight).saturating_mul(t as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
fn tip(t: u32, ) -> Weight {
(35_215_000 as Weight)
// Standard Error: 1_000
.saturating_add((712_000 as Weight).saturating_mul(t as Weight))
(22_361_000 as Weight)
// Standard Error: 0
.saturating_add((584_000 as Weight).saturating_mul(t as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
fn close_tip(t: u32, ) -> Weight {
(117_027_000 as Weight)
// Standard Error: 1_000
.saturating_add((375_000 as Weight).saturating_mul(t as Weight))
(84_470_000 as Weight)
// Standard Error: 0
.saturating_add((326_000 as Weight).saturating_mul(t as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
fn slash_tip(t: u32, ) -> Weight {
(37_184_000 as Weight)
(25_214_000 as Weight)
// Standard Error: 0
.saturating_add((11_000 as Weight).saturating_mul(t as Weight))
.saturating_add((8_000 as Weight).saturating_mul(t as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
@@ -102,44 +102,44 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// For backwards compatibility and tests
impl WeightInfo for () {
fn report_awesome(r: u32, ) -> Weight {
(73_795_000 as Weight)
(49_844_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn retract_tip() -> Weight {
(61_753_000 as Weight)
(45_934_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn tip_new(r: u32, t: u32, ) -> Weight {
(47_731_000 as Weight)
(31_777_000 as Weight)
// Standard Error: 0
.saturating_add((2_000 as Weight).saturating_mul(r as Weight))
// Standard Error: 0
.saturating_add((154_000 as Weight).saturating_mul(t as Weight))
.saturating_add((127_000 as Weight).saturating_mul(t as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
fn tip(t: u32, ) -> Weight {
(35_215_000 as Weight)
// Standard Error: 1_000
.saturating_add((712_000 as Weight).saturating_mul(t as Weight))
(22_361_000 as Weight)
// Standard Error: 0
.saturating_add((584_000 as Weight).saturating_mul(t as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
fn close_tip(t: u32, ) -> Weight {
(117_027_000 as Weight)
// Standard Error: 1_000
.saturating_add((375_000 as Weight).saturating_mul(t as Weight))
(84_470_000 as Weight)
// Standard Error: 0
.saturating_add((326_000 as Weight).saturating_mul(t as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
fn slash_tip(t: u32, ) -> Weight {
(37_184_000 as Weight)
(25_214_000 as Weight)
// Standard Error: 0
.saturating_add((11_000 as Weight).saturating_mul(t as Weight))
.saturating_add((8_000 as Weight).saturating_mul(t as Weight))
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}