mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 14:01:02 +00:00
63d1641b1e
* polkadot: update weights * westend: update weights * kusama: update weights * rococo: update weights
353 lines
16 KiB
Rust
353 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-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! 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_identity
|
|
// --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_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_208 nanoseconds.
|
|
Weight::from_ref_time(12_047_997)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_920
|
|
.saturating_add(Weight::from_ref_time(101_894).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_542 nanoseconds.
|
|
Weight::from_ref_time(28_963_355)
|
|
.saturating_add(Weight::from_proof_size(10013))
|
|
// Standard Error: 3_727
|
|
.saturating_add(Weight::from_ref_time(27_685).saturating_mul(r.into()))
|
|
// Standard Error: 727
|
|
.saturating_add(Weight::from_ref_time(443_762).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_887 nanoseconds.
|
|
Weight::from_ref_time(22_611_966)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 4_429
|
|
.saturating_add(Weight::from_ref_time(2_875_857).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_636 nanoseconds.
|
|
Weight::from_ref_time(21_370_550)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 3_629
|
|
.saturating_add(Weight::from_ref_time(1_141_607).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: 48_957 nanoseconds.
|
|
Weight::from_ref_time(26_306_252)
|
|
.saturating_add(Weight::from_proof_size(15746))
|
|
// Standard Error: 8_739
|
|
.saturating_add(Weight::from_ref_time(93_355).saturating_mul(r.into()))
|
|
// Standard Error: 1_706
|
|
.saturating_add(Weight::from_ref_time(1_112_902).saturating_mul(s.into()))
|
|
// Standard Error: 1_706
|
|
.saturating_add(Weight::from_ref_time(237_971).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_466 nanoseconds.
|
|
Weight::from_ref_time(28_311_470)
|
|
.saturating_add(Weight::from_proof_size(11649))
|
|
// Standard Error: 4_744
|
|
.saturating_add(Weight::from_ref_time(105_338).saturating_mul(r.into()))
|
|
// Standard Error: 925
|
|
.saturating_add(Weight::from_ref_time(469_280).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: 25_996 nanoseconds.
|
|
Weight::from_ref_time(26_141_469)
|
|
.saturating_add(Weight::from_proof_size(10013))
|
|
// Standard Error: 4_115
|
|
.saturating_add(Weight::from_ref_time(61_929).saturating_mul(r.into()))
|
|
// Standard Error: 802
|
|
.saturating_add(Weight::from_ref_time(466_025).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: 6_761 nanoseconds.
|
|
Weight::from_ref_time(7_438_431)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_286
|
|
.saturating_add(Weight::from_ref_time(96_779).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_065 nanoseconds.
|
|
Weight::from_ref_time(7_761_081)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_405
|
|
.saturating_add(Weight::from_ref_time(89_580).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_029 nanoseconds.
|
|
Weight::from_ref_time(7_489_478)
|
|
.saturating_add(Weight::from_proof_size(1636))
|
|
// Standard Error: 1_273
|
|
.saturating_add(Weight::from_ref_time(87_142).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_672 nanoseconds.
|
|
Weight::from_ref_time(21_800_147)
|
|
.saturating_add(Weight::from_proof_size(11649))
|
|
// Standard Error: 5_387
|
|
.saturating_add(Weight::from_ref_time(103_911).saturating_mul(r.into()))
|
|
// Standard Error: 996
|
|
.saturating_add(Weight::from_ref_time(775_383).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_398 nanoseconds.
|
|
Weight::from_ref_time(41_403_376)
|
|
.saturating_add(Weight::from_proof_size(18349))
|
|
// Standard Error: 18_828
|
|
.saturating_add(Weight::from_ref_time(63_353).saturating_mul(r.into()))
|
|
// Standard Error: 3_676
|
|
.saturating_add(Weight::from_ref_time(1_132_017).saturating_mul(s.into()))
|
|
// Standard Error: 3_676
|
|
.saturating_add(Weight::from_ref_time(228_527).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: 25_876 nanoseconds.
|
|
Weight::from_ref_time(30_818_769)
|
|
.saturating_add(Weight::from_proof_size(18335))
|
|
// Standard Error: 1_458
|
|
.saturating_add(Weight::from_ref_time(63_175).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_517 nanoseconds.
|
|
Weight::from_ref_time(14_411_360)
|
|
.saturating_add(Weight::from_proof_size(12602))
|
|
// Standard Error: 615
|
|
.saturating_add(Weight::from_ref_time(17_345).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_382 nanoseconds.
|
|
Weight::from_ref_time(35_419_886)
|
|
.saturating_add(Weight::from_proof_size(18335))
|
|
// Standard Error: 1_530
|
|
.saturating_add(Weight::from_ref_time(49_937).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: 18_595 nanoseconds.
|
|
Weight::from_ref_time(21_047_083)
|
|
.saturating_add(Weight::from_proof_size(8322))
|
|
// Standard Error: 986
|
|
.saturating_add(Weight::from_ref_time(56_196).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
}
|