pallet_xp/
weights.rs

1
2//! Autogenerated weights for `pallet_xp`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
5//! DATE: 2026-05-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`,
6//! HIGH RANGE: `[]`
7//! WORST CASE MAP SIZE: `1000000`
8//! HOSTNAME: `Naveens-MacBook-Air.local`, CPU: `<UNKNOWN>`
9//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
10
11// Executed Command:
12// frame-omni-bencher
13// v1
14// benchmark
15// pallet
16// --runtime
17// target/release/wbuild/frame-suite-runtime/frame_suite_runtime.wasm
18// --pallet
19// pallet_xp
20// --extrinsic
21// *
22// --template
23// pallets/.maintain/frame-weight-template.hbs
24// --output
25// pallets/xp/src/weights.rs
26
27#![cfg_attr(rustfmt, rustfmt_skip)]
28#![allow(unused_parens)]
29#![allow(unused_imports)]
30#![allow(missing_docs)]
31
32use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
33use core::marker::PhantomData;
34
35/// Weight functions needed for `pallet_xp`.
36pub trait WeightInfo {
37fn handover() -> Weight;
38fn dispose() -> Weight;
39fn force_handover() -> Weight;
40fn force_update_min_time_stamp() -> Weight;
41fn call() -> Weight;
42fn force_update_init_xp() -> Weight;
43fn force_update_min_pulse() -> Weight;
44fn force_update_pulse_factor() -> Weight;
45fn inspect_xp_keys_of() -> Weight;
46fn inspect_my_xp() -> Weight;
47}
48
49/// Weights for `pallet_xp` using the Substrate node and recommended hardware.
50pub struct SubstrateWeight<T>(PhantomData<T>);
51                impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
52                        /// Storage: `Xp::XpOf` (r:1 w:0)
53                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
54                        /// Storage: `Xp::XpOwners` (r:1 w:2)
55                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
56                        fn handover() -> Weight {
57                        // Proof Size summary in bytes:
58                        // Measured: `2253`
59                        // Estimated: `3573`
60                        // Minimum execution time: 28_000_000 picoseconds.
61                        Weight::from_parts(32_000_000,
62                        3573)
63                        .saturating_add(T::DbWeight::get().reads(2_u64))
64                        .saturating_add(T::DbWeight::get().writes(2_u64))
65                        }
66                        /// Storage: `Xp::XpOf` (r:1 w:1)
67                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
68                        /// Storage: `Xp::XpOwners` (r:1 w:0)
69                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
70                        /// Storage: `Xp::ReapedXp` (r:1 w:1)
71                        /// Proof: `Xp::ReapedXp` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
72                        /// Storage: `Xp::MinTimeStamp` (r:1 w:0)
73                        /// Proof: `Xp::MinTimeStamp` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
74                        /// Storage: `Xp::LockedXpOf` (r:1 w:0)
75                        /// Proof: `Xp::LockedXpOf` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
76                        /// Storage: `Xp::ReservedXpOf` (r:0 w:1)
77                        /// Proof: `Xp::ReservedXpOf` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
78                        fn dispose() -> Weight {
79                        // Proof Size summary in bytes:
80                        // Measured: `2520`
81                        // Estimated: `3573`
82                        // Minimum execution time: 40_000_000 picoseconds.
83                        Weight::from_parts(44_000_000,
84                        3573)
85                        .saturating_add(T::DbWeight::get().reads(5_u64))
86                        .saturating_add(T::DbWeight::get().writes(3_u64))
87                        }
88                        /// Storage: `Xp::XpOf` (r:1 w:0)
89                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
90                        /// Storage: `Xp::XpOwners` (r:1 w:2)
91                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
92                        fn force_handover() -> Weight {
93                        // Proof Size summary in bytes:
94                        // Measured: `2424`
95                        // Estimated: `3573`
96                        // Minimum execution time: 33_000_000 picoseconds.
97                        Weight::from_parts(36_000_000,
98                        3573)
99                        .saturating_add(T::DbWeight::get().reads(2_u64))
100                        .saturating_add(T::DbWeight::get().writes(2_u64))
101                        }
102                        /// Storage: `Xp::MinTimeStamp` (r:0 w:1)
103                        /// Proof: `Xp::MinTimeStamp` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
104                        fn force_update_min_time_stamp() -> Weight {
105                        // Proof Size summary in bytes:
106                        // Measured: `0`
107                        // Estimated: `0`
108                        // Minimum execution time: 5_000_000 picoseconds.
109                        Weight::from_parts(6_000_000,
110                        0)
111                        .saturating_add(T::DbWeight::get().writes(1_u64))
112                        }
113                        /// Storage: `Xp::XpOwners` (r:1 w:0)
114                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
115                        fn call() -> Weight {
116                        // Proof Size summary in bytes:
117                        // Measured: `1178`
118                        // Estimated: `3561`
119                        // Minimum execution time: 17_000_000 picoseconds.
120                        Weight::from_parts(19_000_000,
121                        3561)
122                        .saturating_add(T::DbWeight::get().reads(1_u64))
123                        }
124                        /// Storage: `Xp::InitXp` (r:0 w:1)
125                        /// Proof: `Xp::InitXp` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
126                        fn force_update_init_xp() -> Weight {
127                        // Proof Size summary in bytes:
128                        // Measured: `0`
129                        // Estimated: `0`
130                        // Minimum execution time: 5_000_000 picoseconds.
131                        Weight::from_parts(6_000_000,
132                        0)
133                        .saturating_add(T::DbWeight::get().writes(1_u64))
134                        }
135                        /// Storage: `Xp::MinPulse` (r:0 w:1)
136                        /// Proof: `Xp::MinPulse` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
137                        fn force_update_min_pulse() -> Weight {
138                        // Proof Size summary in bytes:
139                        // Measured: `0`
140                        // Estimated: `0`
141                        // Minimum execution time: 5_000_000 picoseconds.
142                        Weight::from_parts(6_000_000,
143                        0)
144                        .saturating_add(T::DbWeight::get().writes(1_u64))
145                        }
146                        /// Storage: `Xp::PulseFactor` (r:0 w:1)
147                        /// Proof: `Xp::PulseFactor` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
148                        fn force_update_pulse_factor() -> Weight {
149                        // Proof Size summary in bytes:
150                        // Measured: `0`
151                        // Estimated: `0`
152                        // Minimum execution time: 5_000_000 picoseconds.
153                        Weight::from_parts(6_000_000,
154                        0)
155                        .saturating_add(T::DbWeight::get().writes(1_u64))
156                        }
157                        /// Storage: `Xp::XpOwners` (r:3 w:0)
158                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
159                        fn inspect_xp_keys_of() -> Weight {
160                        // Proof Size summary in bytes:
161                        // Measured: `1440`
162                        // Estimated: `8703`
163                        // Minimum execution time: 25_000_000 picoseconds.
164                        Weight::from_parts(27_000_000,
165                        8703)
166                        .saturating_add(T::DbWeight::get().reads(3_u64))
167                        }
168                        /// Storage: `Xp::XpOf` (r:1 w:0)
169                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
170                        /// Storage: `Xp::XpOwners` (r:1 w:0)
171                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
172                        fn inspect_my_xp() -> Weight {
173                        // Proof Size summary in bytes:
174                        // Measured: `2250`
175                        // Estimated: `3573`
176                        // Minimum execution time: 30_000_000 picoseconds.
177                        Weight::from_parts(34_000_000,
178                        3573)
179                        .saturating_add(T::DbWeight::get().reads(2_u64))
180                        }
181                        }
182
183                        // For backwards compatibility and tests.
184                        impl WeightInfo for () {
185                        /// Storage: `Xp::XpOf` (r:1 w:0)
186                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
187                        /// Storage: `Xp::XpOwners` (r:1 w:2)
188                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
189                        fn handover() -> Weight {
190                        // Proof Size summary in bytes:
191                        // Measured: `2253`
192                        // Estimated: `3573`
193                        // Minimum execution time: 28_000_000 picoseconds.
194                        Weight::from_parts(32_000_000,
195                        3573)
196                        .saturating_add(RocksDbWeight::get().reads(2_u64))
197                        .saturating_add(RocksDbWeight::get().writes(2_u64))
198                        }
199                        /// Storage: `Xp::XpOf` (r:1 w:1)
200                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
201                        /// Storage: `Xp::XpOwners` (r:1 w:0)
202                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
203                        /// Storage: `Xp::ReapedXp` (r:1 w:1)
204                        /// Proof: `Xp::ReapedXp` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
205                        /// Storage: `Xp::MinTimeStamp` (r:1 w:0)
206                        /// Proof: `Xp::MinTimeStamp` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
207                        /// Storage: `Xp::LockedXpOf` (r:1 w:0)
208                        /// Proof: `Xp::LockedXpOf` (`max_values`: None, `max_size`: Some(103), added: 2578, mode: `MaxEncodedLen`)
209                        /// Storage: `Xp::ReservedXpOf` (r:0 w:1)
210                        /// Proof: `Xp::ReservedXpOf` (`max_values`: None, `max_size`: Some(67), added: 2542, mode: `MaxEncodedLen`)
211                        fn dispose() -> Weight {
212                        // Proof Size summary in bytes:
213                        // Measured: `2520`
214                        // Estimated: `3573`
215                        // Minimum execution time: 40_000_000 picoseconds.
216                        Weight::from_parts(44_000_000,
217                        3573)
218                        .saturating_add(RocksDbWeight::get().reads(5_u64))
219                        .saturating_add(RocksDbWeight::get().writes(3_u64))
220                        }
221                        /// Storage: `Xp::XpOf` (r:1 w:0)
222                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
223                        /// Storage: `Xp::XpOwners` (r:1 w:2)
224                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
225                        fn force_handover() -> Weight {
226                        // Proof Size summary in bytes:
227                        // Measured: `2424`
228                        // Estimated: `3573`
229                        // Minimum execution time: 33_000_000 picoseconds.
230                        Weight::from_parts(36_000_000,
231                        3573)
232                        .saturating_add(RocksDbWeight::get().reads(2_u64))
233                        .saturating_add(RocksDbWeight::get().writes(2_u64))
234                        }
235                        /// Storage: `Xp::MinTimeStamp` (r:0 w:1)
236                        /// Proof: `Xp::MinTimeStamp` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
237                        fn force_update_min_time_stamp() -> Weight {
238                        // Proof Size summary in bytes:
239                        // Measured: `0`
240                        // Estimated: `0`
241                        // Minimum execution time: 5_000_000 picoseconds.
242                        Weight::from_parts(6_000_000,
243                        0)
244                        .saturating_add(RocksDbWeight::get().writes(1_u64))
245                        }
246                        /// Storage: `Xp::XpOwners` (r:1 w:0)
247                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
248                        fn call() -> Weight {
249                        // Proof Size summary in bytes:
250                        // Measured: `1178`
251                        // Estimated: `3561`
252                        // Minimum execution time: 17_000_000 picoseconds.
253                        Weight::from_parts(19_000_000,
254                        3561)
255                        .saturating_add(RocksDbWeight::get().reads(1_u64))
256                        }
257                        /// Storage: `Xp::InitXp` (r:0 w:1)
258                        /// Proof: `Xp::InitXp` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
259                        fn force_update_init_xp() -> Weight {
260                        // Proof Size summary in bytes:
261                        // Measured: `0`
262                        // Estimated: `0`
263                        // Minimum execution time: 5_000_000 picoseconds.
264                        Weight::from_parts(6_000_000,
265                        0)
266                        .saturating_add(RocksDbWeight::get().writes(1_u64))
267                        }
268                        /// Storage: `Xp::MinPulse` (r:0 w:1)
269                        /// Proof: `Xp::MinPulse` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
270                        fn force_update_min_pulse() -> Weight {
271                        // Proof Size summary in bytes:
272                        // Measured: `0`
273                        // Estimated: `0`
274                        // Minimum execution time: 5_000_000 picoseconds.
275                        Weight::from_parts(6_000_000,
276                        0)
277                        .saturating_add(RocksDbWeight::get().writes(1_u64))
278                        }
279                        /// Storage: `Xp::PulseFactor` (r:0 w:1)
280                        /// Proof: `Xp::PulseFactor` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
281                        fn force_update_pulse_factor() -> Weight {
282                        // Proof Size summary in bytes:
283                        // Measured: `0`
284                        // Estimated: `0`
285                        // Minimum execution time: 5_000_000 picoseconds.
286                        Weight::from_parts(6_000_000,
287                        0)
288                        .saturating_add(RocksDbWeight::get().writes(1_u64))
289                        }
290                        /// Storage: `Xp::XpOwners` (r:3 w:0)
291                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
292                        fn inspect_xp_keys_of() -> Weight {
293                        // Proof Size summary in bytes:
294                        // Measured: `1440`
295                        // Estimated: `8703`
296                        // Minimum execution time: 25_000_000 picoseconds.
297                        Weight::from_parts(27_000_000,
298                        8703)
299                        .saturating_add(RocksDbWeight::get().reads(3_u64))
300                        }
301                        /// Storage: `Xp::XpOf` (r:1 w:0)
302                        /// Proof: `Xp::XpOf` (`max_values`: None, `max_size`: Some(108), added: 2583, mode: `MaxEncodedLen`)
303                        /// Storage: `Xp::XpOwners` (r:1 w:0)
304                        /// Proof: `Xp::XpOwners` (`max_values`: None, `max_size`: Some(96), added: 2571, mode: `MaxEncodedLen`)
305                        fn inspect_my_xp() -> Weight {
306                        // Proof Size summary in bytes:
307                        // Measured: `2250`
308                        // Estimated: `3573`
309                        // Minimum execution time: 30_000_000 picoseconds.
310                        Weight::from_parts(34_000_000,
311                        3573)
312                        .saturating_add(RocksDbWeight::get().reads(2_u64))
313                        }
314                        }