referrerpolicy=no-referrer-when-downgrade

people_westend_runtime/weights/
pallet_message_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 `pallet_message_queue`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `b9a9df1fcddf`, 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=pallet_message_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 `pallet_message_queue`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_message_queue::WeightInfo for WeightInfo<T> {
53	/// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
54	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
55	/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
56	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
57	fn ready_ring_knit() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `223`
60		//  Estimated: `6044`
61		// Minimum execution time: 13_478_000 picoseconds.
62		Weight::from_parts(14_068_000, 0)
63			.saturating_add(Weight::from_parts(0, 6044))
64			.saturating_add(T::DbWeight::get().reads(3))
65			.saturating_add(T::DbWeight::get().writes(2))
66	}
67	/// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
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	fn ready_ring_unknit() -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `218`
74		//  Estimated: `6044`
75		// Minimum execution time: 12_200_000 picoseconds.
76		Weight::from_parts(12_901_000, 0)
77			.saturating_add(Weight::from_parts(0, 6044))
78			.saturating_add(T::DbWeight::get().reads(3))
79			.saturating_add(T::DbWeight::get().writes(3))
80	}
81	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
82	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
83	fn service_queue_base() -> Weight {
84		// Proof Size summary in bytes:
85		//  Measured:  `6`
86		//  Estimated: `3517`
87		// Minimum execution time: 4_056_000 picoseconds.
88		Weight::from_parts(4_289_000, 0)
89			.saturating_add(Weight::from_parts(0, 3517))
90			.saturating_add(T::DbWeight::get().reads(1))
91			.saturating_add(T::DbWeight::get().writes(1))
92	}
93	/// Storage: `MessageQueue::Pages` (r:1 w:1)
94	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
95	fn service_page_base_completion() -> Weight {
96		// Proof Size summary in bytes:
97		//  Measured:  `72`
98		//  Estimated: `108986`
99		// Minimum execution time: 6_243_000 picoseconds.
100		Weight::from_parts(6_632_000, 0)
101			.saturating_add(Weight::from_parts(0, 108986))
102			.saturating_add(T::DbWeight::get().reads(1))
103			.saturating_add(T::DbWeight::get().writes(1))
104	}
105	/// Storage: `MessageQueue::Pages` (r:1 w:1)
106	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
107	fn service_page_base_no_completion() -> Weight {
108		// Proof Size summary in bytes:
109		//  Measured:  `72`
110		//  Estimated: `108986`
111		// Minimum execution time: 6_718_000 picoseconds.
112		Weight::from_parts(6_890_000, 0)
113			.saturating_add(Weight::from_parts(0, 108986))
114			.saturating_add(T::DbWeight::get().reads(1))
115			.saturating_add(T::DbWeight::get().writes(1))
116	}
117	/// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
118	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
119	/// Storage: `MessageQueue::Pages` (r:0 w:1)
120	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
121	fn service_page_item() -> Weight {
122		// Proof Size summary in bytes:
123		//  Measured:  `0`
124		//  Estimated: `0`
125		// Minimum execution time: 305_529_000 picoseconds.
126		Weight::from_parts(308_659_000, 0)
127			.saturating_add(Weight::from_parts(0, 0))
128			.saturating_add(T::DbWeight::get().writes(2))
129	}
130	/// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
131	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
132	/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
133	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
134	fn bump_service_head() -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `171`
137		//  Estimated: `3517`
138		// Minimum execution time: 7_840_000 picoseconds.
139		Weight::from_parts(8_126_000, 0)
140			.saturating_add(Weight::from_parts(0, 3517))
141			.saturating_add(T::DbWeight::get().reads(2))
142			.saturating_add(T::DbWeight::get().writes(1))
143	}
144	/// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
145	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
146	/// Storage: `MessageQueue::ServiceHead` (r:0 w:1)
147	/// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
148	fn set_service_head() -> Weight {
149		// Proof Size summary in bytes:
150		//  Measured:  `161`
151		//  Estimated: `3517`
152		// Minimum execution time: 6_279_000 picoseconds.
153		Weight::from_parts(6_660_000, 0)
154			.saturating_add(Weight::from_parts(0, 3517))
155			.saturating_add(T::DbWeight::get().reads(1))
156			.saturating_add(T::DbWeight::get().writes(1))
157	}
158	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
159	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
160	/// Storage: `MessageQueue::Pages` (r:1 w:1)
161	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
162	fn reap_page() -> Weight {
163		// Proof Size summary in bytes:
164		//  Measured:  `105609`
165		//  Estimated: `108986`
166		// Minimum execution time: 125_037_000 picoseconds.
167		Weight::from_parts(127_367_000, 0)
168			.saturating_add(Weight::from_parts(0, 108986))
169			.saturating_add(T::DbWeight::get().reads(2))
170			.saturating_add(T::DbWeight::get().writes(2))
171	}
172	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
173	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
174	/// Storage: `MessageQueue::Pages` (r:1 w:1)
175	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
176	fn execute_overweight_page_removed() -> Weight {
177		// Proof Size summary in bytes:
178		//  Measured:  `105609`
179		//  Estimated: `108986`
180		// Minimum execution time: 151_538_000 picoseconds.
181		Weight::from_parts(153_438_000, 0)
182			.saturating_add(Weight::from_parts(0, 108986))
183			.saturating_add(T::DbWeight::get().reads(2))
184			.saturating_add(T::DbWeight::get().writes(2))
185	}
186	/// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
187	/// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
188	/// Storage: `MessageQueue::Pages` (r:1 w:1)
189	/// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
190	fn execute_overweight_page_updated() -> Weight {
191		// Proof Size summary in bytes:
192		//  Measured:  `105609`
193		//  Estimated: `108986`
194		// Minimum execution time: 217_465_000 picoseconds.
195		Weight::from_parts(222_783_000, 0)
196			.saturating_add(Weight::from_parts(0, 108986))
197			.saturating_add(T::DbWeight::get().reads(2))
198			.saturating_add(T::DbWeight::get().writes(2))
199	}
200}