coretime_rococo_runtime/weights/pallet_broker.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_broker`
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: `731f893ee36e`, 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/coretime-rococo-runtime/coretime_rococo_runtime.wasm
31// --pallet=pallet_broker
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/coretime/coretime-rococo/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_broker`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_broker::WeightInfo for WeightInfo<T> {
53 /// Storage: `Broker::Configuration` (r:0 w:1)
54 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
55 fn configure() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `0`
58 // Estimated: `0`
59 // Minimum execution time: 2_559_000 picoseconds.
60 Weight::from_parts(2_723_000, 0)
61 .saturating_add(Weight::from_parts(0, 0))
62 .saturating_add(T::DbWeight::get().writes(1))
63 }
64 /// Storage: `Broker::Reservations` (r:1 w:1)
65 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`)
66 fn reserve() -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `10888`
69 // Estimated: `13506`
70 // Minimum execution time: 25_270_000 picoseconds.
71 Weight::from_parts(28_036_000, 0)
72 .saturating_add(Weight::from_parts(0, 13506))
73 .saturating_add(T::DbWeight::get().reads(1))
74 .saturating_add(T::DbWeight::get().writes(1))
75 }
76 /// Storage: `Broker::Reservations` (r:1 w:1)
77 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`)
78 fn unreserve() -> Weight {
79 // Proof Size summary in bytes:
80 // Measured: `12090`
81 // Estimated: `13506`
82 // Minimum execution time: 25_774_000 picoseconds.
83 Weight::from_parts(26_297_000, 0)
84 .saturating_add(Weight::from_parts(0, 13506))
85 .saturating_add(T::DbWeight::get().reads(1))
86 .saturating_add(T::DbWeight::get().writes(1))
87 }
88 /// Storage: `Broker::Leases` (r:1 w:1)
89 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`)
90 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
91 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
92 /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0)
93 /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
94 fn set_lease() -> Weight {
95 // Proof Size summary in bytes:
96 // Measured: `466`
97 // Estimated: `1951`
98 // Minimum execution time: 13_685_000 picoseconds.
99 Weight::from_parts(14_628_000, 0)
100 .saturating_add(Weight::from_parts(0, 1951))
101 .saturating_add(T::DbWeight::get().reads(3))
102 .saturating_add(T::DbWeight::get().writes(1))
103 }
104 /// Storage: `Broker::Leases` (r:1 w:1)
105 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`)
106 fn remove_lease() -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `470`
109 // Estimated: `1886`
110 // Minimum execution time: 10_681_000 picoseconds.
111 Weight::from_parts(11_120_000, 0)
112 .saturating_add(Weight::from_parts(0, 1886))
113 .saturating_add(T::DbWeight::get().reads(1))
114 .saturating_add(T::DbWeight::get().writes(1))
115 }
116 /// Storage: `Broker::Configuration` (r:1 w:0)
117 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
118 /// Storage: `Broker::Leases` (r:1 w:1)
119 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`)
120 /// Storage: `Broker::Reservations` (r:1 w:0)
121 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`)
122 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
123 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
124 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
125 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
126 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
127 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
128 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
129 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
130 /// Storage: `ParachainSystem::LastRelayChainBlockNumber` (r:1 w:0)
131 /// Proof: `ParachainSystem::LastRelayChainBlockNumber` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
132 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
133 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
134 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
135 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`)
136 /// Storage: `Broker::SaleInfo` (r:0 w:1)
137 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
138 /// Storage: `Broker::Status` (r:0 w:1)
139 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
140 /// Storage: `Broker::Workplan` (r:0 w:60)
141 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
142 /// The range of component `n` is `[0, 1000]`.
143 fn start_sales(n: u32, ) -> Weight {
144 // Proof Size summary in bytes:
145 // Measured: `12567`
146 // Estimated: `15033 + n * (1 ±0)`
147 // Minimum execution time: 51_814_000 picoseconds.
148 Weight::from_parts(150_721_297, 0)
149 .saturating_add(Weight::from_parts(0, 15033))
150 // Standard Error: 2_705
151 .saturating_add(Weight::from_parts(20_778, 0).saturating_mul(n.into()))
152 .saturating_add(T::DbWeight::get().reads(12))
153 .saturating_add(T::DbWeight::get().writes(59))
154 .saturating_add(Weight::from_parts(0, 1).saturating_mul(n.into()))
155 }
156 /// Storage: `Broker::Status` (r:1 w:0)
157 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
158 /// Storage: `Broker::SaleInfo` (r:1 w:1)
159 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
160 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
161 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
162 /// Storage: `System::Account` (r:1 w:1)
163 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
164 /// Storage: `Broker::Regions` (r:0 w:1)
165 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
166 fn purchase() -> Weight {
167 // Proof Size summary in bytes:
168 // Measured: `437`
169 // Estimated: `3593`
170 // Minimum execution time: 64_403_000 picoseconds.
171 Weight::from_parts(69_856_000, 0)
172 .saturating_add(Weight::from_parts(0, 3593))
173 .saturating_add(T::DbWeight::get().reads(4))
174 .saturating_add(T::DbWeight::get().writes(3))
175 }
176 /// Storage: `Broker::Configuration` (r:1 w:0)
177 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
178 /// Storage: `Broker::Status` (r:1 w:0)
179 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
180 /// Storage: `Broker::SaleInfo` (r:1 w:1)
181 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
182 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
183 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
184 /// Storage: `System::Account` (r:1 w:1)
185 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
186 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
187 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
188 /// Storage: `Broker::Workplan` (r:0 w:1)
189 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
190 fn renew() -> Weight {
191 // Proof Size summary in bytes:
192 // Measured: `658`
193 // Estimated: `4698`
194 // Minimum execution time: 117_679_000 picoseconds.
195 Weight::from_parts(131_097_000, 0)
196 .saturating_add(Weight::from_parts(0, 4698))
197 .saturating_add(T::DbWeight::get().reads(6))
198 .saturating_add(T::DbWeight::get().writes(5))
199 }
200 /// Storage: `Broker::Regions` (r:1 w:1)
201 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
202 fn transfer() -> Weight {
203 // Proof Size summary in bytes:
204 // Measured: `358`
205 // Estimated: `3551`
206 // Minimum execution time: 21_875_000 picoseconds.
207 Weight::from_parts(23_688_000, 0)
208 .saturating_add(Weight::from_parts(0, 3551))
209 .saturating_add(T::DbWeight::get().reads(1))
210 .saturating_add(T::DbWeight::get().writes(1))
211 }
212 /// Storage: `Broker::Regions` (r:1 w:2)
213 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
214 fn partition() -> Weight {
215 // Proof Size summary in bytes:
216 // Measured: `358`
217 // Estimated: `3551`
218 // Minimum execution time: 23_879_000 picoseconds.
219 Weight::from_parts(25_354_000, 0)
220 .saturating_add(Weight::from_parts(0, 3551))
221 .saturating_add(T::DbWeight::get().reads(1))
222 .saturating_add(T::DbWeight::get().writes(2))
223 }
224 /// Storage: `Broker::Regions` (r:1 w:3)
225 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
226 fn interlace() -> Weight {
227 // Proof Size summary in bytes:
228 // Measured: `358`
229 // Estimated: `3551`
230 // Minimum execution time: 25_199_000 picoseconds.
231 Weight::from_parts(29_209_000, 0)
232 .saturating_add(Weight::from_parts(0, 3551))
233 .saturating_add(T::DbWeight::get().reads(1))
234 .saturating_add(T::DbWeight::get().writes(3))
235 }
236 /// Storage: `Broker::Configuration` (r:1 w:0)
237 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
238 /// Storage: `Broker::Status` (r:1 w:0)
239 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
240 /// Storage: `Broker::Regions` (r:1 w:1)
241 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
242 /// Storage: `Broker::Workplan` (r:1 w:1)
243 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
244 fn assign() -> Weight {
245 // Proof Size summary in bytes:
246 // Measured: `937`
247 // Estimated: `4681`
248 // Minimum execution time: 38_377_000 picoseconds.
249 Weight::from_parts(41_124_000, 0)
250 .saturating_add(Weight::from_parts(0, 4681))
251 .saturating_add(T::DbWeight::get().reads(4))
252 .saturating_add(T::DbWeight::get().writes(2))
253 }
254 /// Storage: `Broker::Status` (r:1 w:0)
255 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
256 /// Storage: `Broker::Regions` (r:1 w:1)
257 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
258 /// Storage: `Broker::Workplan` (r:1 w:1)
259 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
260 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
261 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
262 /// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
263 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
264 fn pool() -> Weight {
265 // Proof Size summary in bytes:
266 // Measured: `1003`
267 // Estimated: `5996`
268 // Minimum execution time: 45_084_000 picoseconds.
269 Weight::from_parts(46_851_000, 0)
270 .saturating_add(Weight::from_parts(0, 5996))
271 .saturating_add(T::DbWeight::get().reads(5))
272 .saturating_add(T::DbWeight::get().writes(5))
273 }
274 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
275 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
276 /// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
277 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
278 /// Storage: `System::Account` (r:2 w:2)
279 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
280 /// The range of component `m` is `[1, 3]`.
281 fn claim_revenue(m: u32, ) -> Weight {
282 // Proof Size summary in bytes:
283 // Measured: `671`
284 // Estimated: `6196 + m * (2520 ±0)`
285 // Minimum execution time: 72_975_000 picoseconds.
286 Weight::from_parts(76_716_241, 0)
287 .saturating_add(Weight::from_parts(0, 6196))
288 // Standard Error: 159_873
289 .saturating_add(Weight::from_parts(1_699_650, 0).saturating_mul(m.into()))
290 .saturating_add(T::DbWeight::get().reads(3))
291 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
292 .saturating_add(T::DbWeight::get().writes(5))
293 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
294 }
295 /// Storage: `System::Account` (r:1 w:1)
296 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
297 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
298 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
299 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
300 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
301 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
302 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
303 fn purchase_credit() -> Weight {
304 // Proof Size summary in bytes:
305 // Measured: `261`
306 // Estimated: `3726`
307 // Minimum execution time: 73_412_000 picoseconds.
308 Weight::from_parts(77_554_000, 0)
309 .saturating_add(Weight::from_parts(0, 3726))
310 .saturating_add(T::DbWeight::get().reads(4))
311 .saturating_add(T::DbWeight::get().writes(2))
312 }
313 /// Storage: `Broker::Status` (r:1 w:0)
314 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
315 /// Storage: `Broker::Regions` (r:1 w:1)
316 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
317 fn drop_region() -> Weight {
318 // Proof Size summary in bytes:
319 // Measured: `466`
320 // Estimated: `3551`
321 // Minimum execution time: 62_820_000 picoseconds.
322 Weight::from_parts(85_149_000, 0)
323 .saturating_add(Weight::from_parts(0, 3551))
324 .saturating_add(T::DbWeight::get().reads(2))
325 .saturating_add(T::DbWeight::get().writes(1))
326 }
327 /// Storage: `Broker::Configuration` (r:1 w:0)
328 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
329 /// Storage: `Broker::Status` (r:1 w:0)
330 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
331 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
332 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
333 fn drop_contribution() -> Weight {
334 // Proof Size summary in bytes:
335 // Measured: `463`
336 // Estimated: `3533`
337 // Minimum execution time: 104_501_000 picoseconds.
338 Weight::from_parts(146_124_000, 0)
339 .saturating_add(Weight::from_parts(0, 3533))
340 .saturating_add(T::DbWeight::get().reads(3))
341 .saturating_add(T::DbWeight::get().writes(1))
342 }
343 /// Storage: `Broker::Configuration` (r:1 w:0)
344 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
345 /// Storage: `Broker::Status` (r:1 w:0)
346 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
347 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
348 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
349 /// Storage: `System::Account` (r:1 w:0)
350 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
351 fn drop_history() -> Weight {
352 // Proof Size summary in bytes:
353 // Measured: `979`
354 // Estimated: `3593`
355 // Minimum execution time: 132_420_000 picoseconds.
356 Weight::from_parts(176_072_000, 0)
357 .saturating_add(Weight::from_parts(0, 3593))
358 .saturating_add(T::DbWeight::get().reads(4))
359 .saturating_add(T::DbWeight::get().writes(1))
360 }
361 /// Storage: `Broker::Status` (r:1 w:0)
362 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
363 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
364 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
365 fn drop_renewal() -> Weight {
366 // Proof Size summary in bytes:
367 // Measured: `957`
368 // Estimated: `4698`
369 // Minimum execution time: 67_350_000 picoseconds.
370 Weight::from_parts(84_436_000, 0)
371 .saturating_add(Weight::from_parts(0, 4698))
372 .saturating_add(T::DbWeight::get().reads(2))
373 .saturating_add(T::DbWeight::get().writes(1))
374 }
375 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
376 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
377 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
378 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
379 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
380 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
381 /// The range of component `n` is `[0, 1000]`.
382 fn request_core_count(_n: u32, ) -> Weight {
383 // Proof Size summary in bytes:
384 // Measured: `42`
385 // Estimated: `3507`
386 // Minimum execution time: 21_143_000 picoseconds.
387 Weight::from_parts(22_691_546, 0)
388 .saturating_add(Weight::from_parts(0, 3507))
389 .saturating_add(T::DbWeight::get().reads(3))
390 .saturating_add(T::DbWeight::get().writes(1))
391 }
392 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
393 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
394 /// The range of component `n` is `[0, 1000]`.
395 fn process_core_count(n: u32, ) -> Weight {
396 // Proof Size summary in bytes:
397 // Measured: `266`
398 // Estimated: `1487`
399 // Minimum execution time: 7_972_000 picoseconds.
400 Weight::from_parts(8_929_699, 0)
401 .saturating_add(Weight::from_parts(0, 1487))
402 // Standard Error: 44
403 .saturating_add(Weight::from_parts(145, 0).saturating_mul(n.into()))
404 .saturating_add(T::DbWeight::get().reads(1))
405 .saturating_add(T::DbWeight::get().writes(1))
406 }
407 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
408 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
409 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
410 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
411 /// Storage: `System::Account` (r:2 w:2)
412 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
413 fn process_revenue() -> Weight {
414 // Proof Size summary in bytes:
415 // Measured: `461`
416 // Estimated: `6196`
417 // Minimum execution time: 58_860_000 picoseconds.
418 Weight::from_parts(63_100_000, 0)
419 .saturating_add(Weight::from_parts(0, 6196))
420 .saturating_add(T::DbWeight::get().reads(4))
421 .saturating_add(T::DbWeight::get().writes(4))
422 }
423 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
424 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
425 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
426 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
427 /// Storage: `Broker::Reservations` (r:1 w:0)
428 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`)
429 /// Storage: `Broker::Leases` (r:1 w:1)
430 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`)
431 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
432 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`)
433 /// Storage: `Broker::Configuration` (r:1 w:0)
434 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
435 /// Storage: `Broker::Status` (r:1 w:0)
436 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
437 /// Storage: `Broker::PotentialRenewals` (r:100 w:200)
438 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
439 /// Storage: `System::Account` (r:101 w:101)
440 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
441 /// Storage: `Broker::SaleInfo` (r:0 w:1)
442 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
443 /// Storage: `Broker::Workplan` (r:0 w:1000)
444 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
445 /// The range of component `n` is `[0, 1000]`.
446 fn rotate_sale(n: u32, ) -> Weight {
447 // Proof Size summary in bytes:
448 // Measured: `32497`
449 // Estimated: `233641 + n * (198 ±9)`
450 // Minimum execution time: 32_268_000 picoseconds.
451 Weight::from_parts(2_840_705_550, 0)
452 .saturating_add(Weight::from_parts(0, 233641))
453 // Standard Error: 173_120
454 .saturating_add(Weight::from_parts(4_374_189, 0).saturating_mul(n.into()))
455 .saturating_add(T::DbWeight::get().reads(126))
456 .saturating_add(T::DbWeight::get().writes(181))
457 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
458 .saturating_add(Weight::from_parts(0, 198).saturating_mul(n.into()))
459 }
460 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
461 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
462 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
463 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
464 fn process_pool() -> Weight {
465 // Proof Size summary in bytes:
466 // Measured: `42`
467 // Estimated: `3493`
468 // Minimum execution time: 7_959_000 picoseconds.
469 Weight::from_parts(8_480_000, 0)
470 .saturating_add(Weight::from_parts(0, 3493))
471 .saturating_add(T::DbWeight::get().reads(1))
472 .saturating_add(T::DbWeight::get().writes(1))
473 }
474 /// Storage: `Broker::Workplan` (r:1 w:1)
475 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
476 /// Storage: `Broker::Workload` (r:1 w:1)
477 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
478 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
479 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
480 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
481 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
482 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
483 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
484 fn process_core_schedule() -> Weight {
485 // Proof Size summary in bytes:
486 // Measured: `1289`
487 // Estimated: `4754`
488 // Minimum execution time: 32_507_000 picoseconds.
489 Weight::from_parts(33_752_000, 0)
490 .saturating_add(Weight::from_parts(0, 4754))
491 .saturating_add(T::DbWeight::get().reads(5))
492 .saturating_add(T::DbWeight::get().writes(3))
493 }
494 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
495 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
496 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
497 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
498 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
499 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
500 fn request_revenue_info_at() -> Weight {
501 // Proof Size summary in bytes:
502 // Measured: `42`
503 // Estimated: `3507`
504 // Minimum execution time: 16_470_000 picoseconds.
505 Weight::from_parts(17_120_000, 0)
506 .saturating_add(Weight::from_parts(0, 3507))
507 .saturating_add(T::DbWeight::get().reads(3))
508 .saturating_add(T::DbWeight::get().writes(1))
509 }
510 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
511 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
512 fn notify_core_count() -> Weight {
513 // Proof Size summary in bytes:
514 // Measured: `0`
515 // Estimated: `0`
516 // Minimum execution time: 2_503_000 picoseconds.
517 Weight::from_parts(2_674_000, 0)
518 .saturating_add(Weight::from_parts(0, 0))
519 .saturating_add(T::DbWeight::get().writes(1))
520 }
521 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
522 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
523 fn notify_revenue() -> Weight {
524 // Proof Size summary in bytes:
525 // Measured: `0`
526 // Estimated: `0`
527 // Minimum execution time: 2_519_000 picoseconds.
528 Weight::from_parts(2_752_000, 0)
529 .saturating_add(Weight::from_parts(0, 0))
530 .saturating_add(T::DbWeight::get().writes(1))
531 }
532 /// Storage: `Broker::Status` (r:1 w:1)
533 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
534 /// Storage: `Broker::Configuration` (r:1 w:0)
535 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
536 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
537 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
538 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
539 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
540 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
541 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
542 fn do_tick_base() -> Weight {
543 // Proof Size summary in bytes:
544 // Measured: `408`
545 // Estimated: `1893`
546 // Minimum execution time: 14_229_000 picoseconds.
547 Weight::from_parts(15_177_000, 0)
548 .saturating_add(Weight::from_parts(0, 1893))
549 .saturating_add(T::DbWeight::get().reads(5))
550 .saturating_add(T::DbWeight::get().writes(1))
551 }
552 /// Storage: `Broker::SaleInfo` (r:1 w:0)
553 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
554 /// Storage: `Broker::Reservations` (r:1 w:1)
555 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(12021), added: 12516, mode: `MaxEncodedLen`)
556 /// Storage: `Broker::Status` (r:1 w:0)
557 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
558 /// Storage: `Broker::Workplan` (r:0 w:2)
559 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
560 fn force_reserve() -> Weight {
561 // Proof Size summary in bytes:
562 // Measured: `11141`
563 // Estimated: `13506`
564 // Minimum execution time: 43_203_000 picoseconds.
565 Weight::from_parts(45_670_000, 0)
566 .saturating_add(Weight::from_parts(0, 13506))
567 .saturating_add(T::DbWeight::get().reads(3))
568 .saturating_add(T::DbWeight::get().writes(3))
569 }
570 /// Storage: `Broker::Leases` (r:1 w:1)
571 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(401), added: 896, mode: `MaxEncodedLen`)
572 fn swap_leases() -> Weight {
573 // Proof Size summary in bytes:
574 // Measured: `470`
575 // Estimated: `1886`
576 // Minimum execution time: 7_773_000 picoseconds.
577 Weight::from_parts(8_304_000, 0)
578 .saturating_add(Weight::from_parts(0, 1886))
579 .saturating_add(T::DbWeight::get().reads(1))
580 .saturating_add(T::DbWeight::get().writes(1))
581 }
582 /// Storage: `Broker::SaleInfo` (r:1 w:1)
583 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
584 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
585 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
586 /// Storage: `Broker::Configuration` (r:1 w:0)
587 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
588 /// Storage: `Broker::Status` (r:1 w:0)
589 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
590 /// Storage: `System::Account` (r:2 w:2)
591 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
592 /// Storage: `ParachainSystem::ValidationData` (r:1 w:0)
593 /// Proof: `ParachainSystem::ValidationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
594 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
595 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`)
596 /// Storage: `Broker::Workplan` (r:0 w:1)
597 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
598 fn enable_auto_renew() -> Weight {
599 // Proof Size summary in bytes:
600 // Measured: `2829`
601 // Estimated: `6196`
602 // Minimum execution time: 159_458_000 picoseconds.
603 Weight::from_parts(174_911_000, 0)
604 .saturating_add(Weight::from_parts(0, 6196))
605 .saturating_add(T::DbWeight::get().reads(8))
606 .saturating_add(T::DbWeight::get().writes(7))
607 }
608 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
609 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(1002), added: 1497, mode: `MaxEncodedLen`)
610 fn disable_auto_renew() -> Weight {
611 // Proof Size summary in bytes:
612 // Measured: `1307`
613 // Estimated: `2487`
614 // Minimum execution time: 31_994_000 picoseconds.
615 Weight::from_parts(41_143_000, 0)
616 .saturating_add(Weight::from_parts(0, 2487))
617 .saturating_add(T::DbWeight::get().reads(1))
618 .saturating_add(T::DbWeight::get().writes(1))
619 }
620 /// Storage: `System::Account` (r:1 w:1)
621 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
622 /// Storage: `PolkadotXcm::SupportedVersion` (r:1 w:0)
623 /// Proof: `PolkadotXcm::SupportedVersion` (`max_values`: None, `max_size`: None, mode: `Measured`)
624 /// Storage: `ParachainSystem::HostConfiguration` (r:1 w:0)
625 /// Proof: `ParachainSystem::HostConfiguration` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
626 /// Storage: `ParachainSystem::PendingUpwardMessages` (r:1 w:1)
627 /// Proof: `ParachainSystem::PendingUpwardMessages` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
628 fn on_new_timeslice() -> Weight {
629 // Proof Size summary in bytes:
630 // Measured: `261`
631 // Estimated: `3726`
632 // Minimum execution time: 59_280_000 picoseconds.
633 Weight::from_parts(62_361_000, 0)
634 .saturating_add(Weight::from_parts(0, 3726))
635 .saturating_add(T::DbWeight::get().reads(4))
636 .saturating_add(T::DbWeight::get().writes(2))
637 }
638 /// Storage: `Broker::Workplan` (r:1 w:1)
639 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
640 fn remove_assignment() -> Weight {
641 // Proof Size summary in bytes:
642 // Measured: `798`
643 // Estimated: `4681`
644 // Minimum execution time: 23_100_000 picoseconds.
645 Weight::from_parts(24_235_000, 0)
646 .saturating_add(Weight::from_parts(0, 4681))
647 .saturating_add(T::DbWeight::get().reads(1))
648 .saturating_add(T::DbWeight::get().writes(1))
649 }
650}