mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 09:21:04 +00:00
8ff50d0fa7
* kusama: update weights * polkadot: update weights * westend: update weights * rococo: update weights
166 lines
6.6 KiB
Rust
166 lines
6.6 KiB
Rust
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
|
|
// This file is part of Polkadot.
|
|
|
|
// Polkadot 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.
|
|
|
|
// Polkadot 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 Polkadot. 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: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=kusama-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_proxy
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/kusama/src/weights/
|
|
|
|
#![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: 20_801 nanoseconds.
|
|
Weight::from_ref_time(21_560_080)
|
|
// Standard Error: 1_302
|
|
.saturating_add(Weight::from_ref_time(44_224).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
}
|
|
// 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: 38_685 nanoseconds.
|
|
Weight::from_ref_time(39_702_190)
|
|
// Standard Error: 3_040
|
|
.saturating_add(Weight::from_ref_time(109_577).saturating_mul(a.into()))
|
|
// Standard Error: 3_141
|
|
.saturating_add(Weight::from_ref_time(33_950).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// 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: 27_051 nanoseconds.
|
|
Weight::from_ref_time(27_757_501)
|
|
// Standard Error: 1_470
|
|
.saturating_add(Weight::from_ref_time(125_076).saturating_mul(a.into()))
|
|
// Standard Error: 1_519
|
|
.saturating_add(Weight::from_ref_time(11_510).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// 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: 26_492 nanoseconds.
|
|
Weight::from_ref_time(27_898_436)
|
|
// Standard Error: 1_648
|
|
.saturating_add(Weight::from_ref_time(126_621).saturating_mul(a.into()))
|
|
// Standard Error: 1_703
|
|
.saturating_add(Weight::from_ref_time(28).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// 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: 34_689 nanoseconds.
|
|
Weight::from_ref_time(35_552_710)
|
|
// Standard Error: 2_196
|
|
.saturating_add(Weight::from_ref_time(126_812).saturating_mul(a.into()))
|
|
// Standard Error: 2_269
|
|
.saturating_add(Weight::from_ref_time(45_635).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn add_proxy(p: u32, ) -> Weight {
|
|
// Minimum execution time: 27_974 nanoseconds.
|
|
Weight::from_ref_time(29_745_940)
|
|
// Standard Error: 2_028
|
|
.saturating_add(Weight::from_ref_time(69_669).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxy(p: u32, ) -> Weight {
|
|
// Minimum execution time: 28_076 nanoseconds.
|
|
Weight::from_ref_time(29_852_822)
|
|
// Standard Error: 2_338
|
|
.saturating_add(Weight::from_ref_time(83_273).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[1, 31]`.
|
|
fn remove_proxies(p: u32, ) -> Weight {
|
|
// Minimum execution time: 24_751 nanoseconds.
|
|
Weight::from_ref_time(26_198_385)
|
|
// Standard Error: 1_915
|
|
.saturating_add(Weight::from_ref_time(44_128).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// 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: 31_599 nanoseconds.
|
|
Weight::from_ref_time(33_127_853)
|
|
// Standard Error: 1_912
|
|
.saturating_add(Weight::from_ref_time(15_273).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
// Storage: Proxy Proxies (r:1 w:1)
|
|
/// The range of component `p` is `[0, 30]`.
|
|
fn kill_pure(p: u32, ) -> Weight {
|
|
// Minimum execution time: 26_880 nanoseconds.
|
|
Weight::from_ref_time(27_558_719)
|
|
// Standard Error: 2_989
|
|
.saturating_add(Weight::from_ref_time(60_878).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|