people_westend_runtime/weights/polkadot_runtime_common_identity_migrator.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `polkadot_runtime_common::identity_migrator`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `b9a9df1fcddf`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/people-westend-runtime/people_westend_runtime.wasm
31// --pallet=polkadot_runtime_common::identity_migrator
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/people/people-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `polkadot_runtime_common::identity_migrator`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> polkadot_runtime_common::identity_migrator::WeightInfo for WeightInfo<T> {
53 /// Storage: `Identity::IdentityOf` (r:1 w:1)
54 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
55 /// Storage: `Identity::SubsOf` (r:1 w:1)
56 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
57 /// Storage: `System::Account` (r:1 w:1)
58 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
59 /// Storage: `Identity::SuperOf` (r:0 w:100)
60 /// Proof: `Identity::SuperOf` (`max_values`: None, `max_size`: Some(114), added: 2589, mode: `MaxEncodedLen`)
61 /// The range of component `r` is `[0, 20]`.
62 /// The range of component `s` is `[0, 100]`.
63 fn reap_identity(r: u32, s: u32, ) -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `673 + r * (5 ±0) + s * (32 ±0)`
66 // Estimated: `6723`
67 // Minimum execution time: 35_796_000 picoseconds.
68 Weight::from_parts(34_778_147, 0)
69 .saturating_add(Weight::from_parts(0, 6723))
70 // Standard Error: 17_206
71 .saturating_add(Weight::from_parts(261_851, 0).saturating_mul(r.into()))
72 // Standard Error: 3_524
73 .saturating_add(Weight::from_parts(1_494_892, 0).saturating_mul(s.into()))
74 .saturating_add(T::DbWeight::get().reads(3))
75 .saturating_add(T::DbWeight::get().writes(3))
76 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(s.into())))
77 }
78 /// Storage: `Identity::IdentityOf` (r:1 w:1)
79 /// Proof: `Identity::IdentityOf` (`max_values`: None, `max_size`: Some(804), added: 3279, mode: `MaxEncodedLen`)
80 /// Storage: `System::Account` (r:1 w:1)
81 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
82 /// Storage: `Identity::SubsOf` (r:1 w:1)
83 /// Proof: `Identity::SubsOf` (`max_values`: None, `max_size`: Some(3258), added: 5733, mode: `MaxEncodedLen`)
84 fn poke_deposit() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `634`
87 // Estimated: `6723`
88 // Minimum execution time: 48_688_000 picoseconds.
89 Weight::from_parts(49_781_000, 0)
90 .saturating_add(Weight::from_parts(0, 6723))
91 .saturating_add(T::DbWeight::get().reads(3))
92 .saturating_add(T::DbWeight::get().writes(3))
93 }
94}