|
| 1 | +// This file is part of Astar. |
| 2 | + |
| 3 | +// Copyright (C) Stake Technologies Pte.Ltd. |
| 4 | +// SPDX-License-Identifier: GPL-3.0-or-later |
| 5 | + |
| 6 | +// Astar is free software: you can redistribute it and/or modify |
| 7 | +// it under the terms of the GNU General Public License as published by |
| 8 | +// the Free Software Foundation, either version 3 of the License, or |
| 9 | +// (at your option) any later version. |
| 10 | + |
| 11 | +// Astar is distributed in the hope that it will be useful, |
| 12 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | +// GNU General Public License for more details. |
| 15 | + |
| 16 | +// You should have received a copy of the GNU General Public License |
| 17 | +// along with Astar. If not, see <http://www.gnu.org/licenses/>. |
| 18 | + |
| 19 | +//! Autogenerated weights for `pallet_scheduler` |
| 20 | +//! |
| 21 | +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0 |
| 22 | +//! DATE: 2024-11-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` |
| 23 | +//! WORST CASE MAP SIZE: `1000000` |
| 24 | +//! HOSTNAME: `runner-wiukf8gn-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz` |
| 25 | +//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024` |
| 26 | +
|
| 27 | +// Executed Command: |
| 28 | +// ./target/production/substrate-node |
| 29 | +// benchmark |
| 30 | +// pallet |
| 31 | +// --chain=dev |
| 32 | +// --steps=50 |
| 33 | +// --repeat=20 |
| 34 | +// --pallet=pallet_scheduler |
| 35 | +// --no-storage-info |
| 36 | +// --no-median-slopes |
| 37 | +// --no-min-squares |
| 38 | +// --extrinsic=* |
| 39 | +// --wasm-execution=compiled |
| 40 | +// --heap-pages=4096 |
| 41 | +// --output=./substrate/frame/scheduler/src/weights.rs |
| 42 | +// --header=./substrate/HEADER-APACHE2 |
| 43 | +// --template=./substrate/.maintain/frame-weight-template.hbs |
| 44 | + |
| 45 | +#![cfg_attr(rustfmt, rustfmt_skip)] |
| 46 | +#![allow(unused_parens)] |
| 47 | +#![allow(unused_imports)] |
| 48 | +#![allow(missing_docs)] |
| 49 | + |
| 50 | +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; |
| 51 | +use core::marker::PhantomData; |
| 52 | + |
| 53 | +/// Weights for `pallet_scheduler` using the Substrate node and recommended hardware. |
| 54 | +/// Weight functions for `pallet_scheduler`. |
| 55 | +pub struct WeightInfo<T>(PhantomData<T>); |
| 56 | +impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> { |
| 57 | + /// Storage: `Scheduler::IncompleteSince` (r:1 w:1) |
| 58 | + /// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) |
| 59 | + fn service_agendas_base() -> Weight { |
| 60 | + // Proof Size summary in bytes: |
| 61 | + // Measured: `31` |
| 62 | + // Estimated: `1489` |
| 63 | + // Minimum execution time: 3_735_000 picoseconds. |
| 64 | + Weight::from_parts(3_928_000, 1489) |
| 65 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 66 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 67 | + } |
| 68 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 69 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 70 | + /// The range of component `s` is `[0, 512]`. |
| 71 | + fn service_agenda_base(s: u32, ) -> Weight { |
| 72 | + // Proof Size summary in bytes: |
| 73 | + // Measured: `81 + s * (177 ±0)` |
| 74 | + // Estimated: `110487` |
| 75 | + // Minimum execution time: 3_944_000 picoseconds. |
| 76 | + Weight::from_parts(4_034_000, 110487) |
| 77 | + // Standard Error: 1_119 |
| 78 | + .saturating_add(Weight::from_parts(468_891, 0).saturating_mul(s.into())) |
| 79 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 80 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 81 | + } |
| 82 | + fn service_task_base() -> Weight { |
| 83 | + // Proof Size summary in bytes: |
| 84 | + // Measured: `0` |
| 85 | + // Estimated: `0` |
| 86 | + // Minimum execution time: 3_235_000 picoseconds. |
| 87 | + Weight::from_parts(3_423_000, 0) |
| 88 | + } |
| 89 | + /// Storage: `Preimage::PreimageFor` (r:1 w:1) |
| 90 | + /// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`) |
| 91 | + /// Storage: `Preimage::StatusFor` (r:1 w:0) |
| 92 | + /// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) |
| 93 | + /// Storage: `Preimage::RequestStatusFor` (r:1 w:1) |
| 94 | + /// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`) |
| 95 | + /// The range of component `s` is `[128, 4194304]`. |
| 96 | + fn service_task_fetched(s: u32, ) -> Weight { |
| 97 | + // Proof Size summary in bytes: |
| 98 | + // Measured: `246 + s * (1 ±0)` |
| 99 | + // Estimated: `3711 + s * (1 ±0)` |
| 100 | + // Minimum execution time: 27_220_000 picoseconds. |
| 101 | + Weight::from_parts(27_410_000, 0) |
| 102 | + .saturating_add(Weight::from_parts(0, 3711)) |
| 103 | + // Standard Error: 4 |
| 104 | + .saturating_add(Weight::from_parts(1_314, 0).saturating_mul(s.into())) |
| 105 | + .saturating_add(T::DbWeight::get().reads(3)) |
| 106 | + .saturating_add(T::DbWeight::get().writes(2)) |
| 107 | + .saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into())) |
| 108 | + } |
| 109 | + /// Storage: `Scheduler::Lookup` (r:0 w:1) |
| 110 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 111 | + fn service_task_named() -> Weight { |
| 112 | + // Proof Size summary in bytes: |
| 113 | + // Measured: `0` |
| 114 | + // Estimated: `0` |
| 115 | + // Minimum execution time: 4_858_000 picoseconds. |
| 116 | + Weight::from_parts(5_041_000, 0) |
| 117 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 118 | + } |
| 119 | + fn service_task_periodic() -> Weight { |
| 120 | + // Proof Size summary in bytes: |
| 121 | + // Measured: `0` |
| 122 | + // Estimated: `0` |
| 123 | + // Minimum execution time: 3_249_000 picoseconds. |
| 124 | + Weight::from_parts(3_377_000, 0) |
| 125 | + } |
| 126 | + /// Storage: `SafeMode::EnteredUntil` (r:1 w:0) |
| 127 | + /// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) |
| 128 | + /// Storage: `TxPause::PausedCalls` (r:1 w:0) |
| 129 | + /// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`) |
| 130 | + fn execute_dispatch_signed() -> Weight { |
| 131 | + // Proof Size summary in bytes: |
| 132 | + // Measured: `145` |
| 133 | + // Estimated: `3997` |
| 134 | + // Minimum execution time: 8_482_000 picoseconds. |
| 135 | + Weight::from_parts(9_252_000, 3997) |
| 136 | + .saturating_add(T::DbWeight::get().reads(2_u64)) |
| 137 | + } |
| 138 | + fn execute_dispatch_unsigned() -> Weight { |
| 139 | + // Proof Size summary in bytes: |
| 140 | + // Measured: `0` |
| 141 | + // Estimated: `0` |
| 142 | + // Minimum execution time: 2_391_000 picoseconds. |
| 143 | + Weight::from_parts(2_591_000, 0) |
| 144 | + } |
| 145 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 146 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 147 | + /// The range of component `s` is `[0, 511]`. |
| 148 | + fn schedule(s: u32, ) -> Weight { |
| 149 | + // Proof Size summary in bytes: |
| 150 | + // Measured: `81 + s * (177 ±0)` |
| 151 | + // Estimated: `110487` |
| 152 | + // Minimum execution time: 10_698_000 picoseconds. |
| 153 | + Weight::from_parts(7_346_814, 110487) |
| 154 | + // Standard Error: 2_513 |
| 155 | + .saturating_add(Weight::from_parts(535_729, 0).saturating_mul(s.into())) |
| 156 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 157 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 158 | + } |
| 159 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 160 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 161 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 162 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 163 | + /// Storage: `Scheduler::Lookup` (r:0 w:1) |
| 164 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 165 | + /// The range of component `s` is `[1, 512]`. |
| 166 | + fn cancel(s: u32, ) -> Weight { |
| 167 | + // Proof Size summary in bytes: |
| 168 | + // Measured: `81 + s * (177 ±0)` |
| 169 | + // Estimated: `110487` |
| 170 | + // Minimum execution time: 16_371_000 picoseconds. |
| 171 | + Weight::from_parts(9_559_789, 110487) |
| 172 | + // Standard Error: 2_542 |
| 173 | + .saturating_add(Weight::from_parts(723_961, 0).saturating_mul(s.into())) |
| 174 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 175 | + .saturating_add(T::DbWeight::get().writes(3_u64)) |
| 176 | + } |
| 177 | + /// Storage: `Scheduler::Lookup` (r:1 w:1) |
| 178 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 179 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 180 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 181 | + /// The range of component `s` is `[0, 511]`. |
| 182 | + fn schedule_named(s: u32, ) -> Weight { |
| 183 | + // Proof Size summary in bytes: |
| 184 | + // Measured: `596 + s * (178 ±0)` |
| 185 | + // Estimated: `110487` |
| 186 | + // Minimum execution time: 13_995_000 picoseconds. |
| 187 | + Weight::from_parts(16_677_389, 110487) |
| 188 | + // Standard Error: 2_606 |
| 189 | + .saturating_add(Weight::from_parts(555_434, 0).saturating_mul(s.into())) |
| 190 | + .saturating_add(T::DbWeight::get().reads(2_u64)) |
| 191 | + .saturating_add(T::DbWeight::get().writes(2_u64)) |
| 192 | + } |
| 193 | + /// Storage: `Scheduler::Lookup` (r:1 w:1) |
| 194 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 195 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 196 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 197 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 198 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 199 | + /// The range of component `s` is `[1, 512]`. |
| 200 | + fn cancel_named(s: u32, ) -> Weight { |
| 201 | + // Proof Size summary in bytes: |
| 202 | + // Measured: `709 + s * (177 ±0)` |
| 203 | + // Estimated: `110487` |
| 204 | + // Minimum execution time: 18_962_000 picoseconds. |
| 205 | + Weight::from_parts(17_610_180, 110487) |
| 206 | + // Standard Error: 2_556 |
| 207 | + .saturating_add(Weight::from_parts(743_494, 0).saturating_mul(s.into())) |
| 208 | + .saturating_add(T::DbWeight::get().reads(2_u64)) |
| 209 | + .saturating_add(T::DbWeight::get().writes(3_u64)) |
| 210 | + } |
| 211 | + /// Storage: `Scheduler::Agenda` (r:1 w:1) |
| 212 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 213 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 214 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 215 | + /// The range of component `s` is `[1, 512]`. |
| 216 | + fn schedule_retry(s: u32, ) -> Weight { |
| 217 | + // Proof Size summary in bytes: |
| 218 | + // Measured: `118` |
| 219 | + // Estimated: `110487` |
| 220 | + // Minimum execution time: 10_303_000 picoseconds. |
| 221 | + Weight::from_parts(12_180_080, 110487) |
| 222 | + // Standard Error: 286 |
| 223 | + .saturating_add(Weight::from_parts(16_437, 0).saturating_mul(s.into())) |
| 224 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 225 | + .saturating_add(T::DbWeight::get().writes(2_u64)) |
| 226 | + } |
| 227 | + /// Storage: `Scheduler::Agenda` (r:1 w:0) |
| 228 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 229 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 230 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 231 | + fn set_retry() -> Weight { |
| 232 | + // Proof Size summary in bytes: |
| 233 | + // Measured: `90705` |
| 234 | + // Estimated: `110487` |
| 235 | + // Minimum execution time: 156_198_000 picoseconds. |
| 236 | + Weight::from_parts(167_250_000, 110487) |
| 237 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 238 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 239 | + } |
| 240 | + /// Storage: `Scheduler::Lookup` (r:1 w:0) |
| 241 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 242 | + /// Storage: `Scheduler::Agenda` (r:1 w:0) |
| 243 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 244 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 245 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 246 | + fn set_retry_named() -> Weight { |
| 247 | + // Proof Size summary in bytes: |
| 248 | + // Measured: `91747` |
| 249 | + // Estimated: `110487` |
| 250 | + // Minimum execution time: 169_418_000 picoseconds. |
| 251 | + Weight::from_parts(176_781_000, 110487) |
| 252 | + .saturating_add(T::DbWeight::get().reads(2_u64)) |
| 253 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 254 | + } |
| 255 | + /// Storage: `Scheduler::Agenda` (r:1 w:0) |
| 256 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 257 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 258 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 259 | + fn cancel_retry() -> Weight { |
| 260 | + // Proof Size summary in bytes: |
| 261 | + // Measured: `90717` |
| 262 | + // Estimated: `110487` |
| 263 | + // Minimum execution time: 154_106_000 picoseconds. |
| 264 | + Weight::from_parts(166_893_000, 110487) |
| 265 | + .saturating_add(T::DbWeight::get().reads(1_u64)) |
| 266 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 267 | + } |
| 268 | + /// Storage: `Scheduler::Lookup` (r:1 w:0) |
| 269 | + /// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`) |
| 270 | + /// Storage: `Scheduler::Agenda` (r:1 w:0) |
| 271 | + /// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(107022), added: 109497, mode: `MaxEncodedLen`) |
| 272 | + /// Storage: `Scheduler::Retries` (r:0 w:1) |
| 273 | + /// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`) |
| 274 | + fn cancel_retry_named() -> Weight { |
| 275 | + // Proof Size summary in bytes: |
| 276 | + // Measured: `91759` |
| 277 | + // Estimated: `110487` |
| 278 | + // Minimum execution time: 167_121_000 picoseconds. |
| 279 | + Weight::from_parts(175_510_000, 110487) |
| 280 | + .saturating_add(T::DbWeight::get().reads(2_u64)) |
| 281 | + .saturating_add(T::DbWeight::get().writes(1_u64)) |
| 282 | + } |
| 283 | +} |
0 commit comments