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-27, STEPS: `50`, REPEAT: `400`, 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/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-identity17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=40024// --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: 6_759_000 picoseconds.68 Weight::from_parts(7_254_560, 2626)69 // Standard Error: 23170 .saturating_add(Weight::from_parts(64_513, 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: 14_134_000 picoseconds.83 Weight::from_parts(12_591_985, 11003)84 // Standard Error: 56285 .saturating_add(Weight::from_parts(77_682, 0).saturating_mul(r.into()))86 // Standard Error: 10987 .saturating_add(Weight::from_parts(96_303, 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: 4_763_000 picoseconds.103 Weight::from_parts(11_344_974, 11003)104 // Standard Error: 401105 .saturating_add(Weight::from_parts(1_141_028, 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: 4_783_000 picoseconds.124 Weight::from_parts(11_531_027, 11003)125 // Standard Error: 369126 .saturating_add(Weight::from_parts(542_102, 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: 23_175_000 picoseconds.145 Weight::from_parts(16_503_215, 11003)146 // Standard Error: 625147 .saturating_add(Weight::from_parts(1_175, 0).saturating_mul(r.into()))148 // Standard Error: 122149 .saturating_add(Weight::from_parts(533_184, 0).saturating_mul(s.into()))150 // Standard Error: 122151 .saturating_add(Weight::from_parts(94_600, 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: 15_322_000 picoseconds.167 Weight::from_parts(13_671_670, 11003)168 // Standard Error: 722169 .saturating_add(Weight::from_parts(73_665, 0).saturating_mul(r.into()))170 // Standard Error: 140171 .saturating_add(Weight::from_parts(124_598, 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: 13_268_000 picoseconds.184 Weight::from_parts(12_489_352, 11003)185 // Standard Error: 544186 .saturating_add(Weight::from_parts(35_424, 0).saturating_mul(r.into()))187 // Standard Error: 106188 .saturating_add(Weight::from_parts(123_149, 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: 4_845_000 picoseconds.200 Weight::from_parts(5_147_478, 2626)201 // Standard Error: 169202 .saturating_add(Weight::from_parts(55_561, 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: 4_191_000 picoseconds.214 Weight::from_parts(4_478_351, 2626)215 // Standard Error: 138216 .saturating_add(Weight::from_parts(53_627, 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: 4_003_000 picoseconds.228 Weight::from_parts(4_303_365, 2626)229 // Standard Error: 147230 .saturating_add(Weight::from_parts(52_472, 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: 11_465_000 picoseconds.245 Weight::from_parts(10_326_049, 11003)246 // Standard Error: 660247 .saturating_add(Weight::from_parts(48_922, 0).saturating_mul(r.into()))248 // Standard Error: 122249 .saturating_add(Weight::from_parts(185_374, 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: 34_933_000 picoseconds.269 Weight::from_parts(28_994_022, 11003)270 // Standard Error: 668271 .saturating_add(Weight::from_parts(21_722, 0).saturating_mul(r.into()))272 // Standard Error: 130273 .saturating_add(Weight::from_parts(540_580, 0).saturating_mul(s.into()))274 // Standard Error: 130275 .saturating_add(Weight::from_parts(89_348, 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: 2_770_000 picoseconds.289 Weight::from_parts(2_875_000, 0)290 // Standard Error: 281_295291 .saturating_add(Weight::from_parts(37_513_186, 0).saturating_mul(x.into()))292 // Standard Error: 46_799293 .saturating_add(Weight::from_parts(7_949_936, 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: 2_751_000 picoseconds.307 Weight::from_parts(2_862_000, 990)308 // Standard Error: 953309 .saturating_add(Weight::from_parts(28_947, 0).saturating_mul(x.into()))310 // Standard Error: 158311 .saturating_add(Weight::from_parts(994_085, 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: 2_671_000 picoseconds.327 Weight::from_parts(2_814_000, 990)328 // Standard Error: 785_159329 .saturating_add(Weight::from_parts(109_659_566, 0).saturating_mul(s.into()))330 // Standard Error: 130_628331 .saturating_add(Weight::from_parts(19_169_269, 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: 12_571_000 picoseconds.349 Weight::from_parts(16_366_301, 11003)350 // Standard Error: 217351 .saturating_add(Weight::from_parts(42_542, 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: 7_278_000 picoseconds.365 Weight::from_parts(9_227_799, 11003)366 // Standard Error: 104367 .saturating_add(Weight::from_parts(14_014, 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: 15_771_000 picoseconds.383 Weight::from_parts(18_105_475, 11003)384 // Standard Error: 129385 .saturating_add(Weight::from_parts(32_074, 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: 14_093_000 picoseconds.401 Weight::from_parts(16_125_177, 6723)402 // Standard Error: 146403 .saturating_add(Weight::from_parts(39_270, 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: 6_759_000 picoseconds.419 Weight::from_parts(7_254_560, 2626)420 // Standard Error: 231421 .saturating_add(Weight::from_parts(64_513, 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: 14_134_000 picoseconds.434 Weight::from_parts(12_591_985, 11003)435 // Standard Error: 562436 .saturating_add(Weight::from_parts(77_682, 0).saturating_mul(r.into()))437 // Standard Error: 109438 .saturating_add(Weight::from_parts(96_303, 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: 4_763_000 picoseconds.454 Weight::from_parts(11_344_974, 11003)455 // Standard Error: 401456 .saturating_add(Weight::from_parts(1_141_028, 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: 4_783_000 picoseconds.475 Weight::from_parts(11_531_027, 11003)476 // Standard Error: 369477 .saturating_add(Weight::from_parts(542_102, 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: 23_175_000 picoseconds.496 Weight::from_parts(16_503_215, 11003)497 // Standard Error: 625498 .saturating_add(Weight::from_parts(1_175, 0).saturating_mul(r.into()))499 // Standard Error: 122500 .saturating_add(Weight::from_parts(533_184, 0).saturating_mul(s.into()))501 // Standard Error: 122502 .saturating_add(Weight::from_parts(94_600, 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: 15_322_000 picoseconds.518 Weight::from_parts(13_671_670, 11003)519 // Standard Error: 722520 .saturating_add(Weight::from_parts(73_665, 0).saturating_mul(r.into()))521 // Standard Error: 140522 .saturating_add(Weight::from_parts(124_598, 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: 13_268_000 picoseconds.535 Weight::from_parts(12_489_352, 11003)536 // Standard Error: 544537 .saturating_add(Weight::from_parts(35_424, 0).saturating_mul(r.into()))538 // Standard Error: 106539 .saturating_add(Weight::from_parts(123_149, 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: 4_845_000 picoseconds.551 Weight::from_parts(5_147_478, 2626)552 // Standard Error: 169553 .saturating_add(Weight::from_parts(55_561, 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: 4_191_000 picoseconds.565 Weight::from_parts(4_478_351, 2626)566 // Standard Error: 138567 .saturating_add(Weight::from_parts(53_627, 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: 4_003_000 picoseconds.579 Weight::from_parts(4_303_365, 2626)580 // Standard Error: 147581 .saturating_add(Weight::from_parts(52_472, 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: 11_465_000 picoseconds.596 Weight::from_parts(10_326_049, 11003)597 // Standard Error: 660598 .saturating_add(Weight::from_parts(48_922, 0).saturating_mul(r.into()))599 // Standard Error: 122600 .saturating_add(Weight::from_parts(185_374, 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: 34_933_000 picoseconds.620 Weight::from_parts(28_994_022, 11003)621 // Standard Error: 668622 .saturating_add(Weight::from_parts(21_722, 0).saturating_mul(r.into()))623 // Standard Error: 130624 .saturating_add(Weight::from_parts(540_580, 0).saturating_mul(s.into()))625 // Standard Error: 130626 .saturating_add(Weight::from_parts(89_348, 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: 2_770_000 picoseconds.640 Weight::from_parts(2_875_000, 0)641 // Standard Error: 281_295642 .saturating_add(Weight::from_parts(37_513_186, 0).saturating_mul(x.into()))643 // Standard Error: 46_799644 .saturating_add(Weight::from_parts(7_949_936, 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: 2_751_000 picoseconds.658 Weight::from_parts(2_862_000, 990)659 // Standard Error: 953660 .saturating_add(Weight::from_parts(28_947, 0).saturating_mul(x.into()))661 // Standard Error: 158662 .saturating_add(Weight::from_parts(994_085, 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: 2_671_000 picoseconds.678 Weight::from_parts(2_814_000, 990)679 // Standard Error: 785_159680 .saturating_add(Weight::from_parts(109_659_566, 0).saturating_mul(s.into()))681 // Standard Error: 130_628682 .saturating_add(Weight::from_parts(19_169_269, 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: 12_571_000 picoseconds.700 Weight::from_parts(16_366_301, 11003)701 // Standard Error: 217702 .saturating_add(Weight::from_parts(42_542, 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: 7_278_000 picoseconds.716 Weight::from_parts(9_227_799, 11003)717 // Standard Error: 104718 .saturating_add(Weight::from_parts(14_014, 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: 15_771_000 picoseconds.734 Weight::from_parts(18_105_475, 11003)735 // Standard Error: 129736 .saturating_add(Weight::from_parts(32_074, 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: 14_093_000 picoseconds.752 Weight::from_parts(16_125_177, 6723)753 // Standard Error: 146754 .saturating_add(Weight::from_parts(39_270, 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