git.delta.rocks / unique-network / refs/commits / 5e8916aa3a6c

difftreelog

source

pallets/scheduler/src/weights.rs3.0 KiBsourcehistory
1//! Weights for pallet_scheduler2//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 2.0.03//! DATE: 2020-10-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: [], HIGH RANGE: []4//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 12856// Executed Command:7// target/release/substrate8// benchmark9// --chain=dev10// --steps=5011// --repeat=2012// --pallet=pallet_scheduler13// --extrinsic=*14// --execution=wasm15// --wasm-execution=compiled16// --heap-pages=409617// --output=./frame/scheduler/src/weights.rs18// --template=./.maintain/frame-weight-template.hbs1920#![allow(unused_parens)]21#![allow(unused_imports)]2223use frame_support::{24	traits::Get,25	weights::{Weight, constants::RocksDbWeight},26};27use sp_std::marker::PhantomData;2829/// Weight functions needed for pallet_scheduler.30pub trait WeightInfo {31	fn schedule(s: u32) -> Weight;32	fn cancel(s: u32) -> Weight;33	fn schedule_named(s: u32) -> Weight;34	fn cancel_named(s: u32) -> Weight;35}3637/// Weights for pallet_scheduler using the Substrate node and recommended hardware.38pub struct SubstrateWeight<T>(PhantomData<T>);39impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {40	fn schedule(s: u32) -> Weight {41		35_029_000_u6442			.saturating_add(77_000_u64.saturating_mul(s as Weight))43			.saturating_add(T::DbWeight::get().reads(1_u64))44			.saturating_add(T::DbWeight::get().writes(1_u64))45	}46	fn cancel(s: u32) -> Weight {47		31_419_000_u6448			.saturating_add(4_015_000_u64.saturating_mul(s as Weight))49			.saturating_add(T::DbWeight::get().reads(1_u64))50			.saturating_add(T::DbWeight::get().writes(2_u64))51	}52	fn schedule_named(s: u32) -> Weight {53		44_752_000_u6454			.saturating_add(123_000_u64.saturating_mul(s as Weight))55			.saturating_add(T::DbWeight::get().reads(2_u64))56			.saturating_add(T::DbWeight::get().writes(2_u64))57	}58	fn cancel_named(s: u32) -> Weight {59		35_712_000_u6460			.saturating_add(4_008_000_u64.saturating_mul(s as Weight))61			.saturating_add(T::DbWeight::get().reads(2_u64))62			.saturating_add(T::DbWeight::get().writes(2_u64))63	}64}6566// For backwards compatibility and tests67impl WeightInfo for () {68	fn schedule(s: u32) -> Weight {69		35_029_000_u6470			.saturating_add(77_000_u64.saturating_mul(s as Weight))71			.saturating_add(RocksDbWeight::get().reads(1_u64))72			.saturating_add(RocksDbWeight::get().writes(1_u64))73	}74	fn cancel(s: u32) -> Weight {75		31_419_000_u6476			.saturating_add(4_015_000_u64.saturating_mul(s as Weight))77			.saturating_add(RocksDbWeight::get().reads(1_u64))78			.saturating_add(RocksDbWeight::get().writes(2_u64))79	}80	fn schedule_named(s: u32) -> Weight {81		44_752_000_u6482			.saturating_add(123_000_u64.saturating_mul(s as Weight))83			.saturating_add(RocksDbWeight::get().reads(2_u64))84			.saturating_add(RocksDbWeight::get().writes(2_u64))85	}86	fn cancel_named(s: u32) -> Weight {87		35_712_000_u6488			.saturating_add(4_008_000_u64.saturating_mul(s as Weight))89			.saturating_add(RocksDbWeight::get().reads(2_u64))90			.saturating_add(RocksDbWeight::get().writes(2_u64))91	}92}