mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-22 03:15:42 +00:00
63d1641b1e
* polkadot: update weights * westend: update weights * kusama: update weights * rococo: update weights
351 lines
16 KiB
Rust
351 lines
16 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_identity`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
|
//! DATE: 2023-02-28, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `bm6`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
|
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/production/polkadot
|
|
// benchmark
|
|
// pallet
|
|
// --chain=rococo-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_identity
|
|
// --extrinsic=*
|
|
// --execution=wasm
|
|
// --wasm-execution=compiled
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/rococo/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_identity`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_identity::WeightInfo for WeightInfo<T> {
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn add_registrar(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `64 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 11_925 nanoseconds.
|
|
Weight::from_ref_time(12_665_139)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_963
|
|
.saturating_add(Weight::from_ref_time(72_276).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn set_identity(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `474 + r * (5 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 28_918 nanoseconds.
|
|
Weight::from_ref_time(28_097_477)
|
|
.saturating_add(Weight::from_proof_size(10013))
|
|
// Standard Error: 3_576
|
|
.saturating_add(Weight::from_ref_time(77_253).saturating_mul(r.into()))
|
|
// Standard Error: 697
|
|
.saturating_add(Weight::from_ref_time(449_336).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:100 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 100]`.
|
|
fn set_subs_new(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `101`
|
|
// Estimated: `15746 + s * (2589 ±0)`
|
|
// Minimum execution time: 8_955 nanoseconds.
|
|
Weight::from_ref_time(21_965_439)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 6_060
|
|
.saturating_add(Weight::from_ref_time(2_820_536).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
.saturating_add(Weight::from_proof_size(2589).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `p` is `[0, 100]`.
|
|
fn set_subs_old(p: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `226 + p * (32 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 8_824 nanoseconds.
|
|
Weight::from_ref_time(21_568_996)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 3_185
|
|
.saturating_add(Weight::from_ref_time(1_111_881).saturating_mul(p.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))
|
|
}
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `533 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `15746`
|
|
// Minimum execution time: 49_012 nanoseconds.
|
|
Weight::from_ref_time(27_982_974)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 4_404
|
|
.saturating_add(Weight::from_ref_time(40_856).saturating_mul(r.into()))
|
|
// Standard Error: 860
|
|
.saturating_add(Weight::from_ref_time(1_095_905).saturating_mul(s.into()))
|
|
// Standard Error: 860
|
|
.saturating_add(Weight::from_ref_time(229_635).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:0)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn request_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `431 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 29_213 nanoseconds.
|
|
Weight::from_ref_time(29_949_444)
|
|
.saturating_add(Weight::from_proof_size(11649))
|
|
// Standard Error: 6_424
|
|
.saturating_add(Weight::from_ref_time(28_127).saturating_mul(r.into()))
|
|
// Standard Error: 1_253
|
|
.saturating_add(Weight::from_ref_time(469_679).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn cancel_request(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `430 + x * (66 ±0)`
|
|
// Estimated: `10013`
|
|
// Minimum execution time: 26_570 nanoseconds.
|
|
Weight::from_ref_time(25_883_542)
|
|
.saturating_add(Weight::from_proof_size(10013))
|
|
// Standard Error: 4_190
|
|
.saturating_add(Weight::from_ref_time(83_705).saturating_mul(r.into()))
|
|
// Standard Error: 817
|
|
.saturating_add(Weight::from_ref_time(466_224).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_fee(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 7_721 nanoseconds.
|
|
Weight::from_ref_time(8_180_083)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 2_124
|
|
.saturating_add(Weight::from_ref_time(64_849).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_account_id(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 7_264 nanoseconds.
|
|
Weight::from_ref_time(7_794_379)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_240
|
|
.saturating_add(Weight::from_ref_time(84_998).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:1)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
fn set_fields(r: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `121 + r * (57 ±0)`
|
|
// Estimated: `1636`
|
|
// Minimum execution time: 7_054 nanoseconds.
|
|
Weight::from_ref_time(7_654_187)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_266
|
|
.saturating_add(Weight::from_ref_time(90_481).saturating_mul(r.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity Registrars (r:1 w:0)
|
|
/// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 19]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn provide_judgement(r: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `509 + r * (57 ±0) + x * (66 ±0)`
|
|
// Estimated: `11649`
|
|
// Minimum execution time: 22_652 nanoseconds.
|
|
Weight::from_ref_time(23_126_063)
|
|
.saturating_add(Weight::from_proof_size(11649))
|
|
// Standard Error: 5_983
|
|
.saturating_add(Weight::from_ref_time(46_117).saturating_mul(r.into()))
|
|
// Standard Error: 1_107
|
|
.saturating_add(Weight::from_ref_time(769_575).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// Storage: Identity IdentityOf (r:1 w:1)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: System Account (r:1 w:1)
|
|
/// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:0 w:100)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `r` is `[1, 20]`.
|
|
/// The range of component `s` is `[0, 100]`.
|
|
/// The range of component `x` is `[0, 100]`.
|
|
fn kill_identity(_r: u32, s: u32, x: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `772 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`
|
|
// Estimated: `18349`
|
|
// Minimum execution time: 62_780 nanoseconds.
|
|
Weight::from_ref_time(43_731_161)
|
|
.saturating_add(Weight::from_proof_size(18349))
|
|
// Standard Error: 1_194
|
|
.saturating_add(Weight::from_ref_time(1_103_649).saturating_mul(s.into()))
|
|
// Standard Error: 1_194
|
|
.saturating_add(Weight::from_ref_time(226_342).saturating_mul(x.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 99]`.
|
|
fn add_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `507 + s * (36 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 26_340 nanoseconds.
|
|
Weight::from_ref_time(31_104_975)
|
|
.saturating_add(Weight::from_proof_size(18335))
|
|
// Standard Error: 1_390
|
|
.saturating_add(Weight::from_ref_time(61_166).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[1, 100]`.
|
|
fn rename_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `623 + s * (3 ±0)`
|
|
// Estimated: `12602`
|
|
// Minimum execution time: 12_270 nanoseconds.
|
|
Weight::from_ref_time(14_537_982)
|
|
.saturating_add(Weight::from_proof_size(12602))
|
|
// Standard Error: 636
|
|
.saturating_add(Weight::from_ref_time(17_033).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: Identity IdentityOf (r:1 w:0)
|
|
/// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[1, 100]`.
|
|
fn remove_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `702 + s * (35 ±0)`
|
|
// Estimated: `18335`
|
|
// Minimum execution time: 29_575 nanoseconds.
|
|
Weight::from_ref_time(32_700_041)
|
|
.saturating_add(Weight::from_proof_size(18335))
|
|
// Standard Error: 1_036
|
|
.saturating_add(Weight::from_ref_time(47_756).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: Identity SuperOf (r:1 w:1)
|
|
/// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)
|
|
/// Storage: Identity SubsOf (r:1 w:1)
|
|
/// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)
|
|
/// The range of component `s` is `[0, 99]`.
|
|
fn quit_sub(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `628 + s * (37 ±0)`
|
|
// Estimated: `8322`
|
|
// Minimum execution time: 19_365 nanoseconds.
|
|
Weight::from_ref_time(22_147_406)
|
|
.saturating_add(Weight::from_proof_size(8322))
|
|
// Standard Error: 1_052
|
|
.saturating_add(Weight::from_ref_time(55_393).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
}
|