mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
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:
@@ -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_proxy
|
||||
//! 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_proxy
|
||||
//!
|
||||
//! 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:
|
||||
@@ -53,162 +54,167 @@ pub trait WeightInfo {
|
||||
fn remove_proxies(p: u32, ) -> Weight;
|
||||
fn anonymous(p: u32, ) -> Weight;
|
||||
fn kill_anonymous(p: u32, ) -> Weight;
|
||||
|
||||
}
|
||||
|
||||
/// Weights for pallet_proxy using the Substrate node and recommended hardware.
|
||||
pub struct SubstrateWeight<T>(PhantomData<T>);
|
||||
impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
(32_194_000 as Weight)
|
||||
.saturating_add((215_000 as Weight).saturating_mul(p as Weight))
|
||||
(22_645_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((162_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
|
||||
}
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
(67_490_000 as Weight)
|
||||
.saturating_add((859_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((215_000 as Weight).saturating_mul(p as Weight))
|
||||
(53_259_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((543_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(40_768_000 as Weight)
|
||||
.saturating_add((882_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((122_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_983_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((545_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((4_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(42_742_000 as Weight)
|
||||
.saturating_add((852_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((22_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_922_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((541_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((6_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
(67_967_000 as Weight)
|
||||
.saturating_add((737_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((213_000 as Weight).saturating_mul(p as Weight))
|
||||
(51_355_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((534_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((148_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
(45_245_000 as Weight)
|
||||
.saturating_add((240_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_798_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((228_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
(40_742_000 as Weight)
|
||||
.saturating_add((272_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_554_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((250_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
(39_070_000 as Weight)
|
||||
.saturating_add((214_000 as Weight).saturating_mul(p as Weight))
|
||||
(33_911_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((165_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn anonymous(p: u32, ) -> Weight {
|
||||
(64_851_000 as Weight)
|
||||
.saturating_add((37_000 as Weight).saturating_mul(p as Weight))
|
||||
(48_695_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((53_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn kill_anonymous(p: u32, ) -> Weight {
|
||||
(41_831_000 as Weight)
|
||||
.saturating_add((207_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_904_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((159_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// For backwards compatibility and tests
|
||||
impl WeightInfo for () {
|
||||
fn proxy(p: u32, ) -> Weight {
|
||||
(32_194_000 as Weight)
|
||||
.saturating_add((215_000 as Weight).saturating_mul(p as Weight))
|
||||
(22_645_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((162_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
|
||||
}
|
||||
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||
(67_490_000 as Weight)
|
||||
.saturating_add((859_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((215_000 as Weight).saturating_mul(p as Weight))
|
||||
(53_259_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((543_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((153_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(40_768_000 as Weight)
|
||||
.saturating_add((882_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((122_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_983_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((545_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((4_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||
(42_742_000 as Weight)
|
||||
.saturating_add((852_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((22_000 as Weight).saturating_mul(p as Weight))
|
||||
(37_922_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((541_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((6_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn announce(a: u32, p: u32, ) -> Weight {
|
||||
(67_967_000 as Weight)
|
||||
.saturating_add((737_000 as Weight).saturating_mul(a as Weight))
|
||||
.saturating_add((213_000 as Weight).saturating_mul(p as Weight))
|
||||
(51_355_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((534_000 as Weight).saturating_mul(a as Weight))
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((148_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
|
||||
|
||||
}
|
||||
fn add_proxy(p: u32, ) -> Weight {
|
||||
(45_245_000 as Weight)
|
||||
.saturating_add((240_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_798_000 as Weight)
|
||||
// Standard Error: 2_000
|
||||
.saturating_add((228_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn remove_proxy(p: u32, ) -> Weight {
|
||||
(40_742_000 as Weight)
|
||||
.saturating_add((272_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_554_000 as Weight)
|
||||
// Standard Error: 3_000
|
||||
.saturating_add((250_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn remove_proxies(p: u32, ) -> Weight {
|
||||
(39_070_000 as Weight)
|
||||
.saturating_add((214_000 as Weight).saturating_mul(p as Weight))
|
||||
(33_911_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((165_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn anonymous(p: u32, ) -> Weight {
|
||||
(64_851_000 as Weight)
|
||||
.saturating_add((37_000 as Weight).saturating_mul(p as Weight))
|
||||
(48_695_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((53_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
fn kill_anonymous(p: u32, ) -> Weight {
|
||||
(41_831_000 as Weight)
|
||||
.saturating_add((207_000 as Weight).saturating_mul(p as Weight))
|
||||
(35_904_000 as Weight)
|
||||
// Standard Error: 1_000
|
||||
.saturating_add((159_000 as Weight).saturating_mul(p as Weight))
|
||||
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
|
||||
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user