mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 05:51:02 +00:00
5263f269da
Co-authored-by: paritytech-ci <paritytech-ci@parity.io> Co-authored-by: Egor_P <egor@parity.io> Co-authored-by: paritytech-ci <paritytech-ci@parity.io>
168 lines
6.9 KiB
Rust
168 lines
6.9 KiB
Rust
// Copyright 2021 Parity Technologies (UK) Ltd.
|
|
// This file is part of Cumulus.
|
|
|
|
// Cumulus is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Cumulus is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_proxy`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2022-12-05, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./artifacts/polkadot-parachain
|
|
// benchmark
|
|
// pallet
|
|
// --chain=statemint-dev
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --pallet=pallet_proxy
|
|
// --extrinsic=*
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --json
|
|
// --header=./file_header.txt
|
|
// --output=./parachains/runtimes/assets/statemint/src/weights/pallet_proxy.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use sp_std::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_proxy`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
|
// Storage: Proxy Proxies (r:1 w:0)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn proxy(p: u32, ) -> Weight {
|
|
// Minimum execution time: 25_254 nanoseconds.
|
|
Weight::from_ref_time(26_132_445 as u64)
|
|
// Standard Error: 1_743
|
|
.saturating_add(Weight::from_ref_time(54_439 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:0)
|
|
// Storage: Proxy Announcements (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
|
// Minimum execution time: 46_342 nanoseconds.
|
|
Weight::from_ref_time(45_725_750 as u64)
|
|
// Standard Error: 1_808
|
|
.saturating_add(Weight::from_ref_time(138_485 as u64).saturating_mul(a as u64))
|
|
// Standard Error: 1_868
|
|
.saturating_add(Weight::from_ref_time(61_352 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Proxy Announcements (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
|
// Minimum execution time: 31_401 nanoseconds.
|
|
Weight::from_ref_time(31_943_493 as u64)
|
|
// Standard Error: 1_324
|
|
.saturating_add(Weight::from_ref_time(148_204 as u64).saturating_mul(a as u64))
|
|
// Standard Error: 1_368
|
|
.saturating_add(Weight::from_ref_time(19_983 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Proxy Announcements (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
|
// Minimum execution time: 31_010 nanoseconds.
|
|
Weight::from_ref_time(31_673_140 as u64)
|
|
// Standard Error: 1_377
|
|
.saturating_add(Weight::from_ref_time(148_189 as u64).saturating_mul(a as u64))
|
|
// Standard Error: 1_423
|
|
.saturating_add(Weight::from_ref_time(17_246 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:0)
|
|
// Storage: Proxy Announcements (r:1 w:1)
|
|
// Storage: System Account (r:1 w:1)
|
|
/// The range of component `a` is `[0, 31]`.
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn announce(a: u32, p: u32, ) -> Weight {
|
|
// Minimum execution time: 41_238 nanoseconds.
|
|
Weight::from_ref_time(41_151_045 as u64)
|
|
// Standard Error: 1_625
|
|
.saturating_add(Weight::from_ref_time(138_750 as u64).saturating_mul(a as u64))
|
|
// Standard Error: 1_679
|
|
.saturating_add(Weight::from_ref_time(72_307 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(3 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(2 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn add_proxy(p: u32, ) -> Weight {
|
|
// Minimum execution time: 33_831 nanoseconds.
|
|
Weight::from_ref_time(34_804_281 as u64)
|
|
// Standard Error: 2_162
|
|
.saturating_add(Weight::from_ref_time(71_594 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxy(p: u32, ) -> Weight {
|
|
// Minimum execution time: 33_132 nanoseconds.
|
|
Weight::from_ref_time(34_841_976 as u64)
|
|
// Standard Error: 2_607
|
|
.saturating_add(Weight::from_ref_time(86_453 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxies(p: u32, ) -> Weight {
|
|
// Minimum execution time: 29_072 nanoseconds.
|
|
Weight::from_ref_time(30_153_086 as u64)
|
|
// Standard Error: 1_765
|
|
.saturating_add(Weight::from_ref_time(40_683 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn create_pure(p: u32, ) -> Weight {
|
|
// Minimum execution time: 36_373 nanoseconds.
|
|
Weight::from_ref_time(37_535_652 as u64)
|
|
// Standard Error: 1_789
|
|
.saturating_add(Weight::from_ref_time(9_374 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(2 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[0, 30]`.
|
|
fn kill_pure(p: u32, ) -> Weight {
|
|
// Minimum execution time: 30_320 nanoseconds.
|
|
Weight::from_ref_time(31_278_960 as u64)
|
|
// Standard Error: 4_198
|
|
.saturating_add(Weight::from_ref_time(65_081 as u64).saturating_mul(p as u64))
|
|
.saturating_add(T::DbWeight::get().reads(1 as u64))
|
|
.saturating_add(T::DbWeight::get().writes(1 as u64))
|
|
}
|
|
}
|