referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_message_queue.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_message_queue`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2025-02-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `793863dddfdf`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
25
26// Executed Command:
27// frame-omni-bencher
28// v1
29// benchmark
30// pallet
31// --extrinsic=*
32// --runtime=target/production/wbuild/asset-hub-next-westend-runtime/asset_hub_next_westend_runtime.wasm
33// --pallet=pallet_message_queue
34// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
35// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights
36// --wasm-execution=compiled
37// --steps=50
38// --repeat=20
39// --heap-pages=4096
40// --no-storage-info
41// --no-min-squares
42// --no-median-slopes
43
44#![cfg_attr(rustfmt, rustfmt_skip)]
45#![allow(unused_parens)]
46#![allow(unused_imports)]
47#![allow(missing_docs)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight functions for `pallet_message_queue`.
53pub struct WeightInfo<T>(PhantomData<T>);
54impl<T: frame_system::Config> pallet_message_queue::WeightInfo for WeightInfo<T> {
55	/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
56	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
57	/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
58	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
59	fn ready_ring_knit() -> Weight {
60		// Proof Size summary in bytes:
61		//  Measured:  `260`
62		//  Estimated: `6044`
63		// Minimum execution time: 14_762_000 picoseconds.
64		Weight::from_parts(15_170_000, 0)
65			.saturating_add(Weight::from_parts(0, 6044))
66			.saturating_add(T::DbWeight::get().reads(3))
67			.saturating_add(T::DbWeight::get().writes(2))
68	}
69	/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
70	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
71	/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
72	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
73	fn ready_ring_unknit() -> Weight {
74		// Proof Size summary in bytes:
75		//  Measured:  `255`
76		//  Estimated: `6044`
77		// Minimum execution time: 13_040_000 picoseconds.
78		Weight::from_parts(13_763_000, 0)
79			.saturating_add(Weight::from_parts(0, 6044))
80			.saturating_add(T::DbWeight::get().reads(3))
81			.saturating_add(T::DbWeight::get().writes(3))
82	}
83	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
84	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
85	fn service_queue_base() -> Weight {
86		// Proof Size summary in bytes:
87		//  Measured:  `42`
88		//  Estimated: `3517`
89		// Minimum execution time: 4_919_000 picoseconds.
90		Weight::from_parts(5_213_000, 0)
91			.saturating_add(Weight::from_parts(0, 3517))
92			.saturating_add(T::DbWeight::get().reads(1))
93			.saturating_add(T::DbWeight::get().writes(1))
94	}
95	/// Storage: `MessageQueue::Pages` (r:1 w:1)
96	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
97	fn service_page_base_completion() -> Weight {
98		// Proof Size summary in bytes:
99		//  Measured:  `109`
100		//  Estimated: `108986`
101		// Minimum execution time: 7_497_000 picoseconds.
102		Weight::from_parts(7_748_000, 0)
103			.saturating_add(Weight::from_parts(0, 108986))
104			.saturating_add(T::DbWeight::get().reads(1))
105			.saturating_add(T::DbWeight::get().writes(1))
106	}
107	/// Storage: `MessageQueue::Pages` (r:1 w:1)
108	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
109	fn service_page_base_no_completion() -> Weight {
110		// Proof Size summary in bytes:
111		//  Measured:  `109`
112		//  Estimated: `108986`
113		// Minimum execution time: 7_545_000 picoseconds.
114		Weight::from_parts(7_795_000, 0)
115			.saturating_add(Weight::from_parts(0, 108986))
116			.saturating_add(T::DbWeight::get().reads(1))
117			.saturating_add(T::DbWeight::get().writes(1))
118	}
119	/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
120	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
121	/// Storage: `MessageQueue::Pages` (r:0 w:1)
122	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
123	fn service_page_item() -> Weight {
124		// Proof Size summary in bytes:
125		//  Measured:  `0`
126		//  Estimated: `0`
127		// Minimum execution time: 262_800_000 picoseconds.
128		Weight::from_parts(272_183_000, 0)
129			.saturating_add(Weight::from_parts(0, 0))
130			.saturating_add(T::DbWeight::get().writes(2))
131	}
132	/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
133	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
134	/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
135	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
136	fn bump_service_head() -> Weight {
137		// Proof Size summary in bytes:
138		//  Measured:  `208`
139		//  Estimated: `3517`
140		// Minimum execution time: 8_440_000 picoseconds.
141		Weight::from_parts(8_894_000, 0)
142			.saturating_add(Weight::from_parts(0, 3517))
143			.saturating_add(T::DbWeight::get().reads(2))
144			.saturating_add(T::DbWeight::get().writes(1))
145	}
146	/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
147	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
148	/// Storage: `MessageQueue::ServiceHead` (r:0 w:1)
149	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
150	fn set_service_head() -> Weight {
151		// Proof Size summary in bytes:
152		//  Measured:  `198`
153		//  Estimated: `3517`
154		// Minimum execution time: 7_192_000 picoseconds.
155		Weight::from_parts(7_484_000, 0)
156			.saturating_add(Weight::from_parts(0, 3517))
157			.saturating_add(T::DbWeight::get().reads(1))
158			.saturating_add(T::DbWeight::get().writes(1))
159	}
160	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
161	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
162	/// Storage: `MessageQueue::Pages` (r:1 w:1)
163	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
164	fn reap_page() -> Weight {
165		// Proof Size summary in bytes:
166		//  Measured:  `105646`
167		//  Estimated: `108986`
168		// Minimum execution time: 83_423_000 picoseconds.
169		Weight::from_parts(84_122_000, 0)
170			.saturating_add(Weight::from_parts(0, 108986))
171			.saturating_add(T::DbWeight::get().reads(2))
172			.saturating_add(T::DbWeight::get().writes(2))
173	}
174	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
175	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
176	/// Storage: `MessageQueue::Pages` (r:1 w:1)
177	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
178	fn execute_overweight_page_removed() -> Weight {
179		// Proof Size summary in bytes:
180		//  Measured:  `105646`
181		//  Estimated: `108986`
182		// Minimum execution time: 109_221_000 picoseconds.
183		Weight::from_parts(110_617_000, 0)
184			.saturating_add(Weight::from_parts(0, 108986))
185			.saturating_add(T::DbWeight::get().reads(2))
186			.saturating_add(T::DbWeight::get().writes(2))
187	}
188	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
189	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
190	/// Storage: `MessageQueue::Pages` (r:1 w:1)
191	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
192	fn execute_overweight_page_updated() -> Weight {
193		// Proof Size summary in bytes:
194		//  Measured:  `105646`
195		//  Estimated: `108986`
196		// Minimum execution time: 172_899_000 picoseconds.
197		Weight::from_parts(175_824_000, 0)
198			.saturating_add(Weight::from_parts(0, 108986))
199			.saturating_add(T::DbWeight::get().reads(2))
200			.saturating_add(T::DbWeight::get().writes(2))
201	}
202}