1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_identity4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-09-26, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/unique-collator13// benchmark14// pallet15// --pallet16// pallet-identity17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/identity/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_identity.35pub trait WeightInfo {36 fn add_registrar(r: u32, ) -> Weight;37 fn set_identity(r: u32, x: u32, ) -> Weight;38 fn set_subs_new(s: u32, ) -> Weight;39 fn set_subs_old(p: u32, ) -> Weight;40 fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight;41 fn request_judgement(r: u32, x: u32, ) -> Weight;42 fn cancel_request(r: u32, x: u32, ) -> Weight;43 fn set_fee(r: u32, ) -> Weight;44 fn set_account_id(r: u32, ) -> Weight;45 fn set_fields(r: u32, ) -> Weight;46 fn provide_judgement(r: u32, x: u32, ) -> Weight;47 fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight;48 fn force_insert_identities(x: u32, n: u32, ) -> Weight;49 fn force_remove_identities(x: u32, n: u32, ) -> Weight;50 fn force_set_subs(s: u32, n: u32, ) -> Weight;51 fn add_sub(s: u32, ) -> Weight;52 fn rename_sub(s: u32, ) -> Weight;53 fn remove_sub(s: u32, ) -> Weight;54 fn quit_sub(s: u32, ) -> Weight;55}5657/// Weights for pallet_identity using the Substrate node and recommended hardware.58pub struct SubstrateWeight<T>(PhantomData<T>);59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {60 /// Storage: Identity Registrars (r:1 w:1)61 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)62 /// The range of component `r` is `[1, 19]`.63 fn add_registrar(r: u32, ) -> Weight {64 // Proof Size summary in bytes:65 // Measured: `31 + r * (57 ±0)`66 // Estimated: `2626`67 // Minimum execution time: 8_952_000 picoseconds.68 Weight::from_parts(9_493_179, 2626)69 // Standard Error: 77670 .saturating_add(Weight::from_parts(95_408, 0).saturating_mul(r.into()))71 .saturating_add(T::DbWeight::get().reads(1_u64))72 .saturating_add(T::DbWeight::get().writes(1_u64))73 }74 /// Storage: Identity IdentityOf (r:1 w:1)75 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)76 /// The range of component `r` is `[1, 20]`.77 /// The range of component `x` is `[0, 100]`.78 fn set_identity(r: u32, x: u32, ) -> Weight {79 // Proof Size summary in bytes:80 // Measured: `441 + r * (5 ±0)`81 // Estimated: `11003`82 // Minimum execution time: 18_573_000 picoseconds.83 Weight::from_parts(16_665_333, 11003)84 // Standard Error: 1_92785 .saturating_add(Weight::from_parts(93_600, 0).saturating_mul(r.into()))86 // Standard Error: 37687 .saturating_add(Weight::from_parts(134_895, 0).saturating_mul(x.into()))88 .saturating_add(T::DbWeight::get().reads(1_u64))89 .saturating_add(T::DbWeight::get().writes(1_u64))90 }91 /// Storage: Identity IdentityOf (r:1 w:0)92 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)93 /// Storage: Identity SubsOf (r:1 w:1)94 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)95 /// Storage: Identity SuperOf (r:100 w:100)96 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)97 /// The range of component `s` is `[0, 100]`.98 fn set_subs_new(s: u32, ) -> Weight {99 // Proof Size summary in bytes:100 // Measured: `100`101 // Estimated: `11003 + s * (2589 ±0)`102 // Minimum execution time: 6_669_000 picoseconds.103 Weight::from_parts(15_167_928, 11003)104 // Standard Error: 1_551105 .saturating_add(Weight::from_parts(1_294_015, 0).saturating_mul(s.into()))106 .saturating_add(T::DbWeight::get().reads(2_u64))107 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(s.into())))108 .saturating_add(T::DbWeight::get().writes(1_u64))109 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))110 .saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))111 }112 /// Storage: Identity IdentityOf (r:1 w:0)113 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)114 /// Storage: Identity SubsOf (r:1 w:1)115 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)116 /// Storage: Identity SuperOf (r:0 w:100)117 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)118 /// The range of component `p` is `[0, 100]`.119 fn set_subs_old(p: u32, ) -> Weight {120 // Proof Size summary in bytes:121 // Measured: `193 + p * (32 ±0)`122 // Estimated: `11003`123 // Minimum execution time: 6_642_000 picoseconds.124 Weight::from_parts(15_473_100, 11003)125 // Standard Error: 1_132126 .saturating_add(Weight::from_parts(592_570, 0).saturating_mul(p.into()))127 .saturating_add(T::DbWeight::get().reads(2_u64))128 .saturating_add(T::DbWeight::get().writes(1_u64))129 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(p.into())))130 }131 /// Storage: Identity SubsOf (r:1 w:1)132 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)133 /// Storage: Identity IdentityOf (r:1 w:1)134 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)135 /// Storage: Identity SuperOf (r:0 w:100)136 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)137 /// The range of component `r` is `[1, 20]`.138 /// The range of component `s` is `[0, 100]`.139 /// The range of component `x` is `[0, 100]`.140 fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {141 // Proof Size summary in bytes:142 // Measured: `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`143 // Estimated: `11003`144 // Minimum execution time: 29_150_000 picoseconds.145 Weight::from_parts(20_982_965, 11003)146 // Standard Error: 2_448147 .saturating_add(Weight::from_parts(17_611, 0).saturating_mul(r.into()))148 // Standard Error: 478149 .saturating_add(Weight::from_parts(582_119, 0).saturating_mul(s.into()))150 // Standard Error: 478151 .saturating_add(Weight::from_parts(114_020, 0).saturating_mul(x.into()))152 .saturating_add(T::DbWeight::get().reads(2_u64))153 .saturating_add(T::DbWeight::get().writes(2_u64))154 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))155 }156 /// Storage: Identity Registrars (r:1 w:0)157 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)158 /// Storage: Identity IdentityOf (r:1 w:1)159 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)160 /// The range of component `r` is `[1, 20]`.161 /// The range of component `x` is `[0, 100]`.162 fn request_judgement(r: u32, x: u32, ) -> Weight {163 // Proof Size summary in bytes:164 // Measured: `366 + r * (57 ±0) + x * (66 ±0)`165 // Estimated: `11003`166 // Minimum execution time: 20_088_000 picoseconds.167 Weight::from_parts(18_524_805, 11003)168 // Standard Error: 1_965169 .saturating_add(Weight::from_parts(74_420, 0).saturating_mul(r.into()))170 // Standard Error: 383171 .saturating_add(Weight::from_parts(152_570, 0).saturating_mul(x.into()))172 .saturating_add(T::DbWeight::get().reads(2_u64))173 .saturating_add(T::DbWeight::get().writes(1_u64))174 }175 /// Storage: Identity IdentityOf (r:1 w:1)176 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)177 /// The range of component `r` is `[1, 20]`.178 /// The range of component `x` is `[0, 100]`.179 fn cancel_request(r: u32, x: u32, ) -> Weight {180 // Proof Size summary in bytes:181 // Measured: `397 + x * (66 ±0)`182 // Estimated: `11003`183 // Minimum execution time: 17_277_000 picoseconds.184 Weight::from_parts(16_760_327, 11003)185 // Standard Error: 1_967186 .saturating_add(Weight::from_parts(33_499, 0).saturating_mul(r.into()))187 // Standard Error: 383188 .saturating_add(Weight::from_parts(148_237, 0).saturating_mul(x.into()))189 .saturating_add(T::DbWeight::get().reads(1_u64))190 .saturating_add(T::DbWeight::get().writes(1_u64))191 }192 /// Storage: Identity Registrars (r:1 w:1)193 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)194 /// The range of component `r` is `[1, 19]`.195 fn set_fee(r: u32, ) -> Weight {196 // Proof Size summary in bytes:197 // Measured: `88 + r * (57 ±0)`198 // Estimated: `2626`199 // Minimum execution time: 6_566_000 picoseconds.200 Weight::from_parts(6_982_669, 2626)201 // Standard Error: 613202 .saturating_add(Weight::from_parts(77_476, 0).saturating_mul(r.into()))203 .saturating_add(T::DbWeight::get().reads(1_u64))204 .saturating_add(T::DbWeight::get().writes(1_u64))205 }206 /// Storage: Identity Registrars (r:1 w:1)207 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)208 /// The range of component `r` is `[1, 19]`.209 fn set_account_id(r: u32, ) -> Weight {210 // Proof Size summary in bytes:211 // Measured: `88 + r * (57 ±0)`212 // Estimated: `2626`213 // Minimum execution time: 5_856_000 picoseconds.214 Weight::from_parts(6_185_551, 2626)215 // Standard Error: 466216 .saturating_add(Weight::from_parts(76_432, 0).saturating_mul(r.into()))217 .saturating_add(T::DbWeight::get().reads(1_u64))218 .saturating_add(T::DbWeight::get().writes(1_u64))219 }220 /// Storage: Identity Registrars (r:1 w:1)221 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)222 /// The range of component `r` is `[1, 19]`.223 fn set_fields(r: u32, ) -> Weight {224 // Proof Size summary in bytes:225 // Measured: `88 + r * (57 ±0)`226 // Estimated: `2626`227 // Minimum execution time: 5_784_000 picoseconds.228 Weight::from_parts(6_029_409, 2626)229 // Standard Error: 389230 .saturating_add(Weight::from_parts(73_636, 0).saturating_mul(r.into()))231 .saturating_add(T::DbWeight::get().reads(1_u64))232 .saturating_add(T::DbWeight::get().writes(1_u64))233 }234 /// Storage: Identity Registrars (r:1 w:0)235 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)236 /// Storage: Identity IdentityOf (r:1 w:1)237 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)238 /// The range of component `r` is `[1, 19]`.239 /// The range of component `x` is `[0, 100]`.240 fn provide_judgement(r: u32, x: u32, ) -> Weight {241 // Proof Size summary in bytes:242 // Measured: `444 + r * (57 ±0) + x * (66 ±0)`243 // Estimated: `11003`244 // Minimum execution time: 15_250_000 picoseconds.245 Weight::from_parts(14_264_575, 11003)246 // Standard Error: 1_996247 .saturating_add(Weight::from_parts(45_342, 0).saturating_mul(r.into()))248 // Standard Error: 369249 .saturating_add(Weight::from_parts(216_509, 0).saturating_mul(x.into()))250 .saturating_add(T::DbWeight::get().reads(2_u64))251 .saturating_add(T::DbWeight::get().writes(1_u64))252 }253 /// Storage: Identity SubsOf (r:1 w:1)254 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)255 /// Storage: Identity IdentityOf (r:1 w:1)256 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)257 /// Storage: System Account (r:2 w:2)258 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)259 /// Storage: Identity SuperOf (r:0 w:100)260 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)261 /// The range of component `r` is `[1, 20]`.262 /// The range of component `s` is `[0, 100]`.263 /// The range of component `x` is `[0, 100]`.264 fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {265 // Proof Size summary in bytes:266 // Measured: `665 + r * (12 ±0) + s * (32 ±0) + x * (66 ±0)`267 // Estimated: `11003`268 // Minimum execution time: 43_178_000 picoseconds.269 Weight::from_parts(34_379_402, 11003)270 // Standard Error: 2_843271 .saturating_add(Weight::from_parts(58_134, 0).saturating_mul(r.into()))272 // Standard Error: 555273 .saturating_add(Weight::from_parts(596_395, 0).saturating_mul(s.into()))274 // Standard Error: 555275 .saturating_add(Weight::from_parts(113_292, 0).saturating_mul(x.into()))276 .saturating_add(T::DbWeight::get().reads(4_u64))277 .saturating_add(T::DbWeight::get().writes(4_u64))278 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))279 }280 /// Storage: Identity IdentityOf (r:0 w:600)281 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)282 /// The range of component `x` is `[0, 100]`.283 /// The range of component `n` is `[0, 600]`.284 fn force_insert_identities(x: u32, n: u32, ) -> Weight {285 // Proof Size summary in bytes:286 // Measured: `0`287 // Estimated: `0`288 // Minimum execution time: 4_093_000 picoseconds.289 Weight::from_parts(4_184_000, 0)290 // Standard Error: 688_514291 .saturating_add(Weight::from_parts(42_213_609, 0).saturating_mul(x.into()))292 // Standard Error: 114_549293 .saturating_add(Weight::from_parts(8_812_982, 0).saturating_mul(n.into()))294 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))295 }296 /// Storage: Identity SubsOf (r:600 w:0)297 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)298 /// Storage: Identity IdentityOf (r:0 w:600)299 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)300 /// The range of component `x` is `[0, 100]`.301 /// The range of component `n` is `[0, 600]`.302 fn force_remove_identities(x: u32, n: u32, ) -> Weight {303 // Proof Size summary in bytes:304 // Measured: `41`305 // Estimated: `990 + n * (5733 ±0)`306 // Minimum execution time: 3_998_000 picoseconds.307 Weight::from_parts(4_142_000, 990)308 // Standard Error: 2_992309 .saturating_add(Weight::from_parts(62_923, 0).saturating_mul(x.into()))310 // Standard Error: 497311 .saturating_add(Weight::from_parts(1_122_767, 0).saturating_mul(n.into()))312 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))313 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))314 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))315 }316 /// Storage: Identity SubsOf (r:600 w:600)317 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)318 /// Storage: Identity SuperOf (r:0 w:100)319 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)320 /// The range of component `s` is `[0, 100]`.321 /// The range of component `n` is `[0, 600]`.322 fn force_set_subs(s: u32, n: u32, ) -> Weight {323 // Proof Size summary in bytes:324 // Measured: `41`325 // Estimated: `990 + n * (5733 ±0)`326 // Minimum execution time: 4_019_000 picoseconds.327 Weight::from_parts(4_174_000, 990)328 // Standard Error: 2_026_537329 .saturating_add(Weight::from_parts(127_217_493, 0).saturating_mul(s.into()))330 // Standard Error: 337_157331 .saturating_add(Weight::from_parts(22_199_440, 0).saturating_mul(n.into()))332 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into())))333 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))334 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))335 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))336 }337 /// Storage: Identity IdentityOf (r:1 w:0)338 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)339 /// Storage: Identity SuperOf (r:1 w:1)340 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)341 /// Storage: Identity SubsOf (r:1 w:1)342 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)343 /// The range of component `s` is `[0, 99]`.344 fn add_sub(s: u32, ) -> Weight {345 // Proof Size summary in bytes:346 // Measured: `474 + s * (36 ±0)`347 // Estimated: `11003`348 // Minimum execution time: 16_361_000 picoseconds.349 Weight::from_parts(20_622_408, 11003)350 // Standard Error: 592351 .saturating_add(Weight::from_parts(48_502, 0).saturating_mul(s.into()))352 .saturating_add(T::DbWeight::get().reads(3_u64))353 .saturating_add(T::DbWeight::get().writes(2_u64))354 }355 /// Storage: Identity IdentityOf (r:1 w:0)356 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)357 /// Storage: Identity SuperOf (r:1 w:1)358 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)359 /// The range of component `s` is `[1, 100]`.360 fn rename_sub(s: u32, ) -> Weight {361 // Proof Size summary in bytes:362 // Measured: `590 + s * (3 ±0)`363 // Estimated: `11003`364 // Minimum execution time: 9_676_000 picoseconds.365 Weight::from_parts(11_336_454, 11003)366 // Standard Error: 240367 .saturating_add(Weight::from_parts(17_924, 0).saturating_mul(s.into()))368 .saturating_add(T::DbWeight::get().reads(2_u64))369 .saturating_add(T::DbWeight::get().writes(1_u64))370 }371 /// Storage: Identity IdentityOf (r:1 w:0)372 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)373 /// Storage: Identity SuperOf (r:1 w:1)374 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)375 /// Storage: Identity SubsOf (r:1 w:1)376 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)377 /// The range of component `s` is `[1, 100]`.378 fn remove_sub(s: u32, ) -> Weight {379 // Proof Size summary in bytes:380 // Measured: `637 + s * (35 ±0)`381 // Estimated: `11003`382 // Minimum execution time: 20_304_000 picoseconds.383 Weight::from_parts(22_890_354, 11003)384 // Standard Error: 1_568385 .saturating_add(Weight::from_parts(40_002, 0).saturating_mul(s.into()))386 .saturating_add(T::DbWeight::get().reads(3_u64))387 .saturating_add(T::DbWeight::get().writes(2_u64))388 }389 /// Storage: Identity SuperOf (r:1 w:1)390 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)391 /// Storage: Identity SubsOf (r:1 w:1)392 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)393 /// Storage: System Account (r:1 w:0)394 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)395 /// The range of component `s` is `[0, 99]`.396 fn quit_sub(s: u32, ) -> Weight {397 // Proof Size summary in bytes:398 // Measured: `703 + s * (37 ±0)`399 // Estimated: `6723`400 // Minimum execution time: 17_645_000 picoseconds.401 Weight::from_parts(20_080_248, 6723)402 // Standard Error: 1_331403 .saturating_add(Weight::from_parts(42_353, 0).saturating_mul(s.into()))404 .saturating_add(T::DbWeight::get().reads(3_u64))405 .saturating_add(T::DbWeight::get().writes(2_u64))406 }407}408409// For backwards compatibility and tests410impl WeightInfo for () {411 /// Storage: Identity Registrars (r:1 w:1)412 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)413 /// The range of component `r` is `[1, 19]`.414 fn add_registrar(r: u32, ) -> Weight {415 // Proof Size summary in bytes:416 // Measured: `31 + r * (57 ±0)`417 // Estimated: `2626`418 // Minimum execution time: 8_952_000 picoseconds.419 Weight::from_parts(9_493_179, 2626)420 // Standard Error: 776421 .saturating_add(Weight::from_parts(95_408, 0).saturating_mul(r.into()))422 .saturating_add(RocksDbWeight::get().reads(1_u64))423 .saturating_add(RocksDbWeight::get().writes(1_u64))424 }425 /// Storage: Identity IdentityOf (r:1 w:1)426 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)427 /// The range of component `r` is `[1, 20]`.428 /// The range of component `x` is `[0, 100]`.429 fn set_identity(r: u32, x: u32, ) -> Weight {430 // Proof Size summary in bytes:431 // Measured: `441 + r * (5 ±0)`432 // Estimated: `11003`433 // Minimum execution time: 18_573_000 picoseconds.434 Weight::from_parts(16_665_333, 11003)435 // Standard Error: 1_927436 .saturating_add(Weight::from_parts(93_600, 0).saturating_mul(r.into()))437 // Standard Error: 376438 .saturating_add(Weight::from_parts(134_895, 0).saturating_mul(x.into()))439 .saturating_add(RocksDbWeight::get().reads(1_u64))440 .saturating_add(RocksDbWeight::get().writes(1_u64))441 }442 /// Storage: Identity IdentityOf (r:1 w:0)443 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)444 /// Storage: Identity SubsOf (r:1 w:1)445 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)446 /// Storage: Identity SuperOf (r:100 w:100)447 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)448 /// The range of component `s` is `[0, 100]`.449 fn set_subs_new(s: u32, ) -> Weight {450 // Proof Size summary in bytes:451 // Measured: `100`452 // Estimated: `11003 + s * (2589 ±0)`453 // Minimum execution time: 6_669_000 picoseconds.454 Weight::from_parts(15_167_928, 11003)455 // Standard Error: 1_551456 .saturating_add(Weight::from_parts(1_294_015, 0).saturating_mul(s.into()))457 .saturating_add(RocksDbWeight::get().reads(2_u64))458 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))459 .saturating_add(RocksDbWeight::get().writes(1_u64))460 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))461 .saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))462 }463 /// Storage: Identity IdentityOf (r:1 w:0)464 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)465 /// Storage: Identity SubsOf (r:1 w:1)466 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)467 /// Storage: Identity SuperOf (r:0 w:100)468 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)469 /// The range of component `p` is `[0, 100]`.470 fn set_subs_old(p: u32, ) -> Weight {471 // Proof Size summary in bytes:472 // Measured: `193 + p * (32 ±0)`473 // Estimated: `11003`474 // Minimum execution time: 6_642_000 picoseconds.475 Weight::from_parts(15_473_100, 11003)476 // Standard Error: 1_132477 .saturating_add(Weight::from_parts(592_570, 0).saturating_mul(p.into()))478 .saturating_add(RocksDbWeight::get().reads(2_u64))479 .saturating_add(RocksDbWeight::get().writes(1_u64))480 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))481 }482 /// Storage: Identity SubsOf (r:1 w:1)483 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)484 /// Storage: Identity IdentityOf (r:1 w:1)485 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)486 /// Storage: Identity SuperOf (r:0 w:100)487 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)488 /// The range of component `r` is `[1, 20]`.489 /// The range of component `s` is `[0, 100]`.490 /// The range of component `x` is `[0, 100]`.491 fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {492 // Proof Size summary in bytes:493 // Measured: `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`494 // Estimated: `11003`495 // Minimum execution time: 29_150_000 picoseconds.496 Weight::from_parts(20_982_965, 11003)497 // Standard Error: 2_448498 .saturating_add(Weight::from_parts(17_611, 0).saturating_mul(r.into()))499 // Standard Error: 478500 .saturating_add(Weight::from_parts(582_119, 0).saturating_mul(s.into()))501 // Standard Error: 478502 .saturating_add(Weight::from_parts(114_020, 0).saturating_mul(x.into()))503 .saturating_add(RocksDbWeight::get().reads(2_u64))504 .saturating_add(RocksDbWeight::get().writes(2_u64))505 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))506 }507 /// Storage: Identity Registrars (r:1 w:0)508 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)509 /// Storage: Identity IdentityOf (r:1 w:1)510 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)511 /// The range of component `r` is `[1, 20]`.512 /// The range of component `x` is `[0, 100]`.513 fn request_judgement(r: u32, x: u32, ) -> Weight {514 // Proof Size summary in bytes:515 // Measured: `366 + r * (57 ±0) + x * (66 ±0)`516 // Estimated: `11003`517 // Minimum execution time: 20_088_000 picoseconds.518 Weight::from_parts(18_524_805, 11003)519 // Standard Error: 1_965520 .saturating_add(Weight::from_parts(74_420, 0).saturating_mul(r.into()))521 // Standard Error: 383522 .saturating_add(Weight::from_parts(152_570, 0).saturating_mul(x.into()))523 .saturating_add(RocksDbWeight::get().reads(2_u64))524 .saturating_add(RocksDbWeight::get().writes(1_u64))525 }526 /// Storage: Identity IdentityOf (r:1 w:1)527 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)528 /// The range of component `r` is `[1, 20]`.529 /// The range of component `x` is `[0, 100]`.530 fn cancel_request(r: u32, x: u32, ) -> Weight {531 // Proof Size summary in bytes:532 // Measured: `397 + x * (66 ±0)`533 // Estimated: `11003`534 // Minimum execution time: 17_277_000 picoseconds.535 Weight::from_parts(16_760_327, 11003)536 // Standard Error: 1_967537 .saturating_add(Weight::from_parts(33_499, 0).saturating_mul(r.into()))538 // Standard Error: 383539 .saturating_add(Weight::from_parts(148_237, 0).saturating_mul(x.into()))540 .saturating_add(RocksDbWeight::get().reads(1_u64))541 .saturating_add(RocksDbWeight::get().writes(1_u64))542 }543 /// Storage: Identity Registrars (r:1 w:1)544 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)545 /// The range of component `r` is `[1, 19]`.546 fn set_fee(r: u32, ) -> Weight {547 // Proof Size summary in bytes:548 // Measured: `88 + r * (57 ±0)`549 // Estimated: `2626`550 // Minimum execution time: 6_566_000 picoseconds.551 Weight::from_parts(6_982_669, 2626)552 // Standard Error: 613553 .saturating_add(Weight::from_parts(77_476, 0).saturating_mul(r.into()))554 .saturating_add(RocksDbWeight::get().reads(1_u64))555 .saturating_add(RocksDbWeight::get().writes(1_u64))556 }557 /// Storage: Identity Registrars (r:1 w:1)558 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)559 /// The range of component `r` is `[1, 19]`.560 fn set_account_id(r: u32, ) -> Weight {561 // Proof Size summary in bytes:562 // Measured: `88 + r * (57 ±0)`563 // Estimated: `2626`564 // Minimum execution time: 5_856_000 picoseconds.565 Weight::from_parts(6_185_551, 2626)566 // Standard Error: 466567 .saturating_add(Weight::from_parts(76_432, 0).saturating_mul(r.into()))568 .saturating_add(RocksDbWeight::get().reads(1_u64))569 .saturating_add(RocksDbWeight::get().writes(1_u64))570 }571 /// Storage: Identity Registrars (r:1 w:1)572 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)573 /// The range of component `r` is `[1, 19]`.574 fn set_fields(r: u32, ) -> Weight {575 // Proof Size summary in bytes:576 // Measured: `88 + r * (57 ±0)`577 // Estimated: `2626`578 // Minimum execution time: 5_784_000 picoseconds.579 Weight::from_parts(6_029_409, 2626)580 // Standard Error: 389581 .saturating_add(Weight::from_parts(73_636, 0).saturating_mul(r.into()))582 .saturating_add(RocksDbWeight::get().reads(1_u64))583 .saturating_add(RocksDbWeight::get().writes(1_u64))584 }585 /// Storage: Identity Registrars (r:1 w:0)586 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)587 /// Storage: Identity IdentityOf (r:1 w:1)588 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)589 /// The range of component `r` is `[1, 19]`.590 /// The range of component `x` is `[0, 100]`.591 fn provide_judgement(r: u32, x: u32, ) -> Weight {592 // Proof Size summary in bytes:593 // Measured: `444 + r * (57 ±0) + x * (66 ±0)`594 // Estimated: `11003`595 // Minimum execution time: 15_250_000 picoseconds.596 Weight::from_parts(14_264_575, 11003)597 // Standard Error: 1_996598 .saturating_add(Weight::from_parts(45_342, 0).saturating_mul(r.into()))599 // Standard Error: 369600 .saturating_add(Weight::from_parts(216_509, 0).saturating_mul(x.into()))601 .saturating_add(RocksDbWeight::get().reads(2_u64))602 .saturating_add(RocksDbWeight::get().writes(1_u64))603 }604 /// Storage: Identity SubsOf (r:1 w:1)605 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)606 /// Storage: Identity IdentityOf (r:1 w:1)607 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)608 /// Storage: System Account (r:2 w:2)609 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)610 /// Storage: Identity SuperOf (r:0 w:100)611 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)612 /// The range of component `r` is `[1, 20]`.613 /// The range of component `s` is `[0, 100]`.614 /// The range of component `x` is `[0, 100]`.615 fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {616 // Proof Size summary in bytes:617 // Measured: `665 + r * (12 ±0) + s * (32 ±0) + x * (66 ±0)`618 // Estimated: `11003`619 // Minimum execution time: 43_178_000 picoseconds.620 Weight::from_parts(34_379_402, 11003)621 // Standard Error: 2_843622 .saturating_add(Weight::from_parts(58_134, 0).saturating_mul(r.into()))623 // Standard Error: 555624 .saturating_add(Weight::from_parts(596_395, 0).saturating_mul(s.into()))625 // Standard Error: 555626 .saturating_add(Weight::from_parts(113_292, 0).saturating_mul(x.into()))627 .saturating_add(RocksDbWeight::get().reads(4_u64))628 .saturating_add(RocksDbWeight::get().writes(4_u64))629 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))630 }631 /// Storage: Identity IdentityOf (r:0 w:600)632 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)633 /// The range of component `x` is `[0, 100]`.634 /// The range of component `n` is `[0, 600]`.635 fn force_insert_identities(x: u32, n: u32, ) -> Weight {636 // Proof Size summary in bytes:637 // Measured: `0`638 // Estimated: `0`639 // Minimum execution time: 4_093_000 picoseconds.640 Weight::from_parts(4_184_000, 0)641 // Standard Error: 688_514642 .saturating_add(Weight::from_parts(42_213_609, 0).saturating_mul(x.into()))643 // Standard Error: 114_549644 .saturating_add(Weight::from_parts(8_812_982, 0).saturating_mul(n.into()))645 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))646 }647 /// Storage: Identity SubsOf (r:600 w:0)648 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)649 /// Storage: Identity IdentityOf (r:0 w:600)650 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)651 /// The range of component `x` is `[0, 100]`.652 /// The range of component `n` is `[0, 600]`.653 fn force_remove_identities(x: u32, n: u32, ) -> Weight {654 // Proof Size summary in bytes:655 // Measured: `41`656 // Estimated: `990 + n * (5733 ±0)`657 // Minimum execution time: 3_998_000 picoseconds.658 Weight::from_parts(4_142_000, 990)659 // Standard Error: 2_992660 .saturating_add(Weight::from_parts(62_923, 0).saturating_mul(x.into()))661 // Standard Error: 497662 .saturating_add(Weight::from_parts(1_122_767, 0).saturating_mul(n.into()))663 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))664 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))665 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))666 }667 /// Storage: Identity SubsOf (r:600 w:600)668 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)669 /// Storage: Identity SuperOf (r:0 w:100)670 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)671 /// The range of component `s` is `[0, 100]`.672 /// The range of component `n` is `[0, 600]`.673 fn force_set_subs(s: u32, n: u32, ) -> Weight {674 // Proof Size summary in bytes:675 // Measured: `41`676 // Estimated: `990 + n * (5733 ±0)`677 // Minimum execution time: 4_019_000 picoseconds.678 Weight::from_parts(4_174_000, 990)679 // Standard Error: 2_026_537680 .saturating_add(Weight::from_parts(127_217_493, 0).saturating_mul(s.into()))681 // Standard Error: 337_157682 .saturating_add(Weight::from_parts(22_199_440, 0).saturating_mul(n.into()))683 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))684 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))685 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))686 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))687 }688 /// Storage: Identity IdentityOf (r:1 w:0)689 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)690 /// Storage: Identity SuperOf (r:1 w:1)691 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)692 /// Storage: Identity SubsOf (r:1 w:1)693 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)694 /// The range of component `s` is `[0, 99]`.695 fn add_sub(s: u32, ) -> Weight {696 // Proof Size summary in bytes:697 // Measured: `474 + s * (36 ±0)`698 // Estimated: `11003`699 // Minimum execution time: 16_361_000 picoseconds.700 Weight::from_parts(20_622_408, 11003)701 // Standard Error: 592702 .saturating_add(Weight::from_parts(48_502, 0).saturating_mul(s.into()))703 .saturating_add(RocksDbWeight::get().reads(3_u64))704 .saturating_add(RocksDbWeight::get().writes(2_u64))705 }706 /// Storage: Identity IdentityOf (r:1 w:0)707 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)708 /// Storage: Identity SuperOf (r:1 w:1)709 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)710 /// The range of component `s` is `[1, 100]`.711 fn rename_sub(s: u32, ) -> Weight {712 // Proof Size summary in bytes:713 // Measured: `590 + s * (3 ±0)`714 // Estimated: `11003`715 // Minimum execution time: 9_676_000 picoseconds.716 Weight::from_parts(11_336_454, 11003)717 // Standard Error: 240718 .saturating_add(Weight::from_parts(17_924, 0).saturating_mul(s.into()))719 .saturating_add(RocksDbWeight::get().reads(2_u64))720 .saturating_add(RocksDbWeight::get().writes(1_u64))721 }722 /// Storage: Identity IdentityOf (r:1 w:0)723 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)724 /// Storage: Identity SuperOf (r:1 w:1)725 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)726 /// Storage: Identity SubsOf (r:1 w:1)727 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)728 /// The range of component `s` is `[1, 100]`.729 fn remove_sub(s: u32, ) -> Weight {730 // Proof Size summary in bytes:731 // Measured: `637 + s * (35 ±0)`732 // Estimated: `11003`733 // Minimum execution time: 20_304_000 picoseconds.734 Weight::from_parts(22_890_354, 11003)735 // Standard Error: 1_568736 .saturating_add(Weight::from_parts(40_002, 0).saturating_mul(s.into()))737 .saturating_add(RocksDbWeight::get().reads(3_u64))738 .saturating_add(RocksDbWeight::get().writes(2_u64))739 }740 /// Storage: Identity SuperOf (r:1 w:1)741 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)742 /// Storage: Identity SubsOf (r:1 w:1)743 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)744 /// Storage: System Account (r:1 w:0)745 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)746 /// The range of component `s` is `[0, 99]`.747 fn quit_sub(s: u32, ) -> Weight {748 // Proof Size summary in bytes:749 // Measured: `703 + s * (37 ±0)`750 // Estimated: `6723`751 // Minimum execution time: 17_645_000 picoseconds.752 Weight::from_parts(20_080_248, 6723)753 // Standard Error: 1_331754 .saturating_add(Weight::from_parts(42_353, 0).saturating_mul(s.into()))755 .saturating_add(RocksDbWeight::get().reads(3_u64))756 .saturating_add(RocksDbWeight::get().writes(2_u64))757 }758}759difftreelog
source
pallets/identity/src/weights.rs36.6 KiBsourcehistory