git.delta.rocks / unique-network / refs/commits / 155033b72fcf

difftreelog

source

pallets/maintenance/src/weights.rs2.5 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_maintenance4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-02-22, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 102489// Executed Command:10// target/release/unique-collator11// benchmark12// pallet13// --pallet14// pallet-maintenance15// --wasm-execution16// compiled17// --extrinsic18// *19// --template20// .maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/maintenance/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_maintenance.36pub trait WeightInfo {37	fn enable() -> Weight;38	fn disable() -> Weight;39	fn execute_preimage() -> Weight;40}4142/// Weights for pallet_maintenance using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45	// Storage: Maintenance Enabled (r:0 w:1)46	fn enable() -> Weight {47		Weight::from_ref_time(12_866_000 as u64)48			.saturating_add(T::DbWeight::get().writes(1 as u64))49	}50	// Storage: Maintenance Enabled (r:0 w:1)51	fn disable() -> Weight {52		Weight::from_ref_time(12_777_000 as u64)53			.saturating_add(T::DbWeight::get().writes(1 as u64))54	}55	// Storage: Preimage StatusFor (r:1 w:0)56	// Storage: Preimage PreimageFor (r:1 w:0)57	fn execute_preimage() -> Weight {58		Weight::from_ref_time(12_228_000 as u64)59			.saturating_add(T::DbWeight::get().reads(2 as u64))60	}61}6263// For backwards compatibility and tests64impl WeightInfo for () {65	// Storage: Maintenance Enabled (r:0 w:1)66	fn enable() -> Weight {67		Weight::from_ref_time(12_866_000 as u64)68			.saturating_add(RocksDbWeight::get().writes(1 as u64))69	}70	// Storage: Maintenance Enabled (r:0 w:1)71	fn disable() -> Weight {72		Weight::from_ref_time(12_777_000 as u64)73			.saturating_add(RocksDbWeight::get().writes(1 as u64))74	}75	// Storage: Preimage StatusFor (r:1 w:0)76	// Storage: Preimage PreimageFor (r:1 w:0)77	fn execute_preimage() -> Weight {78		Weight::from_ref_time(12_228_000 as u64)79			.saturating_add(RocksDbWeight::get().reads(2 as u64))80	}81}