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-04-20, 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: 9_094_000 picoseconds.68 Weight::from_parts(10_431_627, 2626)69 // Standard Error: 1_04670 .saturating_add(Weight::from_parts(99_468, 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_662_000 picoseconds.83 Weight::from_parts(17_939_760, 11003)84 // Standard Error: 2_37185 .saturating_add(Weight::from_parts(22_184, 0).saturating_mul(r.into()))86 // Standard Error: 46287 .saturating_add(Weight::from_parts(151_368, 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: `18716 + s * (2589 ±0)`102 // Minimum execution time: 6_921_000 picoseconds.103 Weight::from_parts(16_118_195, 18716)104 // Standard Error: 1_786105 .saturating_add(Weight::from_parts(1_350_155, 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: `17726`123 // Minimum execution time: 6_858_000 picoseconds.124 Weight::from_parts(16_222_054, 17726)125 // Standard Error: 1_409126 .saturating_add(Weight::from_parts(593_588, 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: `17726`144 // Minimum execution time: 27_212_000 picoseconds.145 Weight::from_parts(19_030_840, 17726)146 // Standard Error: 3_118147 .saturating_add(Weight::from_parts(29_836, 0).saturating_mul(r.into()))148 // Standard Error: 608149 .saturating_add(Weight::from_parts(590_661, 0).saturating_mul(s.into()))150 // Standard Error: 608151 .saturating_add(Weight::from_parts(110_108, 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: `13629`166 // Minimum execution time: 19_771_000 picoseconds.167 Weight::from_parts(18_917_892, 13629)168 // Standard Error: 1_957169 .saturating_add(Weight::from_parts(57_465, 0).saturating_mul(r.into()))170 // Standard Error: 381171 .saturating_add(Weight::from_parts(168_586, 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_411_000 picoseconds.184 Weight::from_parts(16_856_331, 11003)185 // Standard Error: 7_002186 .saturating_add(Weight::from_parts(34_389, 0).saturating_mul(r.into()))187 // Standard Error: 1_366188 .saturating_add(Weight::from_parts(165_686, 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: 7_089_000 picoseconds.200 Weight::from_parts(7_750_487, 2626)201 // Standard Error: 1_625202 .saturating_add(Weight::from_parts(101_135, 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: 6_300_000 picoseconds.214 Weight::from_parts(6_836_140, 2626)215 // Standard Error: 655216 .saturating_add(Weight::from_parts(102_284, 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: 6_257_000 picoseconds.228 Weight::from_parts(6_917_052, 2626)229 // Standard Error: 2_628230 .saturating_add(Weight::from_parts(71_362, 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: `13629`244 // Minimum execution time: 16_021_000 picoseconds.245 Weight::from_parts(15_553_670, 13629)246 // Standard Error: 5_797247 .saturating_add(Weight::from_parts(42_423, 0).saturating_mul(r.into()))248 // Standard Error: 1_072249 .saturating_add(Weight::from_parts(252_721, 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: `23922`268 // Minimum execution time: 40_801_000 picoseconds.269 Weight::from_parts(34_079_397, 23922)270 // Standard Error: 3_750271 .saturating_add(Weight::from_parts(31_496, 0).saturating_mul(r.into()))272 // Standard Error: 732273 .saturating_add(Weight::from_parts(599_691, 0).saturating_mul(s.into()))274 // Standard Error: 732275 .saturating_add(Weight::from_parts(101_683, 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_412_000 picoseconds.289 Weight::from_parts(4_592_000, 0)290 // Standard Error: 703_509291 .saturating_add(Weight::from_parts(43_647_925, 0).saturating_mul(x.into()))292 // Standard Error: 117_043293 .saturating_add(Weight::from_parts(9_312_431, 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_824_000 picoseconds.307 Weight::from_parts(3_950_000, 990)308 // Standard Error: 2_864309 .saturating_add(Weight::from_parts(55_678, 0).saturating_mul(x.into()))310 // Standard Error: 476311 .saturating_add(Weight::from_parts(1_138_349, 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_196_000 picoseconds.327 Weight::from_parts(4_340_000, 990)328 // Standard Error: 2_081_979329 .saturating_add(Weight::from_parts(130_653_903, 0).saturating_mul(s.into()))330 // Standard Error: 346_381331 .saturating_add(Weight::from_parts(23_046_001, 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: `21305`348 // Minimum execution time: 15_289_000 picoseconds.349 Weight::from_parts(21_319_844, 21305)350 // Standard Error: 893351 .saturating_add(Weight::from_parts(53_159, 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: `14582`364 // Minimum execution time: 9_867_000 picoseconds.365 Weight::from_parts(12_546_245, 14582)366 // Standard Error: 509367 .saturating_add(Weight::from_parts(10_078, 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: `21305`382 // Minimum execution time: 19_299_000 picoseconds.383 Weight::from_parts(24_125_576, 21305)384 // Standard Error: 1_479385 .saturating_add(Weight::from_parts(22_611, 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 /// The range of component `s` is `[0, 99]`.394 fn quit_sub(s: u32, ) -> Weight {395 // Proof Size summary in bytes:396 // Measured: `563 + s * (37 ±0)`397 // Estimated: `10302`398 // Minimum execution time: 14_183_000 picoseconds.399 Weight::from_parts(17_343_547, 10302)400 // Standard Error: 454401 .saturating_add(Weight::from_parts(45_925, 0).saturating_mul(s.into()))402 .saturating_add(T::DbWeight::get().reads(2_u64))403 .saturating_add(T::DbWeight::get().writes(2_u64))404 }405}406407// For backwards compatibility and tests408impl WeightInfo for () {409 /// Storage: Identity Registrars (r:1 w:1)410 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)411 /// The range of component `r` is `[1, 19]`.412 fn add_registrar(r: u32, ) -> Weight {413 // Proof Size summary in bytes:414 // Measured: `31 + r * (57 ±0)`415 // Estimated: `2626`416 // Minimum execution time: 9_094_000 picoseconds.417 Weight::from_parts(10_431_627, 2626)418 // Standard Error: 1_046419 .saturating_add(Weight::from_parts(99_468, 0).saturating_mul(r.into()))420 .saturating_add(RocksDbWeight::get().reads(1_u64))421 .saturating_add(RocksDbWeight::get().writes(1_u64))422 }423 /// Storage: Identity IdentityOf (r:1 w:1)424 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)425 /// The range of component `r` is `[1, 20]`.426 /// The range of component `x` is `[0, 100]`.427 fn set_identity(r: u32, x: u32, ) -> Weight {428 // Proof Size summary in bytes:429 // Measured: `441 + r * (5 ±0)`430 // Estimated: `11003`431 // Minimum execution time: 18_662_000 picoseconds.432 Weight::from_parts(17_939_760, 11003)433 // Standard Error: 2_371434 .saturating_add(Weight::from_parts(22_184, 0).saturating_mul(r.into()))435 // Standard Error: 462436 .saturating_add(Weight::from_parts(151_368, 0).saturating_mul(x.into()))437 .saturating_add(RocksDbWeight::get().reads(1_u64))438 .saturating_add(RocksDbWeight::get().writes(1_u64))439 }440 /// Storage: Identity IdentityOf (r:1 w:0)441 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)442 /// Storage: Identity SubsOf (r:1 w:1)443 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)444 /// Storage: Identity SuperOf (r:100 w:100)445 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)446 /// The range of component `s` is `[0, 100]`.447 fn set_subs_new(s: u32, ) -> Weight {448 // Proof Size summary in bytes:449 // Measured: `100`450 // Estimated: `18716 + s * (2589 ±0)`451 // Minimum execution time: 6_921_000 picoseconds.452 Weight::from_parts(16_118_195, 18716)453 // Standard Error: 1_786454 .saturating_add(Weight::from_parts(1_350_155, 0).saturating_mul(s.into()))455 .saturating_add(RocksDbWeight::get().reads(2_u64))456 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(s.into())))457 .saturating_add(RocksDbWeight::get().writes(1_u64))458 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))459 .saturating_add(Weight::from_parts(0, 2589).saturating_mul(s.into()))460 }461 /// Storage: Identity IdentityOf (r:1 w:0)462 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)463 /// Storage: Identity SubsOf (r:1 w:1)464 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)465 /// Storage: Identity SuperOf (r:0 w:100)466 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)467 /// The range of component `p` is `[0, 100]`.468 fn set_subs_old(p: u32, ) -> Weight {469 // Proof Size summary in bytes:470 // Measured: `193 + p * (32 ±0)`471 // Estimated: `17726`472 // Minimum execution time: 6_858_000 picoseconds.473 Weight::from_parts(16_222_054, 17726)474 // Standard Error: 1_409475 .saturating_add(Weight::from_parts(593_588, 0).saturating_mul(p.into()))476 .saturating_add(RocksDbWeight::get().reads(2_u64))477 .saturating_add(RocksDbWeight::get().writes(1_u64))478 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(p.into())))479 }480 /// Storage: Identity SubsOf (r:1 w:1)481 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)482 /// Storage: Identity IdentityOf (r:1 w:1)483 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)484 /// Storage: Identity SuperOf (r:0 w:100)485 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)486 /// The range of component `r` is `[1, 20]`.487 /// The range of component `s` is `[0, 100]`.488 /// The range of component `x` is `[0, 100]`.489 fn clear_identity(r: u32, s: u32, x: u32, ) -> Weight {490 // Proof Size summary in bytes:491 // Measured: `468 + r * (5 ±0) + s * (32 ±0) + x * (66 ±0)`492 // Estimated: `17726`493 // Minimum execution time: 27_212_000 picoseconds.494 Weight::from_parts(19_030_840, 17726)495 // Standard Error: 3_118496 .saturating_add(Weight::from_parts(29_836, 0).saturating_mul(r.into()))497 // Standard Error: 608498 .saturating_add(Weight::from_parts(590_661, 0).saturating_mul(s.into()))499 // Standard Error: 608500 .saturating_add(Weight::from_parts(110_108, 0).saturating_mul(x.into()))501 .saturating_add(RocksDbWeight::get().reads(2_u64))502 .saturating_add(RocksDbWeight::get().writes(2_u64))503 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))504 }505 /// Storage: Identity Registrars (r:1 w:0)506 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)507 /// Storage: Identity IdentityOf (r:1 w:1)508 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)509 /// The range of component `r` is `[1, 20]`.510 /// The range of component `x` is `[0, 100]`.511 fn request_judgement(r: u32, x: u32, ) -> Weight {512 // Proof Size summary in bytes:513 // Measured: `366 + r * (57 ±0) + x * (66 ±0)`514 // Estimated: `13629`515 // Minimum execution time: 19_771_000 picoseconds.516 Weight::from_parts(18_917_892, 13629)517 // Standard Error: 1_957518 .saturating_add(Weight::from_parts(57_465, 0).saturating_mul(r.into()))519 // Standard Error: 381520 .saturating_add(Weight::from_parts(168_586, 0).saturating_mul(x.into()))521 .saturating_add(RocksDbWeight::get().reads(2_u64))522 .saturating_add(RocksDbWeight::get().writes(1_u64))523 }524 /// Storage: Identity IdentityOf (r:1 w:1)525 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)526 /// The range of component `r` is `[1, 20]`.527 /// The range of component `x` is `[0, 100]`.528 fn cancel_request(r: u32, x: u32, ) -> Weight {529 // Proof Size summary in bytes:530 // Measured: `397 + x * (66 ±0)`531 // Estimated: `11003`532 // Minimum execution time: 17_411_000 picoseconds.533 Weight::from_parts(16_856_331, 11003)534 // Standard Error: 7_002535 .saturating_add(Weight::from_parts(34_389, 0).saturating_mul(r.into()))536 // Standard Error: 1_366537 .saturating_add(Weight::from_parts(165_686, 0).saturating_mul(x.into()))538 .saturating_add(RocksDbWeight::get().reads(1_u64))539 .saturating_add(RocksDbWeight::get().writes(1_u64))540 }541 /// Storage: Identity Registrars (r:1 w:1)542 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)543 /// The range of component `r` is `[1, 19]`.544 fn set_fee(r: u32, ) -> Weight {545 // Proof Size summary in bytes:546 // Measured: `88 + r * (57 ±0)`547 // Estimated: `2626`548 // Minimum execution time: 7_089_000 picoseconds.549 Weight::from_parts(7_750_487, 2626)550 // Standard Error: 1_625551 .saturating_add(Weight::from_parts(101_135, 0).saturating_mul(r.into()))552 .saturating_add(RocksDbWeight::get().reads(1_u64))553 .saturating_add(RocksDbWeight::get().writes(1_u64))554 }555 /// Storage: Identity Registrars (r:1 w:1)556 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)557 /// The range of component `r` is `[1, 19]`.558 fn set_account_id(r: u32, ) -> Weight {559 // Proof Size summary in bytes:560 // Measured: `88 + r * (57 ±0)`561 // Estimated: `2626`562 // Minimum execution time: 6_300_000 picoseconds.563 Weight::from_parts(6_836_140, 2626)564 // Standard Error: 655565 .saturating_add(Weight::from_parts(102_284, 0).saturating_mul(r.into()))566 .saturating_add(RocksDbWeight::get().reads(1_u64))567 .saturating_add(RocksDbWeight::get().writes(1_u64))568 }569 /// Storage: Identity Registrars (r:1 w:1)570 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)571 /// The range of component `r` is `[1, 19]`.572 fn set_fields(r: u32, ) -> Weight {573 // Proof Size summary in bytes:574 // Measured: `88 + r * (57 ±0)`575 // Estimated: `2626`576 // Minimum execution time: 6_257_000 picoseconds.577 Weight::from_parts(6_917_052, 2626)578 // Standard Error: 2_628579 .saturating_add(Weight::from_parts(71_362, 0).saturating_mul(r.into()))580 .saturating_add(RocksDbWeight::get().reads(1_u64))581 .saturating_add(RocksDbWeight::get().writes(1_u64))582 }583 /// Storage: Identity Registrars (r:1 w:0)584 /// Proof: Identity Registrars (max_values: Some(1), max_size: Some(1141), added: 1636, mode: MaxEncodedLen)585 /// Storage: Identity IdentityOf (r:1 w:1)586 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)587 /// The range of component `r` is `[1, 19]`.588 /// The range of component `x` is `[0, 100]`.589 fn provide_judgement(r: u32, x: u32, ) -> Weight {590 // Proof Size summary in bytes:591 // Measured: `444 + r * (57 ±0) + x * (66 ±0)`592 // Estimated: `13629`593 // Minimum execution time: 16_021_000 picoseconds.594 Weight::from_parts(15_553_670, 13629)595 // Standard Error: 5_797596 .saturating_add(Weight::from_parts(42_423, 0).saturating_mul(r.into()))597 // Standard Error: 1_072598 .saturating_add(Weight::from_parts(252_721, 0).saturating_mul(x.into()))599 .saturating_add(RocksDbWeight::get().reads(2_u64))600 .saturating_add(RocksDbWeight::get().writes(1_u64))601 }602 /// Storage: Identity SubsOf (r:1 w:1)603 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)604 /// Storage: Identity IdentityOf (r:1 w:1)605 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)606 /// Storage: System Account (r:2 w:2)607 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)608 /// Storage: Identity SuperOf (r:0 w:100)609 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)610 /// The range of component `r` is `[1, 20]`.611 /// The range of component `s` is `[0, 100]`.612 /// The range of component `x` is `[0, 100]`.613 fn kill_identity(r: u32, s: u32, x: u32, ) -> Weight {614 // Proof Size summary in bytes:615 // Measured: `665 + r * (12 ±0) + s * (32 ±0) + x * (66 ±0)`616 // Estimated: `23922`617 // Minimum execution time: 40_801_000 picoseconds.618 Weight::from_parts(34_079_397, 23922)619 // Standard Error: 3_750620 .saturating_add(Weight::from_parts(31_496, 0).saturating_mul(r.into()))621 // Standard Error: 732622 .saturating_add(Weight::from_parts(599_691, 0).saturating_mul(s.into()))623 // Standard Error: 732624 .saturating_add(Weight::from_parts(101_683, 0).saturating_mul(x.into()))625 .saturating_add(RocksDbWeight::get().reads(4_u64))626 .saturating_add(RocksDbWeight::get().writes(4_u64))627 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))628 }629 /// Storage: Identity IdentityOf (r:0 w:600)630 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)631 /// The range of component `x` is `[0, 100]`.632 /// The range of component `n` is `[0, 600]`.633 fn force_insert_identities(x: u32, n: u32, ) -> Weight {634 // Proof Size summary in bytes:635 // Measured: `0`636 // Estimated: `0`637 // Minimum execution time: 4_412_000 picoseconds.638 Weight::from_parts(4_592_000, 0)639 // Standard Error: 703_509640 .saturating_add(Weight::from_parts(43_647_925, 0).saturating_mul(x.into()))641 // Standard Error: 117_043642 .saturating_add(Weight::from_parts(9_312_431, 0).saturating_mul(n.into()))643 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))644 }645 /// Storage: Identity SubsOf (r:600 w:0)646 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)647 /// Storage: Identity IdentityOf (r:0 w:600)648 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)649 /// The range of component `x` is `[0, 100]`.650 /// The range of component `n` is `[0, 600]`.651 fn force_remove_identities(x: u32, n: u32, ) -> Weight {652 // Proof Size summary in bytes:653 // Measured: `41`654 // Estimated: `990 + n * (5733 ±0)`655 // Minimum execution time: 3_824_000 picoseconds.656 Weight::from_parts(3_950_000, 990)657 // Standard Error: 2_864658 .saturating_add(Weight::from_parts(55_678, 0).saturating_mul(x.into()))659 // Standard Error: 476660 .saturating_add(Weight::from_parts(1_138_349, 0).saturating_mul(n.into()))661 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))662 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))663 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))664 }665 /// Storage: Identity SubsOf (r:600 w:600)666 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)667 /// Storage: Identity SuperOf (r:0 w:100)668 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)669 /// The range of component `s` is `[0, 100]`.670 /// The range of component `n` is `[0, 600]`.671 fn force_set_subs(s: u32, n: u32, ) -> Weight {672 // Proof Size summary in bytes:673 // Measured: `41`674 // Estimated: `990 + n * (5733 ±0)`675 // Minimum execution time: 4_196_000 picoseconds.676 Weight::from_parts(4_340_000, 990)677 // Standard Error: 2_081_979678 .saturating_add(Weight::from_parts(130_653_903, 0).saturating_mul(s.into()))679 // Standard Error: 346_381680 .saturating_add(Weight::from_parts(23_046_001, 0).saturating_mul(n.into()))681 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(n.into())))682 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(s.into())))683 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))684 .saturating_add(Weight::from_parts(0, 5733).saturating_mul(n.into()))685 }686 /// Storage: Identity IdentityOf (r:1 w:0)687 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)688 /// Storage: Identity SuperOf (r:1 w:1)689 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)690 /// Storage: Identity SubsOf (r:1 w:1)691 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)692 /// The range of component `s` is `[0, 99]`.693 fn add_sub(s: u32, ) -> Weight {694 // Proof Size summary in bytes:695 // Measured: `474 + s * (36 ±0)`696 // Estimated: `21305`697 // Minimum execution time: 15_289_000 picoseconds.698 Weight::from_parts(21_319_844, 21305)699 // Standard Error: 893700 .saturating_add(Weight::from_parts(53_159, 0).saturating_mul(s.into()))701 .saturating_add(RocksDbWeight::get().reads(3_u64))702 .saturating_add(RocksDbWeight::get().writes(2_u64))703 }704 /// Storage: Identity IdentityOf (r:1 w:0)705 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)706 /// Storage: Identity SuperOf (r:1 w:1)707 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)708 /// The range of component `s` is `[1, 100]`.709 fn rename_sub(s: u32, ) -> Weight {710 // Proof Size summary in bytes:711 // Measured: `590 + s * (3 ±0)`712 // Estimated: `14582`713 // Minimum execution time: 9_867_000 picoseconds.714 Weight::from_parts(12_546_245, 14582)715 // Standard Error: 509716 .saturating_add(Weight::from_parts(10_078, 0).saturating_mul(s.into()))717 .saturating_add(RocksDbWeight::get().reads(2_u64))718 .saturating_add(RocksDbWeight::get().writes(1_u64))719 }720 /// Storage: Identity IdentityOf (r:1 w:0)721 /// Proof: Identity IdentityOf (max_values: None, max_size: Some(7538), added: 10013, mode: MaxEncodedLen)722 /// Storage: Identity SuperOf (r:1 w:1)723 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)724 /// Storage: Identity SubsOf (r:1 w:1)725 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)726 /// The range of component `s` is `[1, 100]`.727 fn remove_sub(s: u32, ) -> Weight {728 // Proof Size summary in bytes:729 // Measured: `637 + s * (35 ±0)`730 // Estimated: `21305`731 // Minimum execution time: 19_299_000 picoseconds.732 Weight::from_parts(24_125_576, 21305)733 // Standard Error: 1_479734 .saturating_add(Weight::from_parts(22_611, 0).saturating_mul(s.into()))735 .saturating_add(RocksDbWeight::get().reads(3_u64))736 .saturating_add(RocksDbWeight::get().writes(2_u64))737 }738 /// Storage: Identity SuperOf (r:1 w:1)739 /// Proof: Identity SuperOf (max_values: None, max_size: Some(114), added: 2589, mode: MaxEncodedLen)740 /// Storage: Identity SubsOf (r:1 w:1)741 /// Proof: Identity SubsOf (max_values: None, max_size: Some(3258), added: 5733, mode: MaxEncodedLen)742 /// The range of component `s` is `[0, 99]`.743 fn quit_sub(s: u32, ) -> Weight {744 // Proof Size summary in bytes:745 // Measured: `563 + s * (37 ±0)`746 // Estimated: `10302`747 // Minimum execution time: 14_183_000 picoseconds.748 Weight::from_parts(17_343_547, 10302)749 // Standard Error: 454750 .saturating_add(Weight::from_parts(45_925, 0).saturating_mul(s.into()))751 .saturating_add(RocksDbWeight::get().reads(2_u64))752 .saturating_add(RocksDbWeight::get().writes(2_u64))753 }754}755difftreelog
source
pallets/identity/src/weights.rs36.4 KiBsourcehistory