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 29.0.06//! DATE: 2023-11-29, 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: , 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=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(x: u32, r: 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 `[2, 20]`.63 fn add_registrar(r: u32, ) -> Weight {64 // Proof Size summary in bytes:65 // Measured: `0 + r * (57 ±0)`66 // Estimated: `2626`67 // Minimum execution time: 9_578_000 picoseconds.68 Weight::from_parts(10_083_742, 2626)69 // Standard Error: 68970 .saturating_add(Weight::from_parts(76_697, 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 `x` is `[0, 100]`.77 /// The range of component `r` is `[1, 20]`.78 fn set_identity(x: u32, r: u32, ) -> Weight {79 // Proof Size summary in bytes:80 // Measured: `441 + r * (5 ±0)`81 // Estimated: `11003`82 // Minimum execution time: 27_292_000 picoseconds.83 Weight::from_parts(26_399_351, 11003)84 // Standard Error: 15985 .saturating_add(Weight::from_parts(406_218, 0).saturating_mul(x.into()))86 // Standard Error: 81887 .saturating_add(Weight::from_parts(82_103, 0).saturating_mul(r.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: 8_917_000 picoseconds.103 Weight::from_parts(21_928_761, 11003)104 // Standard Error: 1_688105 .saturating_add(Weight::from_parts(2_589_468, 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: 8_823_000 picoseconds.124 Weight::from_parts(21_989_831, 11003)125 // Standard Error: 1_532126 .saturating_add(Weight::from_parts(1_054_759, 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: 47_582_000 picoseconds.145 Weight::from_parts(28_829_183, 11003)146 // Standard Error: 1_765147 .saturating_add(Weight::from_parts(49_927, 0).saturating_mul(r.into()))148 // Standard Error: 344149 .saturating_add(Weight::from_parts(1_038_819, 0).saturating_mul(s.into()))150 // Standard Error: 344151 .saturating_add(Weight::from_parts(214_066, 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: 27_968_000 picoseconds.167 Weight::from_parts(26_462_902, 11003)168 // Standard Error: 895169 .saturating_add(Weight::from_parts(105_137, 0).saturating_mul(r.into()))170 // Standard Error: 174171 .saturating_add(Weight::from_parts(420_373, 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: 25_142_000 picoseconds.184 Weight::from_parts(24_728_741, 11003)185 // Standard Error: 712186 .saturating_add(Weight::from_parts(60_239, 0).saturating_mul(r.into()))187 // Standard Error: 138188 .saturating_add(Weight::from_parts(422_471, 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 `[2, 20]`.195 fn set_fee(r: u32, ) -> Weight {196 // Proof Size summary in bytes:197 // Measured: `31 + r * (57 ±0)`198 // Estimated: `2626`199 // Minimum execution time: 6_789_000 picoseconds.200 Weight::from_parts(7_075_767, 2626)201 // Standard Error: 526202 .saturating_add(Weight::from_parts(68_290, 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 `[2, 20]`.209 fn set_account_id(r: u32, ) -> Weight {210 // Proof Size summary in bytes:211 // Measured: `31 + r * (57 ±0)`212 // Estimated: `2626`213 // Minimum execution time: 5_828_000 picoseconds.214 Weight::from_parts(6_223_264, 2626)215 // Standard Error: 483216 .saturating_add(Weight::from_parts(59_708, 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 `[2, 20]`.223 fn set_fields(r: u32, ) -> Weight {224 // Proof Size summary in bytes:225 // Measured: `31 + r * (57 ±0)`226 // Estimated: `2626`227 // Minimum execution time: 5_980_000 picoseconds.228 Weight::from_parts(6_292_378, 2626)229 // Standard Error: 411230 .saturating_add(Weight::from_parts(63_280, 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 `[2, 20]`.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: `387 + r * (57 ±0) + x * (66 ±0)`243 // Estimated: `11003`244 // Minimum execution time: 19_646_000 picoseconds.245 Weight::from_parts(19_050_959, 11003)246 // Standard Error: 898247 .saturating_add(Weight::from_parts(68_025, 0).saturating_mul(r.into()))248 // Standard Error: 166249 .saturating_add(Weight::from_parts(654_575, 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: 67_355_000 picoseconds.269 Weight::from_parts(48_096_644, 11003)270 // Standard Error: 2_600271 .saturating_add(Weight::from_parts(62_827, 0).saturating_mul(r.into()))272 // Standard Error: 507273 .saturating_add(Weight::from_parts(1_069_940, 0).saturating_mul(s.into()))274 // Standard Error: 507275 .saturating_add(Weight::from_parts(221_180, 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: 5_046_000 picoseconds.289 Weight::from_parts(5_163_000, 0)290 // Standard Error: 2_030_453291 .saturating_add(Weight::from_parts(124_770_602, 0).saturating_mul(x.into()))292 // Standard Error: 337_809293 .saturating_add(Weight::from_parts(25_236_677, 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: 4_830_000 picoseconds.307 Weight::from_parts(4_927_000, 990)308 // Standard Error: 3_713309 .saturating_add(Weight::from_parts(44_616, 0).saturating_mul(x.into()))310 // Standard Error: 617311 .saturating_add(Weight::from_parts(2_137_021, 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_921_000 picoseconds.327 Weight::from_parts(5_027_000, 990)328 // Standard Error: 4_668_110329 .saturating_add(Weight::from_parts(294_772_950, 0).saturating_mul(s.into()))330 // Standard Error: 776_639331 .saturating_add(Weight::from_parts(51_928_457, 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 `[1, 100]`.344 fn add_sub(s: u32, ) -> Weight {345 // Proof Size summary in bytes:346 // Measured: `437 + s * (36 ±0)`347 // Estimated: `11003`348 // Minimum execution time: 24_663_000 picoseconds.349 Weight::from_parts(28_784_080, 11003)350 // Standard Error: 528351 .saturating_add(Weight::from_parts(51_119, 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: 12_084_000 picoseconds.365 Weight::from_parts(14_032_042, 11003)366 // Standard Error: 233367 .saturating_add(Weight::from_parts(17_153, 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: 27_579_000 picoseconds.383 Weight::from_parts(30_219_773, 11003)384 // Standard Error: 337385 .saturating_add(Weight::from_parts(38_947, 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 `[1, 100]`.396 fn quit_sub(s: u32, ) -> Weight {397 // Proof Size summary in bytes:398 // Measured: `665 + s * (37 ±0)`399 // Estimated: `6723`400 // Minimum execution time: 22_871_000 picoseconds.401 Weight::from_parts(24_857_822, 6723)402 // Standard Error: 348403 .saturating_add(Weight::from_parts(44_815, 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 `[2, 20]`.414 fn add_registrar(r: u32, ) -> Weight {415 // Proof Size summary in bytes:416 // Measured: `0 + r * (57 ±0)`417 // Estimated: `2626`418 // Minimum execution time: 9_578_000 picoseconds.419 Weight::from_parts(10_083_742, 2626)420 // Standard Error: 689421 .saturating_add(Weight::from_parts(76_697, 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 `x` is `[0, 100]`.428 /// The range of component `r` is `[1, 20]`.429 fn set_identity(x: u32, r: u32, ) -> Weight {430 // Proof Size summary in bytes:431 // Measured: `441 + r * (5 ±0)`432 // Estimated: `11003`433 // Minimum execution time: 27_292_000 picoseconds.434 Weight::from_parts(26_399_351, 11003)435 // Standard Error: 159436 .saturating_add(Weight::from_parts(406_218, 0).saturating_mul(x.into()))437 // Standard Error: 818438 .saturating_add(Weight::from_parts(82_103, 0).saturating_mul(r.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: 8_917_000 picoseconds.454 Weight::from_parts(21_928_761, 11003)455 // Standard Error: 1_688456 .saturating_add(Weight::from_parts(2_589_468, 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: 8_823_000 picoseconds.475 Weight::from_parts(21_989_831, 11003)476 // Standard Error: 1_532477 .saturating_add(Weight::from_parts(1_054_759, 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: 47_582_000 picoseconds.496 Weight::from_parts(28_829_183, 11003)497 // Standard Error: 1_765498 .saturating_add(Weight::from_parts(49_927, 0).saturating_mul(r.into()))499 // Standard Error: 344500 .saturating_add(Weight::from_parts(1_038_819, 0).saturating_mul(s.into()))501 // Standard Error: 344502 .saturating_add(Weight::from_parts(214_066, 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: 27_968_000 picoseconds.518 Weight::from_parts(26_462_902, 11003)519 // Standard Error: 895520 .saturating_add(Weight::from_parts(105_137, 0).saturating_mul(r.into()))521 // Standard Error: 174522 .saturating_add(Weight::from_parts(420_373, 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: 25_142_000 picoseconds.535 Weight::from_parts(24_728_741, 11003)536 // Standard Error: 712537 .saturating_add(Weight::from_parts(60_239, 0).saturating_mul(r.into()))538 // Standard Error: 138539 .saturating_add(Weight::from_parts(422_471, 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 `[2, 20]`.546 fn set_fee(r: u32, ) -> Weight {547 // Proof Size summary in bytes:548 // Measured: `31 + r * (57 ±0)`549 // Estimated: `2626`550 // Minimum execution time: 6_789_000 picoseconds.551 Weight::from_parts(7_075_767, 2626)552 // Standard Error: 526553 .saturating_add(Weight::from_parts(68_290, 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 `[2, 20]`.560 fn set_account_id(r: u32, ) -> Weight {561 // Proof Size summary in bytes:562 // Measured: `31 + r * (57 ±0)`563 // Estimated: `2626`564 // Minimum execution time: 5_828_000 picoseconds.565 Weight::from_parts(6_223_264, 2626)566 // Standard Error: 483567 .saturating_add(Weight::from_parts(59_708, 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 `[2, 20]`.574 fn set_fields(r: u32, ) -> Weight {575 // Proof Size summary in bytes:576 // Measured: `31 + r * (57 ±0)`577 // Estimated: `2626`578 // Minimum execution time: 5_980_000 picoseconds.579 Weight::from_parts(6_292_378, 2626)580 // Standard Error: 411581 .saturating_add(Weight::from_parts(63_280, 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 `[2, 20]`.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: `387 + r * (57 ±0) + x * (66 ±0)`594 // Estimated: `11003`595 // Minimum execution time: 19_646_000 picoseconds.596 Weight::from_parts(19_050_959, 11003)597 // Standard Error: 898598 .saturating_add(Weight::from_parts(68_025, 0).saturating_mul(r.into()))599 // Standard Error: 166600 .saturating_add(Weight::from_parts(654_575, 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: 67_355_000 picoseconds.620 Weight::from_parts(48_096_644, 11003)621 // Standard Error: 2_600622 .saturating_add(Weight::from_parts(62_827, 0).saturating_mul(r.into()))623 // Standard Error: 507624 .saturating_add(Weight::from_parts(1_069_940, 0).saturating_mul(s.into()))625 // Standard Error: 507626 .saturating_add(Weight::from_parts(221_180, 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: 5_046_000 picoseconds.640 Weight::from_parts(5_163_000, 0)641 // Standard Error: 2_030_453642 .saturating_add(Weight::from_parts(124_770_602, 0).saturating_mul(x.into()))643 // Standard Error: 337_809644 .saturating_add(Weight::from_parts(25_236_677, 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: 4_830_000 picoseconds.658 Weight::from_parts(4_927_000, 990)659 // Standard Error: 3_713660 .saturating_add(Weight::from_parts(44_616, 0).saturating_mul(x.into()))661 // Standard Error: 617662 .saturating_add(Weight::from_parts(2_137_021, 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_921_000 picoseconds.678 Weight::from_parts(5_027_000, 990)679 // Standard Error: 4_668_110680 .saturating_add(Weight::from_parts(294_772_950, 0).saturating_mul(s.into()))681 // Standard Error: 776_639682 .saturating_add(Weight::from_parts(51_928_457, 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 `[1, 100]`.695 fn add_sub(s: u32, ) -> Weight {696 // Proof Size summary in bytes:697 // Measured: `437 + s * (36 ±0)`698 // Estimated: `11003`699 // Minimum execution time: 24_663_000 picoseconds.700 Weight::from_parts(28_784_080, 11003)701 // Standard Error: 528702 .saturating_add(Weight::from_parts(51_119, 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: 12_084_000 picoseconds.716 Weight::from_parts(14_032_042, 11003)717 // Standard Error: 233718 .saturating_add(Weight::from_parts(17_153, 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: 27_579_000 picoseconds.734 Weight::from_parts(30_219_773, 11003)735 // Standard Error: 337736 .saturating_add(Weight::from_parts(38_947, 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 `[1, 100]`.747 fn quit_sub(s: u32, ) -> Weight {748 // Proof Size summary in bytes:749 // Measured: `665 + s * (37 ±0)`750 // Estimated: `6723`751 // Minimum execution time: 22_871_000 picoseconds.752 Weight::from_parts(24_857_822, 6723)753 // Standard Error: 348754 .saturating_add(Weight::from_parts(44_815, 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.rs37.5 KiBsourcehistory