287 lines
13 KiB
Rust
287 lines
13 KiB
Rust
// This file is part of Ghost Network.
|
|
|
|
// Ghost Network is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
// (at your option) any later version.
|
|
|
|
// Ghost Network is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
// along with Ghost Network. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
//! Autogenerated weights for `pallet_scheduler`
|
|
//!
|
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
|
|
//! DATE: 2024-08-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
|
//! WORST CASE MAP SIZE: `1000000`
|
|
//! HOSTNAME: `ghostown`, CPU: `Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz`
|
|
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("casper-dev")`, DB CACHE: 1024
|
|
|
|
// Executed Command:
|
|
// ./target/release/ghost
|
|
// benchmark
|
|
// pallet
|
|
// --chain=casper-dev
|
|
// --steps=50
|
|
// --repeat=20
|
|
// --pallet=pallet_scheduler
|
|
// --extrinsic=*
|
|
// --wasm-execution=compiled
|
|
// --heap-pages=4096
|
|
// --header=./file_header.txt
|
|
// --output=./runtime/casper/src/weights/pallet_scheduler.rs
|
|
|
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
|
#![allow(unused_parens)]
|
|
#![allow(unused_imports)]
|
|
#![allow(missing_docs)]
|
|
|
|
use frame_support::{traits::Get, weights::Weight};
|
|
use core::marker::PhantomData;
|
|
|
|
/// Weight functions for `pallet_scheduler`.
|
|
pub struct WeightInfo<T>(PhantomData<T>);
|
|
impl<T: frame_system::Config> pallet_scheduler::WeightInfo for WeightInfo<T> {
|
|
/// Storage: `Scheduler::IncompleteSince` (r:1 w:1)
|
|
/// Proof: `Scheduler::IncompleteSince` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
|
|
fn service_agendas_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `30`
|
|
// Estimated: `1489`
|
|
// Minimum execution time: 14_819_000 picoseconds.
|
|
Weight::from_parts(15_186_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 1489))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 50]`.
|
|
fn service_agenda_base(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 18_503_000 picoseconds.
|
|
Weight::from_parts(27_515_314, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 4_293
|
|
.saturating_add(Weight::from_parts(1_235_722, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
fn service_task_base() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 14_076_000 picoseconds.
|
|
Weight::from_parts(14_272_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
/// Storage: `Preimage::PreimageFor` (r:1 w:1)
|
|
/// Proof: `Preimage::PreimageFor` (`max_values`: None, `max_size`: Some(4194344), added: 4196819, mode: `Measured`)
|
|
/// Storage: `Preimage::StatusFor` (r:1 w:0)
|
|
/// Proof: `Preimage::StatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// Storage: `Preimage::RequestStatusFor` (r:1 w:1)
|
|
/// Proof: `Preimage::RequestStatusFor` (`max_values`: None, `max_size`: Some(91), added: 2566, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[128, 4194304]`.
|
|
fn service_task_fetched(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `213 + s * (1 ±0)`
|
|
// Estimated: `3678 + s * (1 ±0)`
|
|
// Minimum execution time: 69_682_000 picoseconds.
|
|
Weight::from_parts(70_459_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 3678))
|
|
// Standard Error: 25
|
|
.saturating_add(Weight::from_parts(3_260, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(3))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
.saturating_add(Weight::from_parts(0, 1).saturating_mul(s.into()))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:0 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
fn service_task_named() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 20_275_000 picoseconds.
|
|
Weight::from_parts(20_772_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
fn service_task_periodic() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 14_080_000 picoseconds.
|
|
Weight::from_parts(14_259_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
fn execute_dispatch_signed() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 11_075_000 picoseconds.
|
|
Weight::from_parts(11_416_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
fn execute_dispatch_unsigned() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `0`
|
|
// Estimated: `0`
|
|
// Minimum execution time: 10_983_000 picoseconds.
|
|
Weight::from_parts(11_168_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 0))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 49]`.
|
|
fn schedule(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 46_875_000 picoseconds.
|
|
Weight::from_parts(54_427_669, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 5_759
|
|
.saturating_add(Weight::from_parts(1_282_517, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Lookup` (r:0 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[1, 50]`.
|
|
fn cancel(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `77 + s * (177 ±0)`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 66_317_000 picoseconds.
|
|
Weight::from_parts(64_165_317, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 6_122
|
|
.saturating_add(Weight::from_parts(1_989_423, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[0, 49]`.
|
|
fn schedule_named(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `254 + s * (185 ±0)`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 58_571_000 picoseconds.
|
|
Weight::from_parts(70_239_408, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 7_226
|
|
.saturating_add(Weight::from_parts(1_332_263, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:1)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[1, 50]`.
|
|
fn cancel_named(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `280 + s * (185 ±0)`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 73_281_000 picoseconds.
|
|
Weight::from_parts(73_250_179, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 6_858
|
|
.saturating_add(Weight::from_parts(2_049_531, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(3))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:1)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
/// The range of component `s` is `[1, 50]`.
|
|
fn schedule_retry(s: u32, ) -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `117`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 40_949_000 picoseconds.
|
|
Weight::from_parts(42_172_132, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
// Standard Error: 3_444
|
|
.saturating_add(Weight::from_parts(44_459, 0).saturating_mul(s.into()))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(2))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn set_retry() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `8927`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 94_947_000 picoseconds.
|
|
Weight::from_parts(96_426_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:0)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn set_retry_named() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `9605`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 111_321_000 picoseconds.
|
|
Weight::from_parts(112_931_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn cancel_retry() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `8939`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 91_427_000 picoseconds.
|
|
Weight::from_parts(92_904_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
.saturating_add(T::DbWeight::get().reads(1))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
/// Storage: `Scheduler::Lookup` (r:1 w:0)
|
|
/// Proof: `Scheduler::Lookup` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Agenda` (r:1 w:0)
|
|
/// Proof: `Scheduler::Agenda` (`max_values`: None, `max_size`: Some(10463), added: 12938, mode: `MaxEncodedLen`)
|
|
/// Storage: `Scheduler::Retries` (r:0 w:1)
|
|
/// Proof: `Scheduler::Retries` (`max_values`: None, `max_size`: Some(30), added: 2505, mode: `MaxEncodedLen`)
|
|
fn cancel_retry_named() -> Weight {
|
|
// Proof Size summary in bytes:
|
|
// Measured: `9617`
|
|
// Estimated: `13928`
|
|
// Minimum execution time: 108_471_000 picoseconds.
|
|
Weight::from_parts(110_205_000, 0)
|
|
.saturating_add(Weight::from_parts(0, 13928))
|
|
.saturating_add(T::DbWeight::get().reads(2))
|
|
.saturating_add(T::DbWeight::get().writes(1))
|
|
}
|
|
}
|