Files
pezkuwi-subxt/polkadot/runtime/rococo/src/weights/pallet_scheduler.rs
T
Mara Robin B 8ff50d0fa7 update weights (0.9.37) (#6546) (#6555)
* kusama: update weights

* polkadot: update weights

* westend: update weights

* rococo: update weights
2023-01-19 13:43:19 +00:00

141 lines
5.3 KiB
Rust

// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.
// Polkadot 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.
// Polkadot 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 Polkadot. If not, see <http://www.gnu.org/licenses/>.
//! Autogenerated weights for `pallet_scheduler`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-01-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 1024
// Executed Command:
// ./target/production/polkadot
// benchmark
// pallet
// --chain=rococo-dev
// --steps=50
// --repeat=20
// --pallet=pallet_scheduler
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --header=./file_header.txt
// --output=./runtime/rococo/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::Weight};
use sp_std::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)
fn service_agendas_base() -> Weight {
// Minimum execution time: 5_153 nanoseconds.
Weight::from_ref_time(5_309_000)
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
// Storage: Scheduler Agenda (r:1 w:1)
/// The range of component `s` is `[0, 50]`.
fn service_agenda_base(s: u32, ) -> Weight {
// Minimum execution time: 4_547 nanoseconds.
Weight::from_ref_time(8_293_568)
// Standard Error: 2_347
.saturating_add(Weight::from_ref_time(572_311).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
fn service_task_base() -> Weight {
// Minimum execution time: 9_542 nanoseconds.
Weight::from_ref_time(9_695_000)
}
// Storage: Preimage PreimageFor (r:1 w:1)
// Storage: Preimage StatusFor (r:1 w:1)
/// The range of component `s` is `[128, 4194304]`.
fn service_task_fetched(s: u32, ) -> Weight {
// Minimum execution time: 21_454 nanoseconds.
Weight::from_ref_time(21_805_000)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(1_248).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Scheduler Lookup (r:0 w:1)
fn service_task_named() -> Weight {
// Minimum execution time: 10_528 nanoseconds.
Weight::from_ref_time(10_785_000)
.saturating_add(T::DbWeight::get().writes(1))
}
fn service_task_periodic() -> Weight {
// Minimum execution time: 9_572 nanoseconds.
Weight::from_ref_time(9_830_000)
}
fn execute_dispatch_signed() -> Weight {
// Minimum execution time: 4_504 nanoseconds.
Weight::from_ref_time(4_623_000)
}
fn execute_dispatch_unsigned() -> Weight {
// Minimum execution time: 4_586 nanoseconds.
Weight::from_ref_time(4_722_000)
}
// Storage: Scheduler Agenda (r:1 w:1)
/// The range of component `s` is `[0, 49]`.
fn schedule(s: u32, ) -> Weight {
// Minimum execution time: 18_160 nanoseconds.
Weight::from_ref_time(22_453_261)
// Standard Error: 2_456
.saturating_add(Weight::from_ref_time(586_922).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)
// Storage: Scheduler Lookup (r:0 w:1)
/// The range of component `s` is `[1, 50]`.
fn cancel(s: u32, ) -> Weight {
// Minimum execution time: 21_924 nanoseconds.
Weight::from_ref_time(23_756_474)
// Standard Error: 5_487
.saturating_add(Weight::from_ref_time(962_451).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(2))
}
// Storage: Scheduler Lookup (r:1 w:1)
// Storage: Scheduler Agenda (r:1 w:1)
/// The range of component `s` is `[0, 49]`.
fn schedule_named(s: u32, ) -> Weight {
// Minimum execution time: 19_917 nanoseconds.
Weight::from_ref_time(25_622_329)
// Standard Error: 3_534
.saturating_add(Weight::from_ref_time(623_072).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)
// Storage: Scheduler Agenda (r:1 w:1)
/// The range of component `s` is `[1, 50]`.
fn cancel_named(s: u32, ) -> Weight {
// Minimum execution time: 22_935 nanoseconds.
Weight::from_ref_time(25_370_084)
// Standard Error: 2_841
.saturating_add(Weight::from_ref_time(980_879).saturating_mul(s.into()))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(2))
}
}