glutton_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: `5e986aeb5bce`, 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/glutton-westend-runtime/glutton_westend_runtime.wasm
31// --pallet=pallet_message_queue
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/glutton/glutton-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// --genesis-builder-policy=none
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_message_queue`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_message_queue::WeightInfo for WeightInfo<T> {
54 /// Storage: `MessageQueue::ServiceHead` (r:1 w:0)
55 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
56 /// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
57 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
58 fn ready_ring_knit() -> Weight {
59 // Proof Size summary in bytes:
60 // Measured: `202`
61 // Estimated: `6044`
62 // Minimum execution time: 14_144_000 picoseconds.
63 Weight::from_parts(14_634_000, 0)
64 .saturating_add(Weight::from_parts(0, 6044))
65 .saturating_add(T::DbWeight::get().reads(3))
66 .saturating_add(T::DbWeight::get().writes(2))
67 }
68 /// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
69 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
70 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
71 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
72 fn ready_ring_unknit() -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `197`
75 // Estimated: `6044`
76 // Minimum execution time: 13_103_000 picoseconds.
77 Weight::from_parts(13_581_000, 0)
78 .saturating_add(Weight::from_parts(0, 6044))
79 .saturating_add(T::DbWeight::get().reads(3))
80 .saturating_add(T::DbWeight::get().writes(3))
81 }
82 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
83 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
84 fn service_queue_base() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `0`
87 // Estimated: `3517`
88 // Minimum execution time: 2_709_000 picoseconds.
89 Weight::from_parts(2_837_000, 0)
90 .saturating_add(Weight::from_parts(0, 3517))
91 .saturating_add(T::DbWeight::get().reads(1))
92 .saturating_add(T::DbWeight::get().writes(1))
93 }
94 /// Storage: `MessageQueue::Pages` (r:1 w:1)
95 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
96 fn service_page_base_completion() -> Weight {
97 // Proof Size summary in bytes:
98 // Measured: `47`
99 // Estimated: `108986`
100 // Minimum execution time: 4_637_000 picoseconds.
101 Weight::from_parts(4_711_000, 0)
102 .saturating_add(Weight::from_parts(0, 108986))
103 .saturating_add(T::DbWeight::get().reads(1))
104 .saturating_add(T::DbWeight::get().writes(1))
105 }
106 /// Storage: `MessageQueue::Pages` (r:1 w:1)
107 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
108 fn service_page_base_no_completion() -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `47`
111 // Estimated: `108986`
112 // Minimum execution time: 4_848_000 picoseconds.
113 Weight::from_parts(5_012_000, 0)
114 .saturating_add(Weight::from_parts(0, 108986))
115 .saturating_add(T::DbWeight::get().reads(1))
116 .saturating_add(T::DbWeight::get().writes(1))
117 }
118 /// Storage: `MessageQueue::BookStateFor` (r:0 w:1)
119 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
120 /// Storage: `MessageQueue::Pages` (r:0 w:1)
121 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
122 fn service_page_item() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 283_371_000 picoseconds.
127 Weight::from_parts(288_550_000, 0)
128 .saturating_add(Weight::from_parts(0, 0))
129 .saturating_add(T::DbWeight::get().writes(2))
130 }
131 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
132 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
133 /// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
134 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
135 fn bump_service_head() -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `150`
138 // Estimated: `3517`
139 // Minimum execution time: 7_239_000 picoseconds.
140 Weight::from_parts(7_567_000, 0)
141 .saturating_add(Weight::from_parts(0, 3517))
142 .saturating_add(T::DbWeight::get().reads(2))
143 .saturating_add(T::DbWeight::get().writes(1))
144 }
145 /// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
146 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
147 /// Storage: `MessageQueue::ServiceHead` (r:0 w:1)
148 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
149 fn set_service_head() -> Weight {
150 // Proof Size summary in bytes:
151 // Measured: `140`
152 // Estimated: `3517`
153 // Minimum execution time: 5_940_000 picoseconds.
154 Weight::from_parts(6_255_000, 0)
155 .saturating_add(Weight::from_parts(0, 3517))
156 .saturating_add(T::DbWeight::get().reads(1))
157 .saturating_add(T::DbWeight::get().writes(1))
158 }
159 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
160 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
161 /// Storage: `MessageQueue::Pages` (r:1 w:1)
162 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
163 fn reap_page() -> Weight {
164 // Proof Size summary in bytes:
165 // Measured: `105588`
166 // Estimated: `108986`
167 // Minimum execution time: 109_134_000 picoseconds.
168 Weight::from_parts(118_425_000, 0)
169 .saturating_add(Weight::from_parts(0, 108986))
170 .saturating_add(T::DbWeight::get().reads(2))
171 .saturating_add(T::DbWeight::get().writes(2))
172 }
173 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
174 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
175 /// Storage: `MessageQueue::Pages` (r:1 w:1)
176 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
177 fn execute_overweight_page_removed() -> Weight {
178 // Proof Size summary in bytes:
179 // Measured: `105588`
180 // Estimated: `108986`
181 // Minimum execution time: 139_205_000 picoseconds.
182 Weight::from_parts(140_302_000, 0)
183 .saturating_add(Weight::from_parts(0, 108986))
184 .saturating_add(T::DbWeight::get().reads(2))
185 .saturating_add(T::DbWeight::get().writes(2))
186 }
187 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
188 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
189 /// Storage: `MessageQueue::Pages` (r:1 w:1)
190 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(105521), added: 107996, mode: `MaxEncodedLen`)
191 fn execute_overweight_page_updated() -> Weight {
192 // Proof Size summary in bytes:
193 // Measured: `105588`
194 // Estimated: `108986`
195 // Minimum execution time: 199_964_000 picoseconds.
196 Weight::from_parts(208_361_000, 0)
197 .saturating_add(Weight::from_parts(0, 108986))
198 .saturating_add(T::DbWeight::get().reads(2))
199 .saturating_add(T::DbWeight::get().writes(2))
200 }
201}