collectives_westend_runtime/weights/cumulus_pallet_xcmp_queue.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: `4e9548205c14`, 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/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=cumulus_pallet_xcmp_queue
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-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 `cumulus_pallet_xcmp_queue`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> cumulus_pallet_xcmp_queue::WeightInfo for WeightInfo<T> {
53 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:1)
54 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
55 fn set_config_with_u32() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `142`
58 // Estimated: `1497`
59 // Minimum execution time: 5_160_000 picoseconds.
60 Weight::from_parts(5_543_000, 0)
61 .saturating_add(Weight::from_parts(0, 1497))
62 .saturating_add(T::DbWeight::get().reads(1))
63 .saturating_add(T::DbWeight::get().writes(1))
64 }
65 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
66 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
67 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
68 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
69 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
70 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
71 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
72 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
73 /// Storage: `MessageQueue::Pages` (r:0 w:1)
74 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
75 /// The range of component `n` is `[0, 105467]`.
76 fn enqueue_n_bytes_xcmp_message(n: u32, ) -> Weight {
77 // Proof Size summary in bytes:
78 // Measured: `184`
79 // Estimated: `5487`
80 // Minimum execution time: 14_830_000 picoseconds.
81 Weight::from_parts(10_769_141, 0)
82 .saturating_add(Weight::from_parts(0, 5487))
83 // Standard Error: 7
84 .saturating_add(Weight::from_parts(1_037, 0).saturating_mul(n.into()))
85 .saturating_add(T::DbWeight::get().reads(4))
86 .saturating_add(T::DbWeight::get().writes(3))
87 }
88 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
89 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
90 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
91 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
92 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
93 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
94 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
95 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
96 /// Storage: `MessageQueue::Pages` (r:0 w:1)
97 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
98 /// The range of component `n` is `[0, 1000]`.
99 fn enqueue_n_empty_xcmp_messages(n: u32, ) -> Weight {
100 // Proof Size summary in bytes:
101 // Measured: `184`
102 // Estimated: `5487`
103 // Minimum execution time: 12_541_000 picoseconds.
104 Weight::from_parts(17_430_070, 0)
105 .saturating_add(Weight::from_parts(0, 5487))
106 // Standard Error: 161
107 .saturating_add(Weight::from_parts(142_769, 0).saturating_mul(n.into()))
108 .saturating_add(T::DbWeight::get().reads(4))
109 .saturating_add(T::DbWeight::get().writes(3))
110 }
111 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
112 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
113 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
114 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
115 /// Storage: `MessageQueue::Pages` (r:1 w:1)
116 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
117 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
118 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
119 /// The range of component `n` is `[0, 105457]`.
120 fn enqueue_empty_xcmp_message_at(n: u32, ) -> Weight {
121 // Proof Size summary in bytes:
122 // Measured: `367 + n * (1 ±0)`
123 // Estimated: `3830 + n * (1 ±0)`
124 // Minimum execution time: 22_018_000 picoseconds.
125 Weight::from_parts(13_620_241, 0)
126 .saturating_add(Weight::from_parts(0, 3830))
127 // Standard Error: 12
128 .saturating_add(Weight::from_parts(2_284, 0).saturating_mul(n.into()))
129 .saturating_add(T::DbWeight::get().reads(4))
130 .saturating_add(T::DbWeight::get().writes(2))
131 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
132 }
133 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
134 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
135 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
136 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
137 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
138 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
139 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
140 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
141 /// Storage: `MessageQueue::Pages` (r:0 w:100)
142 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
143 /// The range of component `n` is `[0, 100]`.
144 fn enqueue_n_full_pages(n: u32, ) -> Weight {
145 // Proof Size summary in bytes:
146 // Measured: `219`
147 // Estimated: `5487`
148 // Minimum execution time: 14_029_000 picoseconds.
149 Weight::from_parts(14_190_000, 0)
150 .saturating_add(Weight::from_parts(0, 5487))
151 // Standard Error: 73_749
152 .saturating_add(Weight::from_parts(98_141_067, 0).saturating_mul(n.into()))
153 .saturating_add(T::DbWeight::get().reads(4))
154 .saturating_add(T::DbWeight::get().writes(2))
155 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
156 }
157 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
158 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `Measured`)
159 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
160 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `Measured`)
161 /// Storage: `MessageQueue::Pages` (r:1 w:1)
162 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `Measured`)
163 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
164 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `Measured`)
165 fn enqueue_1000_small_xcmp_messages() -> Weight {
166 // Proof Size summary in bytes:
167 // Measured: `53100`
168 // Estimated: `56565`
169 // Minimum execution time: 281_701_000 picoseconds.
170 Weight::from_parts(285_132_000, 0)
171 .saturating_add(Weight::from_parts(0, 56565))
172 .saturating_add(T::DbWeight::get().reads(4))
173 .saturating_add(T::DbWeight::get().writes(2))
174 }
175 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
176 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
177 fn suspend_channel() -> Weight {
178 // Proof Size summary in bytes:
179 // Measured: `142`
180 // Estimated: `2767`
181 // Minimum execution time: 3_257_000 picoseconds.
182 Weight::from_parts(3_552_000, 0)
183 .saturating_add(Weight::from_parts(0, 2767))
184 .saturating_add(T::DbWeight::get().reads(1))
185 .saturating_add(T::DbWeight::get().writes(1))
186 }
187 /// Storage: `XcmpQueue::OutboundXcmpStatus` (r:1 w:1)
188 /// Proof: `XcmpQueue::OutboundXcmpStatus` (`max_values`: Some(1), `max_size`: Some(1282), added: 1777, mode: `MaxEncodedLen`)
189 fn resume_channel() -> Weight {
190 // Proof Size summary in bytes:
191 // Measured: `177`
192 // Estimated: `2767`
193 // Minimum execution time: 4_703_000 picoseconds.
194 Weight::from_parts(4_867_000, 0)
195 .saturating_add(Weight::from_parts(0, 2767))
196 .saturating_add(T::DbWeight::get().reads(1))
197 .saturating_add(T::DbWeight::get().writes(1))
198 }
199 /// The range of component `n` is `[0, 92]`.
200 fn take_first_concatenated_xcm(n: u32, ) -> Weight {
201 // Proof Size summary in bytes:
202 // Measured: `0`
203 // Estimated: `0`
204 // Minimum execution time: 2_039_000 picoseconds.
205 Weight::from_parts(2_360_236, 0)
206 .saturating_add(Weight::from_parts(0, 0))
207 // Standard Error: 103
208 .saturating_add(Weight::from_parts(17_740, 0).saturating_mul(n.into()))
209 }
210 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
211 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
212 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
213 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
214 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
215 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
216 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
217 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
218 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
219 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
220 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
221 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
222 /// Storage: `MessageQueue::Pages` (r:0 w:1)
223 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
224 fn on_idle_good_msg() -> Weight {
225 // Proof Size summary in bytes:
226 // Measured: `105749`
227 // Estimated: `109214`
228 // Minimum execution time: 186_842_000 picoseconds.
229 Weight::from_parts(194_767_000, 0)
230 .saturating_add(Weight::from_parts(0, 109214))
231 .saturating_add(T::DbWeight::get().reads(6))
232 .saturating_add(T::DbWeight::get().writes(5))
233 }
234 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
235 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6b345d8e88afa015075c945637c07e8f20` (r:1 w:1)
236 /// Storage: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
237 /// Proof: UNKNOWN KEY `0x7b3237373ffdfeb1cab4222e3b520d6bedc49980ba3aa32b0a189290fd036649` (r:1 w:1)
238 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
239 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
240 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
241 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
242 /// Storage: `XcmpQueue::QueueConfig` (r:1 w:0)
243 /// Proof: `XcmpQueue::QueueConfig` (`max_values`: Some(1), `max_size`: Some(12), added: 507, mode: `MaxEncodedLen`)
244 /// Storage: `XcmpQueue::InboundXcmpSuspended` (r:1 w:0)
245 /// Proof: `XcmpQueue::InboundXcmpSuspended` (`max_values`: Some(1), `max_size`: Some(4002), added: 4497, mode: `MaxEncodedLen`)
246 /// Storage: `MessageQueue::Pages` (r:0 w:1)
247 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
248 fn on_idle_large_msg() -> Weight {
249 // Proof Size summary in bytes:
250 // Measured: `65818`
251 // Estimated: `69283`
252 // Minimum execution time: 124_013_000 picoseconds.
253 Weight::from_parts(129_392_000, 0)
254 .saturating_add(Weight::from_parts(0, 69283))
255 .saturating_add(T::DbWeight::get().reads(6))
256 .saturating_add(T::DbWeight::get().writes(5))
257 }
258}