westend_runtime/weights/pallet_message_queue.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_message_queue`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_message_queue
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
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(6), added: 501, mode: `MaxEncodedLen`)
56 /// Storage: `MessageQueue::BookStateFor` (r:2 w:2)
57 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
58 fn ready_ring_knit() -> Weight {
59 // Proof Size summary in bytes:
60 // Measured: `281`
61 // Estimated: `6050`
62 // Minimum execution time: 16_991_000 picoseconds.
63 Weight::from_parts(17_813_000, 0)
64 .saturating_add(Weight::from_parts(0, 6050))
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(55), added: 2530, mode: `MaxEncodedLen`)
70 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
71 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(6), added: 501, mode: `MaxEncodedLen`)
72 fn ready_ring_unknit() -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `281`
75 // Estimated: `6050`
76 // Minimum execution time: 16_268_000 picoseconds.
77 Weight::from_parts(16_659_000, 0)
78 .saturating_add(Weight::from_parts(0, 6050))
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(55), added: 2530, mode: `MaxEncodedLen`)
84 fn service_queue_base() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `42`
87 // Estimated: `3520`
88 // Minimum execution time: 4_901_000 picoseconds.
89 Weight::from_parts(5_262_000, 0)
90 .saturating_add(Weight::from_parts(0, 3520))
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(131122), added: 133597, mode: `MaxEncodedLen`)
96 fn service_page_base_completion() -> Weight {
97 // Proof Size summary in bytes:
98 // Measured: `115`
99 // Estimated: `134587`
100 // Minimum execution time: 10_587_000 picoseconds.
101 Weight::from_parts(11_040_000, 0)
102 .saturating_add(Weight::from_parts(0, 134587))
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(131122), added: 133597, mode: `MaxEncodedLen`)
108 fn service_page_base_no_completion() -> Weight {
109 // Proof Size summary in bytes:
110 // Measured: `115`
111 // Estimated: `134587`
112 // Minimum execution time: 10_729_000 picoseconds.
113 Weight::from_parts(11_263_000, 0)
114 .saturating_add(Weight::from_parts(0, 134587))
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(55), added: 2530, mode: `MaxEncodedLen`)
120 /// Storage: `MessageQueue::Pages` (r:0 w:1)
121 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(131122), added: 133597, mode: `MaxEncodedLen`)
122 fn service_page_item() -> Weight {
123 // Proof Size summary in bytes:
124 // Measured: `0`
125 // Estimated: `0`
126 // Minimum execution time: 381_300_000 picoseconds.
127 Weight::from_parts(390_220_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(6), added: 501, mode: `MaxEncodedLen`)
133 /// Storage: `MessageQueue::BookStateFor` (r:1 w:0)
134 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
135 fn bump_service_head() -> Weight {
136 // Proof Size summary in bytes:
137 // Measured: `220`
138 // Estimated: `3520`
139 // Minimum execution time: 12_503_000 picoseconds.
140 Weight::from_parts(12_909_000, 0)
141 .saturating_add(Weight::from_parts(0, 3520))
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(55), added: 2530, mode: `MaxEncodedLen`)
147 /// Storage: `MessageQueue::ServiceHead` (r:0 w:1)
148 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(6), added: 501, mode: `MaxEncodedLen`)
149 fn set_service_head() -> Weight {
150 // Proof Size summary in bytes:
151 // Measured: `220`
152 // Estimated: `3520`
153 // Minimum execution time: 11_071_000 picoseconds.
154 Weight::from_parts(11_553_000, 0)
155 .saturating_add(Weight::from_parts(0, 3520))
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(55), added: 2530, mode: `MaxEncodedLen`)
161 /// Storage: `MessageQueue::Pages` (r:1 w:1)
162 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(131122), added: 133597, mode: `MaxEncodedLen`)
163 /// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
164 /// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
165 /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
166 /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
167 fn reap_page() -> Weight {
168 // Proof Size summary in bytes:
169 // Measured: `131252`
170 // Estimated: `134587`
171 // Minimum execution time: 162_710_000 picoseconds.
172 Weight::from_parts(166_261_000, 0)
173 .saturating_add(Weight::from_parts(0, 134587))
174 .saturating_add(T::DbWeight::get().reads(2))
175 .saturating_add(T::DbWeight::get().writes(4))
176 }
177 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
178 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
179 /// Storage: `MessageQueue::Pages` (r:1 w:1)
180 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(131122), added: 133597, mode: `MaxEncodedLen`)
181 /// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
182 /// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
183 /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
184 /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
185 fn execute_overweight_page_removed() -> Weight {
186 // Proof Size summary in bytes:
187 // Measured: `131252`
188 // Estimated: `134587`
189 // Minimum execution time: 200_138_000 picoseconds.
190 Weight::from_parts(210_177_000, 0)
191 .saturating_add(Weight::from_parts(0, 134587))
192 .saturating_add(T::DbWeight::get().reads(2))
193 .saturating_add(T::DbWeight::get().writes(4))
194 }
195 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
196 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(55), added: 2530, mode: `MaxEncodedLen`)
197 /// Storage: `MessageQueue::Pages` (r:1 w:1)
198 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(131122), added: 133597, mode: `MaxEncodedLen`)
199 /// Storage: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
200 /// Proof: UNKNOWN KEY `0x3a72656c61795f64697370617463685f71756575655f72656d61696e696e675f` (r:0 w:1)
201 /// Storage: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
202 /// Proof: UNKNOWN KEY `0xf5207f03cfdce586301014700e2c2593fad157e461d71fd4c1f936839a5f1f3e` (r:0 w:1)
203 fn execute_overweight_page_updated() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `131252`
206 // Estimated: `134587`
207 // Minimum execution time: 275_951_000 picoseconds.
208 Weight::from_parts(284_857_000, 0)
209 .saturating_add(Weight::from_parts(0, 134587))
210 .saturating_add(T::DbWeight::get().reads(2))
211 .saturating_add(T::DbWeight::get().writes(4))
212 }
213}