cumulus_pallet_dmp_queue/weights.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_dmp_queue`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19//! DATE: 2023-09-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `Olivers-MacBook-Pro.local`, CPU: `<UNKNOWN>`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-kusama-dev")`, DB CACHE: `1024`
23
24// Executed Command:
25// ./target/release/polkadot-parachain
26// benchmark
27// pallet
28// --pallet
29// cumulus-pallet-dmp-queue
30// --chain
31// asset-hub-kusama-dev
32// --output
33// cumulus/pallets/dmp-queue/src/weights.rs
34// --template
35// substrate/.maintain/frame-weight-template.hbs
36// --extrinsic
37//
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42#![allow(missing_docs)]
43
44use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
45use core::marker::PhantomData;
46
47/// Weight functions needed for `cumulus_pallet_dmp_queue`.
48pub trait WeightInfo {
49 fn on_idle_good_msg() -> Weight;
50 fn on_idle_large_msg() -> Weight;
51 fn on_idle_overweight_good_msg() -> Weight;
52 fn on_idle_overweight_large_msg() -> Weight;
53}
54
55/// Weights for `cumulus_pallet_dmp_queue` using the Substrate node and recommended hardware.
56pub struct SubstrateWeight<T>(PhantomData<T>);
57impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
58 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
59 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
60 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
61 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
62 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
63 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
64 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
65 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
66 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
67 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
68 /// Storage: `MessageQueue::Pages` (r:0 w:1)
69 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
70 fn on_idle_good_msg() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `65696`
73 // Estimated: `69161`
74 // Minimum execution time: 124_651_000 picoseconds.
75 Weight::from_parts(127_857_000, 0)
76 .saturating_add(Weight::from_parts(0, 69161))
77 .saturating_add(T::DbWeight::get().reads(5))
78 .saturating_add(T::DbWeight::get().writes(5))
79 }
80 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
81 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
82 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
83 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
84 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
85 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
86 fn on_idle_large_msg() -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `65659`
89 // Estimated: `69124`
90 // Minimum execution time: 65_684_000 picoseconds.
91 Weight::from_parts(68_039_000, 0)
92 .saturating_add(Weight::from_parts(0, 69124))
93 .saturating_add(T::DbWeight::get().reads(3))
94 .saturating_add(T::DbWeight::get().writes(2))
95 }
96 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
97 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
98 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
99 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
100 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
101 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
102 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
103 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
104 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
105 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
106 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
107 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
108 /// Storage: `MessageQueue::Pages` (r:0 w:1)
109 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
110 fn on_idle_overweight_good_msg() -> Weight {
111 // Proof Size summary in bytes:
112 // Measured: `65726`
113 // Estimated: `69191`
114 // Minimum execution time: 117_657_000 picoseconds.
115 Weight::from_parts(122_035_000, 0)
116 .saturating_add(Weight::from_parts(0, 69191))
117 .saturating_add(T::DbWeight::get().reads(6))
118 .saturating_add(T::DbWeight::get().writes(6))
119 }
120 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
121 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
122 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
123 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
124 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
125 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
126 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
127 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
128 fn on_idle_overweight_large_msg() -> Weight {
129 // Proof Size summary in bytes:
130 // Measured: `65689`
131 // Estimated: `69154`
132 // Minimum execution time: 59_799_000 picoseconds.
133 Weight::from_parts(61_354_000, 0)
134 .saturating_add(Weight::from_parts(0, 69154))
135 .saturating_add(T::DbWeight::get().reads(4))
136 .saturating_add(T::DbWeight::get().writes(3))
137 }
138}
139
140// For backwards compatibility and tests.
141impl WeightInfo for () {
142 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
143 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
144 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
145 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
146 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
147 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
148 /// Storage: `MessageQueue::BookStateFor` (r:1 w:1)
149 /// Proof: `MessageQueue::BookStateFor` (`max_values`: None, `max_size`: Some(52), added: 2527, mode: `MaxEncodedLen`)
150 /// Storage: `MessageQueue::ServiceHead` (r:1 w:1)
151 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
152 /// Storage: `MessageQueue::Pages` (r:0 w:1)
153 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
154 fn on_idle_good_msg() -> Weight {
155 // Proof Size summary in bytes:
156 // Measured: `65696`
157 // Estimated: `69161`
158 // Minimum execution time: 124_651_000 picoseconds.
159 Weight::from_parts(127_857_000, 0)
160 .saturating_add(Weight::from_parts(0, 69161))
161 .saturating_add(RocksDbWeight::get().reads(5))
162 .saturating_add(RocksDbWeight::get().writes(5))
163 }
164 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
165 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
166 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
167 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
168 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
169 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca7d95d3e948effbeccff2de2c182672836` (r:1 w:1)
170 fn on_idle_large_msg() -> Weight {
171 // Proof Size summary in bytes:
172 // Measured: `65659`
173 // Estimated: `69124`
174 // Minimum execution time: 65_684_000 picoseconds.
175 Weight::from_parts(68_039_000, 0)
176 .saturating_add(Weight::from_parts(0, 69124))
177 .saturating_add(RocksDbWeight::get().reads(3))
178 .saturating_add(RocksDbWeight::get().writes(2))
179 }
180 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
181 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
182 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
183 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
184 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
185 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
186 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
187 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
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::ServiceHead` (r:1 w:1)
191 /// Proof: `MessageQueue::ServiceHead` (`max_values`: Some(1), `max_size`: Some(5), added: 500, mode: `MaxEncodedLen`)
192 /// Storage: `MessageQueue::Pages` (r:0 w:1)
193 /// Proof: `MessageQueue::Pages` (`max_values`: None, `max_size`: Some(65585), added: 68060, mode: `MaxEncodedLen`)
194 fn on_idle_overweight_good_msg() -> Weight {
195 // Proof Size summary in bytes:
196 // Measured: `65726`
197 // Estimated: `69191`
198 // Minimum execution time: 117_657_000 picoseconds.
199 Weight::from_parts(122_035_000, 0)
200 .saturating_add(Weight::from_parts(0, 69191))
201 .saturating_add(RocksDbWeight::get().reads(6))
202 .saturating_add(RocksDbWeight::get().writes(6))
203 }
204 /// Storage: `DmpQueue::MigrationStatus` (r:1 w:1)
205 /// Proof: `DmpQueue::MigrationStatus` (`max_values`: Some(1), `max_size`: Some(1028), added: 1523, mode: `MaxEncodedLen`)
206 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
207 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca754904d6d8c6fe06c4e5965f9b8397421` (r:1 w:0)
208 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
209 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca70f923ef3252d0166429d36d20ed665a8` (r:1 w:1)
210 /// Storage: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
211 /// Proof: UNKNOWN KEY `0xcd5c1f6df63bc97f4a8ce37f14a50ca772275f64c354954352b71eea39cfaca2` (r:1 w:1)
212 fn on_idle_overweight_large_msg() -> Weight {
213 // Proof Size summary in bytes:
214 // Measured: `65689`
215 // Estimated: `69154`
216 // Minimum execution time: 59_799_000 picoseconds.
217 Weight::from_parts(61_354_000, 0)
218 .saturating_add(Weight::from_parts(0, 69154))
219 .saturating_add(RocksDbWeight::get().reads(4))
220 .saturating_add(RocksDbWeight::get().writes(3))
221 }
222}