Files
pezkuwi-subxt/substrate/frame/proxy/src/weights.rs
T
Vivek Pandya bc53b9a03a Remove years from copyright notes. (#13415)
* Change copyright year to 2023 from 2022

* Fix incorrect update of copyright year

* Remove years from copy right header

* Fix remaining files

* Fix typo in a header and remove update-copyright.sh
2023-02-21 18:46:41 +00:00

397 lines
17 KiB
Rust

// This file is part of Substrate.
// Copyright (C) Parity Technologies (UK) Ltd.
// SPDX-License-Identifier: Apache-2.0
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//! Autogenerated weights for pallet_proxy
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm2`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/substrate
// benchmark
// pallet
// --chain=dev
// --steps=50
// --repeat=20
// --pallet=pallet_proxy
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./frame/proxy/src/weights.rs
// --header=./HEADER-APACHE2
// --template=./.maintain/frame-weight-template.hbs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
use sp_std::marker::PhantomData;
/// Weight functions needed for pallet_proxy.
pub trait WeightInfo {
fn proxy(p: u32, ) -> Weight;
fn proxy_announced(a: u32, p: u32, ) -> Weight;
fn remove_announcement(a: u32, p: u32, ) -> Weight;
fn reject_announcement(a: u32, p: u32, ) -> Weight;
fn announce(a: u32, p: u32, ) -> Weight;
fn add_proxy(p: u32, ) -> Weight;
fn remove_proxy(p: u32, ) -> Weight;
fn remove_proxies(p: u32, ) -> Weight;
fn create_pure(p: u32, ) -> Weight;
fn kill_pure(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> {
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 14_461 nanoseconds.
Weight::from_parts(14_913_927, 3716)
// Standard Error: 1_174
.saturating_add(Weight::from_ref_time(36_087).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn proxy_announced(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `584 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `11027`
// Minimum execution time: 31_523 nanoseconds.
Weight::from_parts(31_116_270, 11027)
// Standard Error: 1_789
.saturating_add(Weight::from_ref_time(135_656).saturating_mul(a.into()))
// Standard Error: 1_849
.saturating_add(Weight::from_ref_time(53_893).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `467 + a * (68 ±0)`
// Estimated: `7311`
// Minimum execution time: 19_363 nanoseconds.
Weight::from_parts(20_282_191, 7311)
// Standard Error: 1_084
.saturating_add(Weight::from_ref_time(133_825).saturating_mul(a.into()))
// Standard Error: 1_120
.saturating_add(Weight::from_ref_time(3_434).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn reject_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `467 + a * (68 ±0)`
// Estimated: `7311`
// Minimum execution time: 19_363 nanoseconds.
Weight::from_parts(20_211_584, 7311)
// Standard Error: 1_171
.saturating_add(Weight::from_ref_time(136_984).saturating_mul(a.into()))
// Standard Error: 1_210
.saturating_add(Weight::from_ref_time(3_686).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(2_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `516 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `11027`
// Minimum execution time: 27_811 nanoseconds.
Weight::from_parts(27_965_813, 11027)
// Standard Error: 1_987
.saturating_add(Weight::from_ref_time(124_133).saturating_mul(a.into()))
// Standard Error: 2_053
.saturating_add(Weight::from_ref_time(54_692).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(3_u64))
.saturating_add(T::DbWeight::get().writes(2_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 20_922 nanoseconds.
Weight::from_parts(21_551_797, 3716)
// Standard Error: 1_425
.saturating_add(Weight::from_ref_time(58_434).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 20_812 nanoseconds.
Weight::from_parts(21_660_732, 3716)
// Standard Error: 1_438
.saturating_add(Weight::from_ref_time(68_740).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 16_786 nanoseconds.
Weight::from_parts(17_249_958, 3716)
// Standard Error: 1_007
.saturating_add(Weight::from_ref_time(37_546).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Estimated: `3716`
// Minimum execution time: 22_764 nanoseconds.
Weight::from_parts(23_539_039, 3716)
// Standard Error: 814
.saturating_add(Weight::from_ref_time(144).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `230 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 17_720 nanoseconds.
Weight::from_parts(18_428_849, 3716)
// Standard Error: 1_093
.saturating_add(Weight::from_ref_time(34_600).saturating_mul(p.into()))
.saturating_add(T::DbWeight::get().reads(1_u64))
.saturating_add(T::DbWeight::get().writes(1_u64))
}
}
// For backwards compatibility and tests
impl WeightInfo for () {
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 14_461 nanoseconds.
Weight::from_parts(14_913_927, 3716)
// Standard Error: 1_174
.saturating_add(Weight::from_ref_time(36_087).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn proxy_announced(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `584 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `11027`
// Minimum execution time: 31_523 nanoseconds.
Weight::from_parts(31_116_270, 11027)
// Standard Error: 1_789
.saturating_add(Weight::from_ref_time(135_656).saturating_mul(a.into()))
// Standard Error: 1_849
.saturating_add(Weight::from_ref_time(53_893).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn remove_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `467 + a * (68 ±0)`
// Estimated: `7311`
// Minimum execution time: 19_363 nanoseconds.
Weight::from_parts(20_282_191, 7311)
// Standard Error: 1_084
.saturating_add(Weight::from_ref_time(133_825).saturating_mul(a.into()))
// Standard Error: 1_120
.saturating_add(Weight::from_ref_time(3_434).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn reject_announcement(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `467 + a * (68 ±0)`
// Estimated: `7311`
// Minimum execution time: 19_363 nanoseconds.
Weight::from_parts(20_211_584, 7311)
// Standard Error: 1_171
.saturating_add(Weight::from_ref_time(136_984).saturating_mul(a.into()))
// Standard Error: 1_210
.saturating_add(Weight::from_ref_time(3_686).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(2_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Proxy Proxies (r:1 w:0)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// Storage: Proxy Announcements (r:1 w:1)
/// Proof: Proxy Announcements (max_values: None, max_size: Some(2233), added: 4708, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:1)
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
/// The range of component `a` is `[0, 31]`.
/// The range of component `p` is `[1, 31]`.
fn announce(a: u32, p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `516 + a * (68 ±0) + p * (37 ±0)`
// Estimated: `11027`
// Minimum execution time: 27_811 nanoseconds.
Weight::from_parts(27_965_813, 11027)
// Standard Error: 1_987
.saturating_add(Weight::from_ref_time(124_133).saturating_mul(a.into()))
// Standard Error: 2_053
.saturating_add(Weight::from_ref_time(54_692).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(3_u64))
.saturating_add(RocksDbWeight::get().writes(2_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn add_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 20_922 nanoseconds.
Weight::from_parts(21_551_797, 3716)
// Standard Error: 1_425
.saturating_add(Weight::from_ref_time(58_434).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxy(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 20_812 nanoseconds.
Weight::from_parts(21_660_732, 3716)
// Standard Error: 1_438
.saturating_add(Weight::from_ref_time(68_740).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn remove_proxies(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `193 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 16_786 nanoseconds.
Weight::from_parts(17_249_958, 3716)
// Standard Error: 1_007
.saturating_add(Weight::from_ref_time(37_546).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[1, 31]`.
fn create_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `173`
// Estimated: `3716`
// Minimum execution time: 22_764 nanoseconds.
Weight::from_parts(23_539_039, 3716)
// Standard Error: 814
.saturating_add(Weight::from_ref_time(144).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
/// Storage: Proxy Proxies (r:1 w:1)
/// Proof: Proxy Proxies (max_values: None, max_size: Some(1241), added: 3716, mode: MaxEncodedLen)
/// The range of component `p` is `[0, 30]`.
fn kill_pure(p: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `230 + p * (37 ±0)`
// Estimated: `3716`
// Minimum execution time: 17_720 nanoseconds.
Weight::from_parts(18_428_849, 3716)
// Standard Error: 1_093
.saturating_add(Weight::from_ref_time(34_600).saturating_mul(p.into()))
.saturating_add(RocksDbWeight::get().reads(1_u64))
.saturating_add(RocksDbWeight::get().writes(1_u64))
}
}