pallet_broker/weights.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18// This file is part of Substrate.
19
20// Copyright (C) Parity Technologies (UK) Ltd.
21// SPDX-License-Identifier: Apache-2.0
22
23// Licensed under the Apache License, Version 2.0 (the "License");
24// you may not use this file except in compliance with the License.
25// You may obtain a copy of the License at
26//
27// http://www.apache.org/licenses/LICENSE-2.0
28//
29// Unless required by applicable law or agreed to in writing, software
30// distributed under the License is distributed on an "AS IS" BASIS,
31// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32// See the License for the specific language governing permissions and
33// limitations under the License.
34
35//! Autogenerated weights for `pallet_broker`
36//!
37//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
38//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
39//! WORST CASE MAP SIZE: `1000000`
40//! HOSTNAME: `4563561839a5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
41//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024`
42
43// Executed Command:
44// frame-omni-bencher
45// v1
46// benchmark
47// pallet
48// --extrinsic=*
49// --runtime=target/production/wbuild/kitchensink-runtime/kitchensink_runtime.wasm
50// --pallet=pallet_broker
51// --header=/__w/polkadot-sdk/polkadot-sdk/substrate/HEADER-APACHE2
52// --output=/__w/polkadot-sdk/polkadot-sdk/substrate/frame/broker/src/weights.rs
53// --wasm-execution=compiled
54// --steps=50
55// --repeat=20
56// --heap-pages=4096
57// --template=substrate/.maintain/frame-weight-template.hbs
58// --no-storage-info
59// --no-min-squares
60// --no-median-slopes
61// --genesis-builder-policy=none
62// --exclude-pallets=pallet_xcm,pallet_xcm_benchmarks::fungible,pallet_xcm_benchmarks::generic,pallet_nomination_pools,pallet_remark,pallet_transaction_storage,pallet_election_provider_multi_block,pallet_election_provider_multi_block::signed,pallet_election_provider_multi_block::unsigned,pallet_election_provider_multi_block::verifier
63
64#![cfg_attr(rustfmt, rustfmt_skip)]
65#![allow(unused_parens)]
66#![allow(unused_imports)]
67#![allow(missing_docs)]
68#![allow(dead_code)]
69
70use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
71use core::marker::PhantomData;
72
73/// Weight functions needed for `pallet_broker`.
74pub trait WeightInfo {
75 fn configure() -> Weight;
76 fn reserve() -> Weight;
77 fn unreserve() -> Weight;
78 fn set_lease() -> Weight;
79 fn remove_lease() -> Weight;
80 fn start_sales(n: u32, ) -> Weight;
81 fn purchase() -> Weight;
82 fn renew() -> Weight;
83 fn transfer() -> Weight;
84 fn partition() -> Weight;
85 fn interlace() -> Weight;
86 fn assign() -> Weight;
87 fn pool() -> Weight;
88 fn claim_revenue(m: u32, ) -> Weight;
89 fn purchase_credit() -> Weight;
90 fn drop_region() -> Weight;
91 fn drop_contribution() -> Weight;
92 fn drop_history() -> Weight;
93 fn drop_renewal() -> Weight;
94 fn request_core_count(n: u32, ) -> Weight;
95 fn process_core_count(n: u32, ) -> Weight;
96 fn process_revenue() -> Weight;
97 fn rotate_sale(n: u32, ) -> Weight;
98 fn process_pool() -> Weight;
99 fn process_core_schedule() -> Weight;
100 fn request_revenue_info_at() -> Weight;
101 fn notify_core_count() -> Weight;
102 fn notify_revenue() -> Weight;
103 fn do_tick_base() -> Weight;
104 fn force_reserve() -> Weight;
105 fn swap_leases() -> Weight;
106 fn enable_auto_renew() -> Weight;
107 fn disable_auto_renew() -> Weight;
108 fn on_new_timeslice() -> Weight;
109 fn remove_assignment() -> Weight;
110}
111
112/// Weights for `pallet_broker` using the Substrate node and recommended hardware.
113pub struct SubstrateWeight<T>(PhantomData<T>);
114impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
115 /// Storage: `Broker::Configuration` (r:0 w:1)
116 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
117 fn configure() -> Weight {
118 // Proof Size summary in bytes:
119 // Measured: `0`
120 // Estimated: `0`
121 // Minimum execution time: 1_989_000 picoseconds.
122 Weight::from_parts(2_154_000, 0)
123 .saturating_add(T::DbWeight::get().writes(1_u64))
124 }
125 /// Storage: `Broker::Reservations` (r:1 w:1)
126 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
127 fn reserve() -> Weight {
128 // Proof Size summary in bytes:
129 // Measured: `4816`
130 // Estimated: `7496`
131 // Minimum execution time: 14_828_000 picoseconds.
132 Weight::from_parts(15_421_000, 7496)
133 .saturating_add(T::DbWeight::get().reads(1_u64))
134 .saturating_add(T::DbWeight::get().writes(1_u64))
135 }
136 /// Storage: `Broker::Reservations` (r:1 w:1)
137 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
138 fn unreserve() -> Weight {
139 // Proof Size summary in bytes:
140 // Measured: `6018`
141 // Estimated: `7496`
142 // Minimum execution time: 14_330_000 picoseconds.
143 Weight::from_parts(14_621_000, 7496)
144 .saturating_add(T::DbWeight::get().reads(1_u64))
145 .saturating_add(T::DbWeight::get().writes(1_u64))
146 }
147 /// Storage: `Broker::Leases` (r:1 w:1)
148 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
149 fn set_lease() -> Weight {
150 // Proof Size summary in bytes:
151 // Measured: `39`
152 // Estimated: `1526`
153 // Minimum execution time: 7_456_000 picoseconds.
154 Weight::from_parts(7_707_000, 1526)
155 .saturating_add(T::DbWeight::get().reads(1_u64))
156 .saturating_add(T::DbWeight::get().writes(1_u64))
157 }
158 /// Storage: `Broker::Leases` (r:1 w:1)
159 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
160 fn remove_lease() -> Weight {
161 // Proof Size summary in bytes:
162 // Measured: `47`
163 // Estimated: `1526`
164 // Minimum execution time: 7_047_000 picoseconds.
165 Weight::from_parts(7_339_000, 1526)
166 .saturating_add(T::DbWeight::get().reads(1_u64))
167 .saturating_add(T::DbWeight::get().writes(1_u64))
168 }
169 /// Storage: `Broker::Configuration` (r:1 w:0)
170 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
171 /// Storage: `Broker::Leases` (r:1 w:1)
172 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
173 /// Storage: `Broker::Reservations` (r:1 w:0)
174 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
175 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
176 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
177 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
178 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
179 /// Storage: `Broker::SaleInfo` (r:0 w:1)
180 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
181 /// Storage: `Broker::Status` (r:0 w:1)
182 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
183 /// Storage: `Broker::Workplan` (r:0 w:10)
184 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
185 /// The range of component `n` is `[0, 1000]`.
186 fn start_sales(n: u32, ) -> Weight {
187 // Proof Size summary in bytes:
188 // Measured: `6134`
189 // Estimated: `8499`
190 // Minimum execution time: 27_984_000 picoseconds.
191 Weight::from_parts(50_193_074, 8499)
192 // Standard Error: 487
193 .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into()))
194 .saturating_add(T::DbWeight::get().reads(7_u64))
195 .saturating_add(T::DbWeight::get().writes(16_u64))
196 }
197 /// Storage: `Broker::Status` (r:1 w:0)
198 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
199 /// Storage: `Broker::SaleInfo` (r:1 w:1)
200 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
201 /// Storage: `Broker::Regions` (r:0 w:1)
202 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
203 fn purchase() -> Weight {
204 // Proof Size summary in bytes:
205 // Measured: `274`
206 // Estimated: `1542`
207 // Minimum execution time: 36_368_000 picoseconds.
208 Weight::from_parts(37_544_000, 1542)
209 .saturating_add(T::DbWeight::get().reads(2_u64))
210 .saturating_add(T::DbWeight::get().writes(2_u64))
211 }
212 /// Storage: `Broker::Configuration` (r:1 w:0)
213 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
214 /// Storage: `Broker::Status` (r:1 w:0)
215 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
216 /// Storage: `Broker::SaleInfo` (r:1 w:1)
217 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
218 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
219 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
220 /// Storage: `Broker::Workplan` (r:0 w:1)
221 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
222 fn renew() -> Weight {
223 // Proof Size summary in bytes:
224 // Measured: `392`
225 // Estimated: `4698`
226 // Minimum execution time: 63_735_000 picoseconds.
227 Weight::from_parts(72_328_000, 4698)
228 .saturating_add(T::DbWeight::get().reads(4_u64))
229 .saturating_add(T::DbWeight::get().writes(4_u64))
230 }
231 /// Storage: `Broker::Regions` (r:1 w:1)
232 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
233 fn transfer() -> Weight {
234 // Proof Size summary in bytes:
235 // Measured: `300`
236 // Estimated: `3551`
237 // Minimum execution time: 15_308_000 picoseconds.
238 Weight::from_parts(16_395_000, 3551)
239 .saturating_add(T::DbWeight::get().reads(1_u64))
240 .saturating_add(T::DbWeight::get().writes(1_u64))
241 }
242 /// Storage: `Broker::Regions` (r:1 w:2)
243 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
244 fn partition() -> Weight {
245 // Proof Size summary in bytes:
246 // Measured: `300`
247 // Estimated: `3551`
248 // Minimum execution time: 17_210_000 picoseconds.
249 Weight::from_parts(17_926_000, 3551)
250 .saturating_add(T::DbWeight::get().reads(1_u64))
251 .saturating_add(T::DbWeight::get().writes(2_u64))
252 }
253 /// Storage: `Broker::Regions` (r:1 w:3)
254 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
255 fn interlace() -> Weight {
256 // Proof Size summary in bytes:
257 // Measured: `300`
258 // Estimated: `3551`
259 // Minimum execution time: 18_489_000 picoseconds.
260 Weight::from_parts(19_209_000, 3551)
261 .saturating_add(T::DbWeight::get().reads(1_u64))
262 .saturating_add(T::DbWeight::get().writes(3_u64))
263 }
264 /// Storage: `Broker::Configuration` (r:1 w:0)
265 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
266 /// Storage: `Broker::Status` (r:1 w:0)
267 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
268 /// Storage: `Broker::Regions` (r:1 w:1)
269 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
270 /// Storage: `Broker::Workplan` (r:1 w:1)
271 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
272 fn assign() -> Weight {
273 // Proof Size summary in bytes:
274 // Measured: `545`
275 // Estimated: `4681`
276 // Minimum execution time: 30_336_000 picoseconds.
277 Weight::from_parts(32_040_000, 4681)
278 .saturating_add(T::DbWeight::get().reads(4_u64))
279 .saturating_add(T::DbWeight::get().writes(2_u64))
280 }
281 /// Storage: `Broker::Status` (r:1 w:0)
282 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
283 /// Storage: `Broker::Regions` (r:1 w:1)
284 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
285 /// Storage: `Broker::Workplan` (r:1 w:1)
286 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
287 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
288 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
289 /// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
290 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
291 fn pool() -> Weight {
292 // Proof Size summary in bytes:
293 // Measured: `580`
294 // Estimated: `5996`
295 // Minimum execution time: 37_417_000 picoseconds.
296 Weight::from_parts(39_629_000, 5996)
297 .saturating_add(T::DbWeight::get().reads(5_u64))
298 .saturating_add(T::DbWeight::get().writes(5_u64))
299 }
300 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
301 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
302 /// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
303 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
304 /// Storage: `System::Account` (r:2 w:2)
305 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
306 /// The range of component `m` is `[1, 3]`.
307 fn claim_revenue(m: u32, ) -> Weight {
308 // Proof Size summary in bytes:
309 // Measured: `682`
310 // Estimated: `6196 + m * (2520 ±0)`
311 // Minimum execution time: 68_403_000 picoseconds.
312 Weight::from_parts(71_259_395, 6196)
313 // Standard Error: 70_171
314 .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into()))
315 .saturating_add(T::DbWeight::get().reads(3_u64))
316 .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into())))
317 .saturating_add(T::DbWeight::get().writes(5_u64))
318 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
319 }
320 /// Storage: `System::Account` (r:1 w:1)
321 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
322 fn purchase_credit() -> Weight {
323 // Proof Size summary in bytes:
324 // Measured: `103`
325 // Estimated: `3593`
326 // Minimum execution time: 43_427_000 picoseconds.
327 Weight::from_parts(46_449_000, 3593)
328 .saturating_add(T::DbWeight::get().reads(1_u64))
329 .saturating_add(T::DbWeight::get().writes(1_u64))
330 }
331 /// Storage: `Broker::Status` (r:1 w:0)
332 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
333 /// Storage: `Broker::Regions` (r:1 w:1)
334 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
335 fn drop_region() -> Weight {
336 // Proof Size summary in bytes:
337 // Measured: `408`
338 // Estimated: `3551`
339 // Minimum execution time: 33_171_000 picoseconds.
340 Weight::from_parts(36_281_000, 3551)
341 .saturating_add(T::DbWeight::get().reads(2_u64))
342 .saturating_add(T::DbWeight::get().writes(1_u64))
343 }
344 /// Storage: `Broker::Configuration` (r:1 w:0)
345 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
346 /// Storage: `Broker::Status` (r:1 w:0)
347 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
348 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
349 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
350 fn drop_contribution() -> Weight {
351 // Proof Size summary in bytes:
352 // Measured: `405`
353 // Estimated: `3533`
354 // Minimum execution time: 44_610_000 picoseconds.
355 Weight::from_parts(51_348_000, 3533)
356 .saturating_add(T::DbWeight::get().reads(3_u64))
357 .saturating_add(T::DbWeight::get().writes(1_u64))
358 }
359 /// Storage: `Broker::Configuration` (r:1 w:0)
360 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
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::InstaPoolHistory` (r:1 w:1)
364 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
365 /// Storage: `System::Account` (r:1 w:0)
366 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
367 fn drop_history() -> Weight {
368 // Proof Size summary in bytes:
369 // Measured: `818`
370 // Estimated: `3593`
371 // Minimum execution time: 53_872_000 picoseconds.
372 Weight::from_parts(61_465_000, 3593)
373 .saturating_add(T::DbWeight::get().reads(4_u64))
374 .saturating_add(T::DbWeight::get().writes(1_u64))
375 }
376 /// Storage: `Broker::Status` (r:1 w:0)
377 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
378 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
379 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
380 fn drop_renewal() -> Weight {
381 // Proof Size summary in bytes:
382 // Measured: `465`
383 // Estimated: `4698`
384 // Minimum execution time: 36_358_000 picoseconds.
385 Weight::from_parts(41_672_000, 4698)
386 .saturating_add(T::DbWeight::get().reads(2_u64))
387 .saturating_add(T::DbWeight::get().writes(1_u64))
388 }
389 /// The range of component `n` is `[0, 1000]`.
390 fn request_core_count(_n: u32, ) -> Weight {
391 // Proof Size summary in bytes:
392 // Measured: `0`
393 // Estimated: `0`
394 // Minimum execution time: 3_748_000 picoseconds.
395 Weight::from_parts(3_989_484, 0)
396 }
397 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
398 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
399 /// The range of component `n` is `[0, 1000]`.
400 fn process_core_count(n: u32, ) -> Weight {
401 // Proof Size summary in bytes:
402 // Measured: `208`
403 // Estimated: `1487`
404 // Minimum execution time: 5_733_000 picoseconds.
405 Weight::from_parts(6_067_265, 1487)
406 // Standard Error: 9
407 .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into()))
408 .saturating_add(T::DbWeight::get().reads(1_u64))
409 .saturating_add(T::DbWeight::get().writes(1_u64))
410 }
411 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
412 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
413 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
414 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
415 /// Storage: `System::Account` (r:1 w:1)
416 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
417 fn process_revenue() -> Weight {
418 // Proof Size summary in bytes:
419 // Measured: `471`
420 // Estimated: `3593`
421 // Minimum execution time: 38_503_000 picoseconds.
422 Weight::from_parts(39_956_000, 3593)
423 .saturating_add(T::DbWeight::get().reads(3_u64))
424 .saturating_add(T::DbWeight::get().writes(3_u64))
425 }
426 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
427 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
428 /// Storage: `Broker::Reservations` (r:1 w:0)
429 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
430 /// Storage: `Broker::Leases` (r:1 w:1)
431 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
432 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
433 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
434 /// Storage: `Broker::Configuration` (r:1 w:0)
435 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
436 /// Storage: `Broker::Status` (r:1 w:0)
437 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
438 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
439 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
440 /// Storage: `System::Account` (r:10 w:10)
441 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
442 /// Storage: `Broker::SaleInfo` (r:0 w:1)
443 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
444 /// Storage: `Broker::Workplan` (r:0 w:1000)
445 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
446 /// The range of component `n` is `[0, 1000]`.
447 fn rotate_sale(n: u32, ) -> Weight {
448 // Proof Size summary in bytes:
449 // Measured: `8126`
450 // Estimated: `38070`
451 // Minimum execution time: 21_763_000 picoseconds.
452 Weight::from_parts(325_729_398, 38070)
453 // Standard Error: 6_937
454 .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into()))
455 .saturating_add(T::DbWeight::get().reads(26_u64))
456 .saturating_add(T::DbWeight::get().writes(34_u64))
457 .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(n.into())))
458 }
459 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
460 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
461 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
462 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
463 fn process_pool() -> Weight {
464 // Proof Size summary in bytes:
465 // Measured: `0`
466 // Estimated: `3493`
467 // Minimum execution time: 5_015_000 picoseconds.
468 Weight::from_parts(5_306_000, 3493)
469 .saturating_add(T::DbWeight::get().reads(1_u64))
470 .saturating_add(T::DbWeight::get().writes(1_u64))
471 }
472 /// Storage: `Broker::Workplan` (r:1 w:1)
473 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
474 /// Storage: `Broker::Workload` (r:1 w:1)
475 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
476 fn process_core_schedule() -> Weight {
477 // Proof Size summary in bytes:
478 // Measured: `1223`
479 // Estimated: `4681`
480 // Minimum execution time: 11_737_000 picoseconds.
481 Weight::from_parts(12_121_000, 4681)
482 .saturating_add(T::DbWeight::get().reads(2_u64))
483 .saturating_add(T::DbWeight::get().writes(2_u64))
484 }
485 fn request_revenue_info_at() -> Weight {
486 // Proof Size summary in bytes:
487 // Measured: `0`
488 // Estimated: `0`
489 // Minimum execution time: 130_000 picoseconds.
490 Weight::from_parts(184_000, 0)
491 }
492 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
493 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
494 fn notify_core_count() -> Weight {
495 // Proof Size summary in bytes:
496 // Measured: `0`
497 // Estimated: `0`
498 // Minimum execution time: 1_823_000 picoseconds.
499 Weight::from_parts(1_907_000, 0)
500 .saturating_add(T::DbWeight::get().writes(1_u64))
501 }
502 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
503 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
504 fn notify_revenue() -> Weight {
505 // Proof Size summary in bytes:
506 // Measured: `0`
507 // Estimated: `0`
508 // Minimum execution time: 1_986_000 picoseconds.
509 Weight::from_parts(2_067_000, 0)
510 .saturating_add(T::DbWeight::get().writes(1_u64))
511 }
512 /// Storage: `Broker::Status` (r:1 w:1)
513 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
514 /// Storage: `Broker::Configuration` (r:1 w:0)
515 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
516 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
517 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
518 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
519 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
520 fn do_tick_base() -> Weight {
521 // Proof Size summary in bytes:
522 // Measured: `245`
523 // Estimated: `1516`
524 // Minimum execution time: 10_211_000 picoseconds.
525 Weight::from_parts(10_652_000, 1516)
526 .saturating_add(T::DbWeight::get().reads(4_u64))
527 .saturating_add(T::DbWeight::get().writes(1_u64))
528 }
529 /// Storage: `Broker::SaleInfo` (r:1 w:0)
530 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
531 /// Storage: `Broker::Reservations` (r:1 w:1)
532 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
533 /// Storage: `Broker::Status` (r:1 w:0)
534 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
535 /// Storage: `Broker::Workplan` (r:0 w:2)
536 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
537 fn force_reserve() -> Weight {
538 // Proof Size summary in bytes:
539 // Measured: `5073`
540 // Estimated: `7496`
541 // Minimum execution time: 27_298_000 picoseconds.
542 Weight::from_parts(28_072_000, 7496)
543 .saturating_add(T::DbWeight::get().reads(3_u64))
544 .saturating_add(T::DbWeight::get().writes(3_u64))
545 }
546 /// Storage: `Broker::Leases` (r:1 w:1)
547 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
548 fn swap_leases() -> Weight {
549 // Proof Size summary in bytes:
550 // Measured: `39`
551 // Estimated: `1526`
552 // Minimum execution time: 4_402_000 picoseconds.
553 Weight::from_parts(4_626_000, 1526)
554 .saturating_add(T::DbWeight::get().reads(1_u64))
555 .saturating_add(T::DbWeight::get().writes(1_u64))
556 }
557 /// Storage: `Broker::SaleInfo` (r:1 w:1)
558 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
559 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
560 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
561 /// Storage: `Broker::Configuration` (r:1 w:0)
562 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
563 /// Storage: `Broker::Status` (r:1 w:0)
564 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
565 /// Storage: `System::Account` (r:1 w:1)
566 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
567 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
568 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
569 /// Storage: `Broker::Workplan` (r:0 w:1)
570 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
571 fn enable_auto_renew() -> Weight {
572 // Proof Size summary in bytes:
573 // Measured: `888`
574 // Estimated: `4698`
575 // Minimum execution time: 79_617_000 picoseconds.
576 Weight::from_parts(84_468_000, 4698)
577 .saturating_add(T::DbWeight::get().reads(6_u64))
578 .saturating_add(T::DbWeight::get().writes(6_u64))
579 }
580 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
581 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
582 fn disable_auto_renew() -> Weight {
583 // Proof Size summary in bytes:
584 // Measured: `382`
585 // Estimated: `1586`
586 // Minimum execution time: 14_582_000 picoseconds.
587 Weight::from_parts(15_206_000, 1586)
588 .saturating_add(T::DbWeight::get().reads(1_u64))
589 .saturating_add(T::DbWeight::get().writes(1_u64))
590 }
591 fn on_new_timeslice() -> Weight {
592 // Proof Size summary in bytes:
593 // Measured: `0`
594 // Estimated: `0`
595 // Minimum execution time: 227_000 picoseconds.
596 Weight::from_parts(251_000, 0)
597 }
598 /// Storage: `Broker::Workplan` (r:1 w:1)
599 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
600 fn remove_assignment() -> Weight {
601 // Proof Size summary in bytes:
602 // Measured: `408`
603 // Estimated: `4681`
604 // Minimum execution time: 14_911_000 picoseconds.
605 Weight::from_parts(15_782_000, 4681)
606 .saturating_add(T::DbWeight::get().reads(1_u64))
607 .saturating_add(T::DbWeight::get().writes(1_u64))
608 }
609}
610
611// For backwards compatibility and tests.
612impl WeightInfo for () {
613 /// Storage: `Broker::Configuration` (r:0 w:1)
614 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
615 fn configure() -> Weight {
616 // Proof Size summary in bytes:
617 // Measured: `0`
618 // Estimated: `0`
619 // Minimum execution time: 1_989_000 picoseconds.
620 Weight::from_parts(2_154_000, 0)
621 .saturating_add(RocksDbWeight::get().writes(1_u64))
622 }
623 /// Storage: `Broker::Reservations` (r:1 w:1)
624 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
625 fn reserve() -> Weight {
626 // Proof Size summary in bytes:
627 // Measured: `4816`
628 // Estimated: `7496`
629 // Minimum execution time: 14_828_000 picoseconds.
630 Weight::from_parts(15_421_000, 7496)
631 .saturating_add(RocksDbWeight::get().reads(1_u64))
632 .saturating_add(RocksDbWeight::get().writes(1_u64))
633 }
634 /// Storage: `Broker::Reservations` (r:1 w:1)
635 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
636 fn unreserve() -> Weight {
637 // Proof Size summary in bytes:
638 // Measured: `6018`
639 // Estimated: `7496`
640 // Minimum execution time: 14_330_000 picoseconds.
641 Weight::from_parts(14_621_000, 7496)
642 .saturating_add(RocksDbWeight::get().reads(1_u64))
643 .saturating_add(RocksDbWeight::get().writes(1_u64))
644 }
645 /// Storage: `Broker::Leases` (r:1 w:1)
646 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
647 fn set_lease() -> Weight {
648 // Proof Size summary in bytes:
649 // Measured: `39`
650 // Estimated: `1526`
651 // Minimum execution time: 7_456_000 picoseconds.
652 Weight::from_parts(7_707_000, 1526)
653 .saturating_add(RocksDbWeight::get().reads(1_u64))
654 .saturating_add(RocksDbWeight::get().writes(1_u64))
655 }
656 /// Storage: `Broker::Leases` (r:1 w:1)
657 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
658 fn remove_lease() -> Weight {
659 // Proof Size summary in bytes:
660 // Measured: `47`
661 // Estimated: `1526`
662 // Minimum execution time: 7_047_000 picoseconds.
663 Weight::from_parts(7_339_000, 1526)
664 .saturating_add(RocksDbWeight::get().reads(1_u64))
665 .saturating_add(RocksDbWeight::get().writes(1_u64))
666 }
667 /// Storage: `Broker::Configuration` (r:1 w:0)
668 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
669 /// Storage: `Broker::Leases` (r:1 w:1)
670 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
671 /// Storage: `Broker::Reservations` (r:1 w:0)
672 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
673 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
674 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
675 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
676 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
677 /// Storage: `Broker::SaleInfo` (r:0 w:1)
678 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
679 /// Storage: `Broker::Status` (r:0 w:1)
680 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
681 /// Storage: `Broker::Workplan` (r:0 w:10)
682 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
683 /// The range of component `n` is `[0, 1000]`.
684 fn start_sales(n: u32, ) -> Weight {
685 // Proof Size summary in bytes:
686 // Measured: `6134`
687 // Estimated: `8499`
688 // Minimum execution time: 27_984_000 picoseconds.
689 Weight::from_parts(50_193_074, 8499)
690 // Standard Error: 487
691 .saturating_add(Weight::from_parts(2_516, 0).saturating_mul(n.into()))
692 .saturating_add(RocksDbWeight::get().reads(7_u64))
693 .saturating_add(RocksDbWeight::get().writes(16_u64))
694 }
695 /// Storage: `Broker::Status` (r:1 w:0)
696 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
697 /// Storage: `Broker::SaleInfo` (r:1 w:1)
698 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
699 /// Storage: `Broker::Regions` (r:0 w:1)
700 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
701 fn purchase() -> Weight {
702 // Proof Size summary in bytes:
703 // Measured: `274`
704 // Estimated: `1542`
705 // Minimum execution time: 36_368_000 picoseconds.
706 Weight::from_parts(37_544_000, 1542)
707 .saturating_add(RocksDbWeight::get().reads(2_u64))
708 .saturating_add(RocksDbWeight::get().writes(2_u64))
709 }
710 /// Storage: `Broker::Configuration` (r:1 w:0)
711 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
712 /// Storage: `Broker::Status` (r:1 w:0)
713 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
714 /// Storage: `Broker::SaleInfo` (r:1 w:1)
715 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
716 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
717 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
718 /// Storage: `Broker::Workplan` (r:0 w:1)
719 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
720 fn renew() -> Weight {
721 // Proof Size summary in bytes:
722 // Measured: `392`
723 // Estimated: `4698`
724 // Minimum execution time: 63_735_000 picoseconds.
725 Weight::from_parts(72_328_000, 4698)
726 .saturating_add(RocksDbWeight::get().reads(4_u64))
727 .saturating_add(RocksDbWeight::get().writes(4_u64))
728 }
729 /// Storage: `Broker::Regions` (r:1 w:1)
730 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
731 fn transfer() -> Weight {
732 // Proof Size summary in bytes:
733 // Measured: `300`
734 // Estimated: `3551`
735 // Minimum execution time: 15_308_000 picoseconds.
736 Weight::from_parts(16_395_000, 3551)
737 .saturating_add(RocksDbWeight::get().reads(1_u64))
738 .saturating_add(RocksDbWeight::get().writes(1_u64))
739 }
740 /// Storage: `Broker::Regions` (r:1 w:2)
741 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
742 fn partition() -> Weight {
743 // Proof Size summary in bytes:
744 // Measured: `300`
745 // Estimated: `3551`
746 // Minimum execution time: 17_210_000 picoseconds.
747 Weight::from_parts(17_926_000, 3551)
748 .saturating_add(RocksDbWeight::get().reads(1_u64))
749 .saturating_add(RocksDbWeight::get().writes(2_u64))
750 }
751 /// Storage: `Broker::Regions` (r:1 w:3)
752 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
753 fn interlace() -> Weight {
754 // Proof Size summary in bytes:
755 // Measured: `300`
756 // Estimated: `3551`
757 // Minimum execution time: 18_489_000 picoseconds.
758 Weight::from_parts(19_209_000, 3551)
759 .saturating_add(RocksDbWeight::get().reads(1_u64))
760 .saturating_add(RocksDbWeight::get().writes(3_u64))
761 }
762 /// Storage: `Broker::Configuration` (r:1 w:0)
763 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
764 /// Storage: `Broker::Status` (r:1 w:0)
765 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
766 /// Storage: `Broker::Regions` (r:1 w:1)
767 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
768 /// Storage: `Broker::Workplan` (r:1 w:1)
769 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
770 fn assign() -> Weight {
771 // Proof Size summary in bytes:
772 // Measured: `545`
773 // Estimated: `4681`
774 // Minimum execution time: 30_336_000 picoseconds.
775 Weight::from_parts(32_040_000, 4681)
776 .saturating_add(RocksDbWeight::get().reads(4_u64))
777 .saturating_add(RocksDbWeight::get().writes(2_u64))
778 }
779 /// Storage: `Broker::Status` (r:1 w:0)
780 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
781 /// Storage: `Broker::Regions` (r:1 w:1)
782 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
783 /// Storage: `Broker::Workplan` (r:1 w:1)
784 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
785 /// Storage: `Broker::InstaPoolIo` (r:2 w:2)
786 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
787 /// Storage: `Broker::InstaPoolContribution` (r:0 w:1)
788 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
789 fn pool() -> Weight {
790 // Proof Size summary in bytes:
791 // Measured: `580`
792 // Estimated: `5996`
793 // Minimum execution time: 37_417_000 picoseconds.
794 Weight::from_parts(39_629_000, 5996)
795 .saturating_add(RocksDbWeight::get().reads(5_u64))
796 .saturating_add(RocksDbWeight::get().writes(5_u64))
797 }
798 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
799 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
800 /// Storage: `Broker::InstaPoolHistory` (r:3 w:1)
801 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
802 /// Storage: `System::Account` (r:2 w:2)
803 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
804 /// The range of component `m` is `[1, 3]`.
805 fn claim_revenue(m: u32, ) -> Weight {
806 // Proof Size summary in bytes:
807 // Measured: `682`
808 // Estimated: `6196 + m * (2520 ±0)`
809 // Minimum execution time: 68_403_000 picoseconds.
810 Weight::from_parts(71_259_395, 6196)
811 // Standard Error: 70_171
812 .saturating_add(Weight::from_parts(1_324_469, 0).saturating_mul(m.into()))
813 .saturating_add(RocksDbWeight::get().reads(3_u64))
814 .saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(m.into())))
815 .saturating_add(RocksDbWeight::get().writes(5_u64))
816 .saturating_add(Weight::from_parts(0, 2520).saturating_mul(m.into()))
817 }
818 /// Storage: `System::Account` (r:1 w:1)
819 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
820 fn purchase_credit() -> Weight {
821 // Proof Size summary in bytes:
822 // Measured: `103`
823 // Estimated: `3593`
824 // Minimum execution time: 43_427_000 picoseconds.
825 Weight::from_parts(46_449_000, 3593)
826 .saturating_add(RocksDbWeight::get().reads(1_u64))
827 .saturating_add(RocksDbWeight::get().writes(1_u64))
828 }
829 /// Storage: `Broker::Status` (r:1 w:0)
830 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
831 /// Storage: `Broker::Regions` (r:1 w:1)
832 /// Proof: `Broker::Regions` (`max_values`: None, `max_size`: Some(86), added: 2561, mode: `MaxEncodedLen`)
833 fn drop_region() -> Weight {
834 // Proof Size summary in bytes:
835 // Measured: `408`
836 // Estimated: `3551`
837 // Minimum execution time: 33_171_000 picoseconds.
838 Weight::from_parts(36_281_000, 3551)
839 .saturating_add(RocksDbWeight::get().reads(2_u64))
840 .saturating_add(RocksDbWeight::get().writes(1_u64))
841 }
842 /// Storage: `Broker::Configuration` (r:1 w:0)
843 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
844 /// Storage: `Broker::Status` (r:1 w:0)
845 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
846 /// Storage: `Broker::InstaPoolContribution` (r:1 w:1)
847 /// Proof: `Broker::InstaPoolContribution` (`max_values`: None, `max_size`: Some(68), added: 2543, mode: `MaxEncodedLen`)
848 fn drop_contribution() -> Weight {
849 // Proof Size summary in bytes:
850 // Measured: `405`
851 // Estimated: `3533`
852 // Minimum execution time: 44_610_000 picoseconds.
853 Weight::from_parts(51_348_000, 3533)
854 .saturating_add(RocksDbWeight::get().reads(3_u64))
855 .saturating_add(RocksDbWeight::get().writes(1_u64))
856 }
857 /// Storage: `Broker::Configuration` (r:1 w:0)
858 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
859 /// Storage: `Broker::Status` (r:1 w:0)
860 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
861 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
862 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
863 /// Storage: `System::Account` (r:1 w:0)
864 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
865 fn drop_history() -> Weight {
866 // Proof Size summary in bytes:
867 // Measured: `818`
868 // Estimated: `3593`
869 // Minimum execution time: 53_872_000 picoseconds.
870 Weight::from_parts(61_465_000, 3593)
871 .saturating_add(RocksDbWeight::get().reads(4_u64))
872 .saturating_add(RocksDbWeight::get().writes(1_u64))
873 }
874 /// Storage: `Broker::Status` (r:1 w:0)
875 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
876 /// Storage: `Broker::PotentialRenewals` (r:1 w:1)
877 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
878 fn drop_renewal() -> Weight {
879 // Proof Size summary in bytes:
880 // Measured: `465`
881 // Estimated: `4698`
882 // Minimum execution time: 36_358_000 picoseconds.
883 Weight::from_parts(41_672_000, 4698)
884 .saturating_add(RocksDbWeight::get().reads(2_u64))
885 .saturating_add(RocksDbWeight::get().writes(1_u64))
886 }
887 /// The range of component `n` is `[0, 1000]`.
888 fn request_core_count(_n: u32, ) -> Weight {
889 // Proof Size summary in bytes:
890 // Measured: `0`
891 // Estimated: `0`
892 // Minimum execution time: 3_748_000 picoseconds.
893 Weight::from_parts(3_989_484, 0)
894 }
895 /// Storage: `Broker::CoreCountInbox` (r:1 w:1)
896 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
897 /// The range of component `n` is `[0, 1000]`.
898 fn process_core_count(n: u32, ) -> Weight {
899 // Proof Size summary in bytes:
900 // Measured: `208`
901 // Estimated: `1487`
902 // Minimum execution time: 5_733_000 picoseconds.
903 Weight::from_parts(6_067_265, 1487)
904 // Standard Error: 9
905 .saturating_add(Weight::from_parts(16, 0).saturating_mul(n.into()))
906 .saturating_add(RocksDbWeight::get().reads(1_u64))
907 .saturating_add(RocksDbWeight::get().writes(1_u64))
908 }
909 /// Storage: `Broker::RevenueInbox` (r:1 w:1)
910 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
911 /// Storage: `Broker::InstaPoolHistory` (r:1 w:1)
912 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
913 /// Storage: `System::Account` (r:1 w:1)
914 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
915 fn process_revenue() -> Weight {
916 // Proof Size summary in bytes:
917 // Measured: `471`
918 // Estimated: `3593`
919 // Minimum execution time: 38_503_000 picoseconds.
920 Weight::from_parts(39_956_000, 3593)
921 .saturating_add(RocksDbWeight::get().reads(3_u64))
922 .saturating_add(RocksDbWeight::get().writes(3_u64))
923 }
924 /// Storage: `Broker::InstaPoolIo` (r:3 w:3)
925 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
926 /// Storage: `Broker::Reservations` (r:1 w:0)
927 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
928 /// Storage: `Broker::Leases` (r:1 w:1)
929 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
930 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
931 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
932 /// Storage: `Broker::Configuration` (r:1 w:0)
933 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
934 /// Storage: `Broker::Status` (r:1 w:0)
935 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
936 /// Storage: `Broker::PotentialRenewals` (r:10 w:20)
937 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
938 /// Storage: `System::Account` (r:10 w:10)
939 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
940 /// Storage: `Broker::SaleInfo` (r:0 w:1)
941 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
942 /// Storage: `Broker::Workplan` (r:0 w:1000)
943 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
944 /// The range of component `n` is `[0, 1000]`.
945 fn rotate_sale(n: u32, ) -> Weight {
946 // Proof Size summary in bytes:
947 // Measured: `8126`
948 // Estimated: `38070`
949 // Minimum execution time: 21_763_000 picoseconds.
950 Weight::from_parts(325_729_398, 38070)
951 // Standard Error: 6_937
952 .saturating_add(Weight::from_parts(1_323_585, 0).saturating_mul(n.into()))
953 .saturating_add(RocksDbWeight::get().reads(26_u64))
954 .saturating_add(RocksDbWeight::get().writes(34_u64))
955 .saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(n.into())))
956 }
957 /// Storage: `Broker::InstaPoolIo` (r:1 w:0)
958 /// Proof: `Broker::InstaPoolIo` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
959 /// Storage: `Broker::InstaPoolHistory` (r:0 w:1)
960 /// Proof: `Broker::InstaPoolHistory` (`max_values`: None, `max_size`: Some(45), added: 2520, mode: `MaxEncodedLen`)
961 fn process_pool() -> Weight {
962 // Proof Size summary in bytes:
963 // Measured: `0`
964 // Estimated: `3493`
965 // Minimum execution time: 5_015_000 picoseconds.
966 Weight::from_parts(5_306_000, 3493)
967 .saturating_add(RocksDbWeight::get().reads(1_u64))
968 .saturating_add(RocksDbWeight::get().writes(1_u64))
969 }
970 /// Storage: `Broker::Workplan` (r:1 w:1)
971 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
972 /// Storage: `Broker::Workload` (r:1 w:1)
973 /// Proof: `Broker::Workload` (`max_values`: None, `max_size`: Some(1212), added: 3687, mode: `MaxEncodedLen`)
974 fn process_core_schedule() -> Weight {
975 // Proof Size summary in bytes:
976 // Measured: `1223`
977 // Estimated: `4681`
978 // Minimum execution time: 11_737_000 picoseconds.
979 Weight::from_parts(12_121_000, 4681)
980 .saturating_add(RocksDbWeight::get().reads(2_u64))
981 .saturating_add(RocksDbWeight::get().writes(2_u64))
982 }
983 fn request_revenue_info_at() -> Weight {
984 // Proof Size summary in bytes:
985 // Measured: `0`
986 // Estimated: `0`
987 // Minimum execution time: 130_000 picoseconds.
988 Weight::from_parts(184_000, 0)
989 }
990 /// Storage: `Broker::CoreCountInbox` (r:0 w:1)
991 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
992 fn notify_core_count() -> Weight {
993 // Proof Size summary in bytes:
994 // Measured: `0`
995 // Estimated: `0`
996 // Minimum execution time: 1_823_000 picoseconds.
997 Weight::from_parts(1_907_000, 0)
998 .saturating_add(RocksDbWeight::get().writes(1_u64))
999 }
1000 /// Storage: `Broker::RevenueInbox` (r:0 w:1)
1001 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1002 fn notify_revenue() -> Weight {
1003 // Proof Size summary in bytes:
1004 // Measured: `0`
1005 // Estimated: `0`
1006 // Minimum execution time: 1_986_000 picoseconds.
1007 Weight::from_parts(2_067_000, 0)
1008 .saturating_add(RocksDbWeight::get().writes(1_u64))
1009 }
1010 /// Storage: `Broker::Status` (r:1 w:1)
1011 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1012 /// Storage: `Broker::Configuration` (r:1 w:0)
1013 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1014 /// Storage: `Broker::CoreCountInbox` (r:1 w:0)
1015 /// Proof: `Broker::CoreCountInbox` (`max_values`: Some(1), `max_size`: Some(2), added: 497, mode: `MaxEncodedLen`)
1016 /// Storage: `Broker::RevenueInbox` (r:1 w:0)
1017 /// Proof: `Broker::RevenueInbox` (`max_values`: Some(1), `max_size`: Some(20), added: 515, mode: `MaxEncodedLen`)
1018 fn do_tick_base() -> Weight {
1019 // Proof Size summary in bytes:
1020 // Measured: `245`
1021 // Estimated: `1516`
1022 // Minimum execution time: 10_211_000 picoseconds.
1023 Weight::from_parts(10_652_000, 1516)
1024 .saturating_add(RocksDbWeight::get().reads(4_u64))
1025 .saturating_add(RocksDbWeight::get().writes(1_u64))
1026 }
1027 /// Storage: `Broker::SaleInfo` (r:1 w:0)
1028 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
1029 /// Storage: `Broker::Reservations` (r:1 w:1)
1030 /// Proof: `Broker::Reservations` (`max_values`: Some(1), `max_size`: Some(6011), added: 6506, mode: `MaxEncodedLen`)
1031 /// Storage: `Broker::Status` (r:1 w:0)
1032 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1033 /// Storage: `Broker::Workplan` (r:0 w:2)
1034 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1035 fn force_reserve() -> Weight {
1036 // Proof Size summary in bytes:
1037 // Measured: `5073`
1038 // Estimated: `7496`
1039 // Minimum execution time: 27_298_000 picoseconds.
1040 Weight::from_parts(28_072_000, 7496)
1041 .saturating_add(RocksDbWeight::get().reads(3_u64))
1042 .saturating_add(RocksDbWeight::get().writes(3_u64))
1043 }
1044 /// Storage: `Broker::Leases` (r:1 w:1)
1045 /// Proof: `Broker::Leases` (`max_values`: Some(1), `max_size`: Some(41), added: 536, mode: `MaxEncodedLen`)
1046 fn swap_leases() -> Weight {
1047 // Proof Size summary in bytes:
1048 // Measured: `39`
1049 // Estimated: `1526`
1050 // Minimum execution time: 4_402_000 picoseconds.
1051 Weight::from_parts(4_626_000, 1526)
1052 .saturating_add(RocksDbWeight::get().reads(1_u64))
1053 .saturating_add(RocksDbWeight::get().writes(1_u64))
1054 }
1055 /// Storage: `Broker::SaleInfo` (r:1 w:1)
1056 /// Proof: `Broker::SaleInfo` (`max_values`: Some(1), `max_size`: Some(57), added: 552, mode: `MaxEncodedLen`)
1057 /// Storage: `Broker::PotentialRenewals` (r:1 w:2)
1058 /// Proof: `Broker::PotentialRenewals` (`max_values`: None, `max_size`: Some(1233), added: 3708, mode: `MaxEncodedLen`)
1059 /// Storage: `Broker::Configuration` (r:1 w:0)
1060 /// Proof: `Broker::Configuration` (`max_values`: Some(1), `max_size`: Some(31), added: 526, mode: `MaxEncodedLen`)
1061 /// Storage: `Broker::Status` (r:1 w:0)
1062 /// Proof: `Broker::Status` (`max_values`: Some(1), `max_size`: Some(18), added: 513, mode: `MaxEncodedLen`)
1063 /// Storage: `System::Account` (r:1 w:1)
1064 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
1065 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1066 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1067 /// Storage: `Broker::Workplan` (r:0 w:1)
1068 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1069 fn enable_auto_renew() -> Weight {
1070 // Proof Size summary in bytes:
1071 // Measured: `888`
1072 // Estimated: `4698`
1073 // Minimum execution time: 79_617_000 picoseconds.
1074 Weight::from_parts(84_468_000, 4698)
1075 .saturating_add(RocksDbWeight::get().reads(6_u64))
1076 .saturating_add(RocksDbWeight::get().writes(6_u64))
1077 }
1078 /// Storage: `Broker::AutoRenewals` (r:1 w:1)
1079 /// Proof: `Broker::AutoRenewals` (`max_values`: Some(1), `max_size`: Some(101), added: 596, mode: `MaxEncodedLen`)
1080 fn disable_auto_renew() -> Weight {
1081 // Proof Size summary in bytes:
1082 // Measured: `382`
1083 // Estimated: `1586`
1084 // Minimum execution time: 14_582_000 picoseconds.
1085 Weight::from_parts(15_206_000, 1586)
1086 .saturating_add(RocksDbWeight::get().reads(1_u64))
1087 .saturating_add(RocksDbWeight::get().writes(1_u64))
1088 }
1089 fn on_new_timeslice() -> Weight {
1090 // Proof Size summary in bytes:
1091 // Measured: `0`
1092 // Estimated: `0`
1093 // Minimum execution time: 227_000 picoseconds.
1094 Weight::from_parts(251_000, 0)
1095 }
1096 /// Storage: `Broker::Workplan` (r:1 w:1)
1097 /// Proof: `Broker::Workplan` (`max_values`: None, `max_size`: Some(1216), added: 3691, mode: `MaxEncodedLen`)
1098 fn remove_assignment() -> Weight {
1099 // Proof Size summary in bytes:
1100 // Measured: `408`
1101 // Estimated: `4681`
1102 // Minimum execution time: 14_911_000 picoseconds.
1103 Weight::from_parts(15_782_000, 4681)
1104 .saturating_add(RocksDbWeight::get().reads(1_u64))
1105 .saturating_add(RocksDbWeight::get().writes(1_u64))
1106 }
1107}