referrerpolicy=no-referrer-when-downgrade

people_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/people-westend-runtime/people_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/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 `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:  `76`
58		//  Estimated: `1497`
59		// Minimum execution time: 5_160_000 picoseconds.
60		Weight::from_parts(5_474_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:  `82`
79		//  Estimated: `5487`
80		// Minimum execution time: 14_112_000 picoseconds.
81		Weight::from_parts(9_766_702, 0)
82			.saturating_add(Weight::from_parts(0, 5487))
83			// Standard Error: 7
84			.saturating_add(Weight::from_parts(1_055, 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:  `82`
102		//  Estimated: `5487`
103		// Minimum execution time: 11_804_000 picoseconds.
104		Weight::from_parts(16_220_077, 0)
105			.saturating_add(Weight::from_parts(0, 5487))
106			// Standard Error: 268
107			.saturating_add(Weight::from_parts(144_749, 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:  `264 + n * (1 ±0)`
123		//  Estimated: `3727 + n * (1 ±0)`
124		// Minimum execution time: 21_217_000 picoseconds.
125		Weight::from_parts(12_016_595, 0)
126			.saturating_add(Weight::from_parts(0, 3727))
127			// Standard Error: 13
128			.saturating_add(Weight::from_parts(2_285, 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:  `117`
147		//  Estimated: `5487`
148		// Minimum execution time: 13_346_000 picoseconds.
149		Weight::from_parts(13_427_000, 0)
150			.saturating_add(Weight::from_parts(0, 5487))
151			// Standard Error: 53_638
152			.saturating_add(Weight::from_parts(99_097_845, 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:  `52997`
168		//  Estimated: `56462`
169		// Minimum execution time: 277_429_000 picoseconds.
170		Weight::from_parts(284_925_000, 0)
171			.saturating_add(Weight::from_parts(0, 56462))
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:  `76`
180		//  Estimated: `2767`
181		// Minimum execution time: 3_276_000 picoseconds.
182		Weight::from_parts(3_487_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:  `111`
192		//  Estimated: `2767`
193		// Minimum execution time: 4_564_000 picoseconds.
194		Weight::from_parts(4_793_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_084_000 picoseconds.
205		Weight::from_parts(2_412_479, 0)
206			.saturating_add(Weight::from_parts(0, 0))
207			// Standard Error: 129
208			.saturating_add(Weight::from_parts(18_160, 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:  `105647`
227		//  Estimated: `109112`
228		// Minimum execution time: 190_320_000 picoseconds.
229		Weight::from_parts(196_828_000, 0)
230			.saturating_add(Weight::from_parts(0, 109112))
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:  `65716`
251		//  Estimated: `69181`
252		// Minimum execution time: 122_816_000 picoseconds.
253		Weight::from_parts(130_038_000, 0)
254			.saturating_add(Weight::from_parts(0, 69181))
255			.saturating_add(T::DbWeight::get().reads(6))
256			.saturating_add(T::DbWeight::get().writes(5))
257	}
258}