cumulus_pallet_xcmp_queue/weights.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 `cumulus_pallet_xcmp_queue`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-09-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `Serbans-MacBook-Pro.local`, CPU: `<UNKNOWN>`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
23
24// Executed Command:
25// ./target/release/polkadot-parachain
26// benchmark
27// pallet
28// --pallet
29// cumulus-pallet-xcmp-queue
30// --chain
31// asset-hub-westend-dev
32// --output
33// cumulus/pallets/xcmp-queue/src/weights.rs
34// --template
35// substrate/.maintain/frame-weight-template.hbs
36// --extrinsic
37//
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42#![allow(missing_docs)]
43#![allow(dead_code)]
44
45use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
46use core::marker::PhantomData;
47
48/// Weight functions needed for `cumulus_pallet_xcmp_queue`.
49pub trait WeightInfo {
50 fn set_config_with_u32() -> Weight;
51 fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight;
52 fn enqueue_n_empty_xcmp_messages(n: u32, ) -> Weight;
53 fn enqueue_empty_xcmp_message_at(n: u32, ) -> Weight;
54 fn enqueue_n_full_pages(n: u32, ) -> Weight;
55 fn enqueue_1000_small_xcmp_messages() -> Weight;
56 fn suspend_channel() -> Weight;
57 fn resume_channel() -> Weight;
58 fn take_first_concatenated_xcm(n: u32, ) -> Weight;
59 fn on_idle_good_msg() -> Weight;
60 fn on_idle_large_msg() -> Weight;
61}
62
63/// Weights for `cumulus_pallet_xcmp_queue` using the Substrate node and recommended hardware.
64pub struct SubstrateWeight<T>(PhantomData<T>);
65impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
66 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
67 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
68 fn set_config_with_u32() -> Weight {
69 // Proof Size summary in bytes:
70 // Measured: `175`
71 // Estimated: `1497`
72 // Minimum execution time: 3_000_000 picoseconds.
73 Weight::from_parts(4_000_000, 1497)
74 .saturating_add(T::DbWeight::get().reads(1_u64))
75 .saturating_add(T::DbWeight::get().writes(1_u64))
76 }
77 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
78 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
79 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
80 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
81 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
82 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
83 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
84 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
85 /// Storage: `MessageQueue::Pages` (r:0 w:1)
86 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
87 /// The range of component `n` is `[0, 105467]`.
88 fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight {
89 // Proof Size summary in bytes:
90 // Measured: `251`
91 // Estimated: `5487`
92 // Minimum execution time: 11_000_000 picoseconds.
93 Weight::from_parts(12_262_916, 5487)
94 // Standard Error: 0
95 .saturating_add(Weight::from_parts(187, 0).saturating_mul(n.into()))
96 .saturating_add(T::DbWeight::get().reads(4_u64))
97 .saturating_add(T::DbWeight::get().writes(3_u64))
98 }
99 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
100 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
101 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
102 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
103 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
104 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
105 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
106 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
107 /// Storage: `MessageQueue::Pages` (r:0 w:1)
108 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
109 /// The range of component `n` is `[0, 1000]`.
110 fn enqueue_n_empty_xcmp_messages(n: u32, ) -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `251`
113 // Estimated: `5487`
114 // Minimum execution time: 9_000_000 picoseconds.
115 Weight::from_parts(13_664_993, 5487)
116 // Standard Error: 220
117 .saturating_add(Weight::from_parts(131_195, 0).saturating_mul(n.into()))
118 .saturating_add(T::DbWeight::get().reads(4_u64))
119 .saturating_add(T::DbWeight::get().writes(3_u64))
120 }
121 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
122 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
123 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
124 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
125 /// Storage: `MessageQueue::Pages` (r:1 w:1)
126 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
127 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
128 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
129 /// The range of component `n` is `[0, 105457]`.
130 fn enqueue_empty_xcmp_message_at(n: u32, ) -> Weight {
131 // Proof Size summary in bytes:
132 // Measured: `434 + n * (1 ±0)`
133 // Estimated: `3897 + n * (1 ±0)`
134 // Minimum execution time: 16_000_000 picoseconds.
135 Weight::from_parts(16_490_667, 3897)
136 // Standard Error: 2
137 .saturating_add(Weight::from_parts(720, 0).saturating_mul(n.into()))
138 .saturating_add(T::DbWeight::get().reads(4_u64))
139 .saturating_add(T::DbWeight::get().writes(2_u64))
140 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
141 }
142 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
143 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
144 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
145 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
146 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
147 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
148 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
149 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
150 /// Storage: `MessageQueue::Pages` (r:0 w:100)
151 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
152 /// The range of component `n` is `[0, 100]`.
153 fn enqueue_n_full_pages(n: u32, ) -> Weight {
154 // Proof Size summary in bytes:
155 // Measured: `286`
156 // Estimated: `5487`
157 // Minimum execution time: 9_000_000 picoseconds.
158 Weight::from_parts(10_000_000, 5487)
159 // Standard Error: 26_047
160 .saturating_add(Weight::from_parts(23_938_725, 0).saturating_mul(n.into()))
161 .saturating_add(T::DbWeight::get().reads(4_u64))
162 .saturating_add(T::DbWeight::get().writes(2_u64))
163 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
164 }
165 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
166 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
167 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
168 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
169 /// Storage: `MessageQueue::Pages` (r:1 w:1)
170 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
171 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
172 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
173 fn enqueue_1000_small_xcmp_messages() -> Weight {
174 // Proof Size summary in bytes:
175 // Measured: `53167`
176 // Estimated: `56632`
177 // Minimum execution time: 175_000_000 picoseconds.
178 Weight::from_parts(181_000_000, 56632)
179 .saturating_add(T::DbWeight::get().reads(4_u64))
180 .saturating_add(T::DbWeight::get().writes(2_u64))
181 }
182 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
183 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
184 fn suspend_channel() -> Weight {
185 // Proof Size summary in bytes:
186 // Measured: `175`
187 // Estimated: `2767`
188 // Minimum execution time: 2_000_000 picoseconds.
189 Weight::from_parts(2_000_000, 2767)
190 .saturating_add(T::DbWeight::get().reads(1_u64))
191 .saturating_add(T::DbWeight::get().writes(1_u64))
192 }
193 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
194 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
195 fn resume_channel() -> Weight {
196 // Proof Size summary in bytes:
197 // Measured: `210`
198 // Estimated: `2767`
199 // Minimum execution time: 3_000_000 picoseconds.
200 Weight::from_parts(3_000_000, 2767)
201 .saturating_add(T::DbWeight::get().reads(1_u64))
202 .saturating_add(T::DbWeight::get().writes(1_u64))
203 }
204 /// The range of component `n` is `[0, 92]`.
205 fn take_first_concatenated_xcm(n: u32, ) -> Weight {
206 // Proof Size summary in bytes:
207 // Measured: `0`
208 // Estimated: `0`
209 // Minimum execution time: 1_000_000 picoseconds.
210 Weight::from_parts(1_878_097, 0)
211 // Standard Error: 558
212 .saturating_add(Weight::from_parts(44_593, 0).saturating_mul(n.into()))
213 }
214 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
215 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
216 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
217 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
218 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
219 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
220 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
221 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
222 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
223 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
224 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
225 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
226 /// Storage: `MessageQueue::Pages` (r:0 w:1)
227 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
228 fn on_idle_good_msg() -> Weight {
229 // Proof Size summary in bytes:
230 // Measured: `105816`
231 // Estimated: `109281`
232 // Minimum execution time: 63_000_000 picoseconds.
233 Weight::from_parts(67_000_000, 109281)
234 .saturating_add(T::DbWeight::get().reads(6_u64))
235 .saturating_add(T::DbWeight::get().writes(5_u64))
236 }
237 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
238 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
239 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
240 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
241 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
242 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
243 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
244 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
245 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
246 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
247 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
248 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
249 /// Storage: `MessageQueue::Pages` (r:0 w:1)
250 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
251 fn on_idle_large_msg() -> Weight {
252 // Proof Size summary in bytes:
253 // Measured: `65885`
254 // Estimated: `69350`
255 // Minimum execution time: 42_000_000 picoseconds.
256 Weight::from_parts(47_000_000, 69350)
257 .saturating_add(T::DbWeight::get().reads(6_u64))
258 .saturating_add(T::DbWeight::get().writes(5_u64))
259 }
260}
261
262// For backwards compatibility and tests.
263impl WeightInfo for () {
264 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
265 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
266 fn set_config_with_u32() -> Weight {
267 // Proof Size summary in bytes:
268 // Measured: `175`
269 // Estimated: `1497`
270 // Minimum execution time: 3_000_000 picoseconds.
271 Weight::from_parts(4_000_000, 1497)
272 .saturating_add(RocksDbWeight::get().reads(1_u64))
273 .saturating_add(RocksDbWeight::get().writes(1_u64))
274 }
275 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
276 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
277 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
278 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
279 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
280 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
281 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
282 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
283 /// Storage: `MessageQueue::Pages` (r:0 w:1)
284 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
285 /// The range of component `n` is `[0, 105467]`.
286 fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight {
287 // Proof Size summary in bytes:
288 // Measured: `251`
289 // Estimated: `5487`
290 // Minimum execution time: 11_000_000 picoseconds.
291 Weight::from_parts(12_262_916, 5487)
292 // Standard Error: 0
293 .saturating_add(Weight::from_parts(187, 0).saturating_mul(n.into()))
294 .saturating_add(RocksDbWeight::get().reads(4_u64))
295 .saturating_add(RocksDbWeight::get().writes(3_u64))
296 }
297 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
298 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
299 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
300 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
301 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
302 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
303 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
304 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
305 /// Storage: `MessageQueue::Pages` (r:0 w:1)
306 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
307 /// The range of component `n` is `[0, 1000]`.
308 fn enqueue_n_empty_xcmp_messages(n: u32, ) -> Weight {
309 // Proof Size summary in bytes:
310 // Measured: `251`
311 // Estimated: `5487`
312 // Minimum execution time: 9_000_000 picoseconds.
313 Weight::from_parts(13_664_993, 5487)
314 // Standard Error: 220
315 .saturating_add(Weight::from_parts(131_195, 0).saturating_mul(n.into()))
316 .saturating_add(RocksDbWeight::get().reads(4_u64))
317 .saturating_add(RocksDbWeight::get().writes(3_u64))
318 }
319 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
320 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
321 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
322 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
323 /// Storage: `MessageQueue::Pages` (r:1 w:1)
324 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
325 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
326 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
327 /// The range of component `n` is `[0, 105457]`.
328 fn enqueue_empty_xcmp_message_at(n: u32, ) -> Weight {
329 // Proof Size summary in bytes:
330 // Measured: `434 + n * (1 ±0)`
331 // Estimated: `3897 + n * (1 ±0)`
332 // Minimum execution time: 16_000_000 picoseconds.
333 Weight::from_parts(16_490_667, 3897)
334 // Standard Error: 2
335 .saturating_add(Weight::from_parts(720, 0).saturating_mul(n.into()))
336 .saturating_add(RocksDbWeight::get().reads(4_u64))
337 .saturating_add(RocksDbWeight::get().writes(2_u64))
338 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
339 }
340 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
341 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
342 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
343 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
344 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
345 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
346 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
347 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
348 /// Storage: `MessageQueue::Pages` (r:0 w:100)
349 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
350 /// The range of component `n` is `[0, 100]`.
351 fn enqueue_n_full_pages(n: u32, ) -> Weight {
352 // Proof Size summary in bytes:
353 // Measured: `286`
354 // Estimated: `5487`
355 // Minimum execution time: 9_000_000 picoseconds.
356 Weight::from_parts(10_000_000, 5487)
357 // Standard Error: 26_047
358 .saturating_add(Weight::from_parts(23_938_725, 0).saturating_mul(n.into()))
359 .saturating_add(RocksDbWeight::get().reads(4_u64))
360 .saturating_add(RocksDbWeight::get().writes(2_u64))
361 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
362 }
363 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
364 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
365 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
366 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
367 /// Storage: `MessageQueue::Pages` (r:1 w:1)
368 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
369 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
370 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
371 fn enqueue_1000_small_xcmp_messages() -> Weight {
372 // Proof Size summary in bytes:
373 // Measured: `53167`
374 // Estimated: `56632`
375 // Minimum execution time: 175_000_000 picoseconds.
376 Weight::from_parts(181_000_000, 56632)
377 .saturating_add(RocksDbWeight::get().reads(4_u64))
378 .saturating_add(RocksDbWeight::get().writes(2_u64))
379 }
380 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
381 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
382 fn suspend_channel() -> Weight {
383 // Proof Size summary in bytes:
384 // Measured: `175`
385 // Estimated: `2767`
386 // Minimum execution time: 2_000_000 picoseconds.
387 Weight::from_parts(2_000_000, 2767)
388 .saturating_add(RocksDbWeight::get().reads(1_u64))
389 .saturating_add(RocksDbWeight::get().writes(1_u64))
390 }
391 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
392 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
393 fn resume_channel() -> Weight {
394 // Proof Size summary in bytes:
395 // Measured: `210`
396 // Estimated: `2767`
397 // Minimum execution time: 3_000_000 picoseconds.
398 Weight::from_parts(3_000_000, 2767)
399 .saturating_add(RocksDbWeight::get().reads(1_u64))
400 .saturating_add(RocksDbWeight::get().writes(1_u64))
401 }
402 /// The range of component `n` is `[0, 92]`.
403 fn take_first_concatenated_xcm(n: u32, ) -> Weight {
404 // Proof Size summary in bytes:
405 // Measured: `0`
406 // Estimated: `0`
407 // Minimum execution time: 1_000_000 picoseconds.
408 Weight::from_parts(1_878_097, 0)
409 // Standard Error: 558
410 .saturating_add(Weight::from_parts(44_593, 0).saturating_mul(n.into()))
411 }
412 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
413 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
414 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
415 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
416 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
417 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
418 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
419 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
420 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
421 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
422 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
423 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
424 /// Storage: `MessageQueue::Pages` (r:0 w:1)
425 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
426 fn on_idle_good_msg() -> Weight {
427 // Proof Size summary in bytes:
428 // Measured: `105816`
429 // Estimated: `109281`
430 // Minimum execution time: 63_000_000 picoseconds.
431 Weight::from_parts(67_000_000, 109281)
432 .saturating_add(RocksDbWeight::get().reads(6_u64))
433 .saturating_add(RocksDbWeight::get().writes(5_u64))
434 }
435 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
436 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
437 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
438 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
439 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
440 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
441 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
442 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
443 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
444 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
445 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
446 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
447 /// Storage: `MessageQueue::Pages` (r:0 w:1)
448 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
449 fn on_idle_large_msg() -> Weight {
450 // Proof Size summary in bytes:
451 // Measured: `65885`
452 // Estimated: `69350`
453 // Minimum execution time: 42_000_000 picoseconds.
454 Weight::from_parts(47_000_000, 69350)
455 .saturating_add(RocksDbWeight::get().reads(6_u64))
456 .saturating_add(RocksDbWeight::get().writes(5_u64))
457 }
458}