westend_runtime/weights/polkadot_runtime_common_identity_migrator.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `polkadot_runtime_common::identity_migrator`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=polkadot_runtime_common::identity_migrator
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `polkadot_runtime_common::identity_migrator`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_common::identity_migrator::WeightInfo for WeightInfo<T> {
54 /// Storage: `Identity::IdentityOf` (r:1 w:1)
55 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
56 /// Storage: `Identity::SubsOf` (r:1 w:1)
57 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
58 /// Storage: `System::Account` (r:2 w:2)
59 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
60 /// Storage: `Dmp::DeliveryFeeFactor` (r:1 w:0)
61 /// Proof: `Dmp::DeliveryFeeFactor` (`max_values`: None, `max_size`: None, mode: `Measured`)
62 /// Storage: `XcmPallet::SupportedVersion` (r:1 w:0)
63 /// Proof: `XcmPallet::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
64 /// Storage: `Dmp::DownwardMessageQueues` (r:1 w:1)
65 /// Proof: `Dmp::DownwardMessageQueues` (`max_values`: None, `max_size`: None, mode: `Measured`)
66 /// Storage: `Paras::Heads` (r:1 w:0)
67 /// Proof: `Paras::Heads` (`max_values`: None, `max_size`: None, mode: `Measured`)
68 /// Storage: `Dmp::DownwardMessageQueueHeads` (r:1 w:1)
69 /// Proof: `Dmp::DownwardMessageQueueHeads` (`max_values`: None, `max_size`: None, mode: `Measured`)
70 /// Storage: `Identity::SuperOf` (r:0 w:100)
71 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
72 /// The range of component `r` is `[0, 20]`.
73 /// The range of component `s` is `[0, 100]`.
74 fn reap_identity(r: u32, s: u32, ) -> Weight {
75 // Proof Size summary in bytes:
76 // Measured: `7488 + r * (5 ±0) + s * (32 ±0)`
77 // Estimated: `11003 + r * (7 ±0) + s * (32 ±0)`
78 // Minimum execution time: 182_585_000 picoseconds.
79 Weight::from_parts(189_454_318, 0)
80 .saturating_add(Weight::from_parts(0, 11003))
81 // Standard Error: 22_079
82 .saturating_add(Weight::from_parts(181_699, 0).saturating_mul(r.into()))
83 // Standard Error: 4_522
84 .saturating_add(Weight::from_parts(1_520_911, 0).saturating_mul(s.into()))
85 .saturating_add(T::DbWeight::get().reads(9))
86 .saturating_add(T::DbWeight::get().writes(6))
87 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
88 .saturating_add(Weight::from_parts(0, 7).saturating_mul(r.into()))
89 .saturating_add(Weight::from_parts(0, 32).saturating_mul(s.into()))
90 }
91 /// Storage: `Identity::IdentityOf` (r:1 w:1)
92 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(7538), added: 10013, mode: `MaxEncodedLen`)
93 /// Storage: `System::Account` (r:1 w:1)
94 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
95 /// Storage: `Identity::SubsOf` (r:1 w:1)
96 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
97 fn poke_deposit() -> Weight {
98 // Proof Size summary in bytes:
99 // Measured: `7241`
100 // Estimated: `11003`
101 // Minimum execution time: 124_068_000 picoseconds.
102 Weight::from_parts(125_776_000, 0)
103 .saturating_add(Weight::from_parts(0, 11003))
104 .saturating_add(T::DbWeight::get().reads(3))
105 .saturating_add(T::DbWeight::get().writes(3))
106 }
107}