git.delta.rocks / unique-network / refs/commits / 291b1315e4ab

difftreelog

chore add draft scheduler weights

Daniel Shiposha2022-09-16parent: #e819879.patch.diff
in: master

1 file changed

modifiedpallets/scheduler/src/weights.rsdiffbeforeafterboth
3//! Autogenerated weights for pallet_unique_scheduler3//! Autogenerated weights for pallet_unique_scheduler
4//!4//!
5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
6//! DATE: 2022-08-15, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`6//! DATE: 2022-09-14, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`
7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10247//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
88
9// Executed Command:9// Executed Command:
26#![cfg_attr(rustfmt, rustfmt_skip)]26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]27#![allow(unused_parens)]
28#![allow(unused_imports)]28#![allow(unused_imports)]
29#![allow(missing_docs)]
29#![allow(clippy::unnecessary_cast)]30#![allow(clippy::unnecessary_cast)]
3031
31use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44 fn on_initialize_resolved(s: u32, ) -> Weight;45 fn on_initialize_resolved(s: u32, ) -> Weight;
45 fn schedule_named(s: u32, ) -> Weight;46 fn schedule_named(s: u32, ) -> Weight;
46 fn cancel_named(s: u32, ) -> Weight;47 fn cancel_named(s: u32, ) -> Weight;
48 fn change_named_priority(s: u32, ) -> Weight;
47}49}
4850
49/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.51/// Weights for pallet_unique_scheduler using the Substrate node and recommended hardware.
53 // Storage: System Account (r:1 w:1)55 // Storage: System Account (r:1 w:1)
54 // Storage: System AllExtrinsicsLen (r:1 w:1)56 // Storage: System AllExtrinsicsLen (r:1 w:1)
55 // Storage: System BlockWeight (r:1 w:1)57 // Storage: System BlockWeight (r:1 w:1)
58 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
59 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
56 // Storage: Scheduler Lookup (r:0 w:1)60 // Storage: Scheduler Lookup (r:1 w:1)
57 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {61 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
58 Weight::from_ref_time(26_641_000)62 Weight::from_ref_time(26_641_000)
59 // Standard Error: 9_00063 // Standard Error: 9_000
67 // Storage: System Account (r:1 w:1)71 // Storage: System Account (r:1 w:1)
68 // Storage: System AllExtrinsicsLen (r:1 w:1)72 // Storage: System AllExtrinsicsLen (r:1 w:1)
69 // Storage: System BlockWeight (r:1 w:1)73 // Storage: System BlockWeight (r:1 w:1)
74 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
75 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
70 // Storage: Scheduler Lookup (r:0 w:1)76 // Storage: Scheduler Lookup (r:0 w:1)
71 fn on_initialize_named_resolved(s: u32, ) -> Weight {77 fn on_initialize_named_resolved(s: u32, ) -> Weight {
72 Weight::from_ref_time(23_941_000)78 Weight::from_ref_time(23_941_000)
80 // Storage: System Account (r:1 w:1)86 // Storage: System Account (r:1 w:1)
81 // Storage: System AllExtrinsicsLen (r:1 w:1)87 // Storage: System AllExtrinsicsLen (r:1 w:1)
82 // Storage: System BlockWeight (r:1 w:1)88 // Storage: System BlockWeight (r:1 w:1)
89 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
90 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
83 // Storage: Scheduler Lookup (r:0 w:1)91 // Storage: Scheduler Lookup (r:1 w:1)
84 fn on_initialize_periodic(s: u32, ) -> Weight {92 fn on_initialize_periodic(s: u32, ) -> Weight {
85 Weight::from_ref_time(24_858_000)93 Weight::from_ref_time(24_858_000)
86 // Standard Error: 7_00094 // Standard Error: 7_000
94 // Storage: System Account (r:1 w:1)102 // Storage: System Account (r:1 w:1)
95 // Storage: System AllExtrinsicsLen (r:1 w:1)103 // Storage: System AllExtrinsicsLen (r:1 w:1)
96 // Storage: System BlockWeight (r:1 w:1)104 // Storage: System BlockWeight (r:1 w:1)
105 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
106 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
97 // Storage: Scheduler Lookup (r:0 w:1)107 // Storage: Scheduler Lookup (r:1 w:1)
98 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {108 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
99 Weight::from_ref_time(25_515_000)109 Weight::from_ref_time(25_515_000)
100 // Standard Error: 14_000110 // Standard Error: 14_000
118 // Storage: System Account (r:1 w:1)128 // Storage: System Account (r:1 w:1)
119 // Storage: System AllExtrinsicsLen (r:1 w:1)129 // Storage: System AllExtrinsicsLen (r:1 w:1)
120 // Storage: System BlockWeight (r:1 w:1)130 // Storage: System BlockWeight (r:1 w:1)
131 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
132 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
121 // Storage: Scheduler Lookup (r:0 w:1)133 // Storage: Scheduler Lookup (r:0 w:1)
122 fn on_initialize_named_aborted(s: u32, ) -> Weight {134 fn on_initialize_named_aborted(s: u32, ) -> Weight {
123 Weight::from_ref_time(25_552_000)135 Weight::from_ref_time(25_552_000)
141 // Storage: System Account (r:1 w:1)153 // Storage: System Account (r:1 w:1)
142 // Storage: System AllExtrinsicsLen (r:1 w:1)154 // Storage: System AllExtrinsicsLen (r:1 w:1)
143 // Storage: System BlockWeight (r:1 w:1)155 // Storage: System BlockWeight (r:1 w:1)
156 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
157 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
144 // Storage: Scheduler Lookup (r:0 w:1)158 // Storage: Scheduler Lookup (r:0 w:1)
145 fn on_initialize(s: u32, ) -> Weight {159 fn on_initialize(s: u32, ) -> Weight {
146 Weight::from_ref_time(24_482_000)160 Weight::from_ref_time(24_482_000)
154 // Storage: System Account (r:1 w:1)168 // Storage: System Account (r:1 w:1)
155 // Storage: System AllExtrinsicsLen (r:1 w:1)169 // Storage: System AllExtrinsicsLen (r:1 w:1)
156 // Storage: System BlockWeight (r:1 w:1)170 // Storage: System BlockWeight (r:1 w:1)
171 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
172 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
157 // Storage: Scheduler Lookup (r:0 w:1)173 // Storage: Scheduler Lookup (r:0 w:1)
158 fn on_initialize_resolved(s: u32, ) -> Weight {174 fn on_initialize_resolved(s: u32, ) -> Weight {
159 Weight::from_ref_time(25_187_000)175 Weight::from_ref_time(25_187_000)
181 .saturating_add(T::DbWeight::get().reads(2 as u64))197 .saturating_add(T::DbWeight::get().reads(2 as u64))
182 .saturating_add(T::DbWeight::get().writes(2 as u64))198 .saturating_add(T::DbWeight::get().writes(2 as u64))
183 }199 }
200 // Storage: Scheduler Lookup (r:1 w:1)
201 // Storage: Scheduler Agenda (r:1 w:1)
202 fn change_named_priority(s: u32, ) -> Weight {
203 Weight::from_ref_time(8_642_000)
204 // Standard Error: 0
205 .saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64))
206 .saturating_add(T::DbWeight::get().reads(2 as u64))
207 .saturating_add(T::DbWeight::get().writes(2 as u64))
208 }
184}209}
185210
186// For backwards compatibility and tests211// For backwards compatibility and tests
189 // Storage: System Account (r:1 w:1)214 // Storage: System Account (r:1 w:1)
190 // Storage: System AllExtrinsicsLen (r:1 w:1)215 // Storage: System AllExtrinsicsLen (r:1 w:1)
191 // Storage: System BlockWeight (r:1 w:1)216 // Storage: System BlockWeight (r:1 w:1)
217 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
218 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
192 // Storage: Scheduler Lookup (r:0 w:1)219 // Storage: Scheduler Lookup (r:1 w:1)
193 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {220 fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
194 Weight::from_ref_time(26_641_000)221 Weight::from_ref_time(26_641_000)
195 // Standard Error: 9_000222 // Standard Error: 9_000
203 // Storage: System Account (r:1 w:1)230 // Storage: System Account (r:1 w:1)
204 // Storage: System AllExtrinsicsLen (r:1 w:1)231 // Storage: System AllExtrinsicsLen (r:1 w:1)
205 // Storage: System BlockWeight (r:1 w:1)232 // Storage: System BlockWeight (r:1 w:1)
233 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
234 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
206 // Storage: Scheduler Lookup (r:0 w:1)235 // Storage: Scheduler Lookup (r:0 w:1)
207 fn on_initialize_named_resolved(s: u32, ) -> Weight {236 fn on_initialize_named_resolved(s: u32, ) -> Weight {
208 Weight::from_ref_time(23_941_000)237 Weight::from_ref_time(23_941_000)
216 // Storage: System Account (r:1 w:1)245 // Storage: System Account (r:1 w:1)
217 // Storage: System AllExtrinsicsLen (r:1 w:1)246 // Storage: System AllExtrinsicsLen (r:1 w:1)
218 // Storage: System BlockWeight (r:1 w:1)247 // Storage: System BlockWeight (r:1 w:1)
248 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
249 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
219 // Storage: Scheduler Lookup (r:0 w:1)250 // Storage: Scheduler Lookup (r:1 w:1)
220 fn on_initialize_periodic(s: u32, ) -> Weight {251 fn on_initialize_periodic(s: u32, ) -> Weight {
221 Weight::from_ref_time(24_858_000)252 Weight::from_ref_time(24_858_000)
222 // Standard Error: 7_000253 // Standard Error: 7_000
230 // Storage: System Account (r:1 w:1)261 // Storage: System Account (r:1 w:1)
231 // Storage: System AllExtrinsicsLen (r:1 w:1)262 // Storage: System AllExtrinsicsLen (r:1 w:1)
232 // Storage: System BlockWeight (r:1 w:1)263 // Storage: System BlockWeight (r:1 w:1)
264 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
265 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
233 // Storage: Scheduler Lookup (r:0 w:1)266 // Storage: Scheduler Lookup (r:1 w:1)
234 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {267 fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
235 Weight::from_ref_time(25_515_000)268 Weight::from_ref_time(25_515_000)
236 // Standard Error: 14_000269 // Standard Error: 14_000
254 // Storage: System Account (r:1 w:1)287 // Storage: System Account (r:1 w:1)
255 // Storage: System AllExtrinsicsLen (r:1 w:1)288 // Storage: System AllExtrinsicsLen (r:1 w:1)
256 // Storage: System BlockWeight (r:1 w:1)289 // Storage: System BlockWeight (r:1 w:1)
290 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
291 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
257 // Storage: Scheduler Lookup (r:0 w:1)292 // Storage: Scheduler Lookup (r:0 w:1)
258 fn on_initialize_named_aborted(s: u32, ) -> Weight {293 fn on_initialize_named_aborted(s: u32, ) -> Weight {
259 Weight::from_ref_time(25_552_000)294 Weight::from_ref_time(25_552_000)
277 // Storage: System Account (r:1 w:1)312 // Storage: System Account (r:1 w:1)
278 // Storage: System AllExtrinsicsLen (r:1 w:1)313 // Storage: System AllExtrinsicsLen (r:1 w:1)
279 // Storage: System BlockWeight (r:1 w:1)314 // Storage: System BlockWeight (r:1 w:1)
315 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
316 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
280 // Storage: Scheduler Lookup (r:0 w:1)317 // Storage: Scheduler Lookup (r:0 w:1)
281 fn on_initialize(s: u32, ) -> Weight {318 fn on_initialize(s: u32, ) -> Weight {
282 Weight::from_ref_time(24_482_000)319 Weight::from_ref_time(24_482_000)
290 // Storage: System Account (r:1 w:1)327 // Storage: System Account (r:1 w:1)
291 // Storage: System AllExtrinsicsLen (r:1 w:1)328 // Storage: System AllExtrinsicsLen (r:1 w:1)
292 // Storage: System BlockWeight (r:1 w:1)329 // Storage: System BlockWeight (r:1 w:1)
330 // Storage: Configuration WeightToFeeCoefficientOverride (r:1 w:0)
331 // Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
293 // Storage: Scheduler Lookup (r:0 w:1)332 // Storage: Scheduler Lookup (r:0 w:1)
294 fn on_initialize_resolved(s: u32, ) -> Weight {333 fn on_initialize_resolved(s: u32, ) -> Weight {
295 Weight::from_ref_time(25_187_000)334 Weight::from_ref_time(25_187_000)
318 .saturating_add(RocksDbWeight::get().writes(2 as u64))357 .saturating_add(RocksDbWeight::get().writes(2 as u64))
319 }358 }
359
360 // Storage: Scheduler Lookup (r:1 w:1)
361 // Storage: Scheduler Agenda (r:1 w:1)
362 fn change_named_priority(s: u32, ) -> Weight {
363 Weight::from_ref_time(8_642_000)
364 // Standard Error: 0
365 .saturating_add(Weight::from_ref_time(431_000).saturating_mul(s as u64))
366 .saturating_add(RocksDbWeight::get().reads(2 as u64))
367 .saturating_add(RocksDbWeight::get().writes(2 as u64))
368 }
320}369}
321370