git.delta.rocks / unique-network / refs/commits / 99048b774c52

difftreelog

source

pallets/maintenance/src/weights.rs4.1 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-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-maintenance16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.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	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)47	fn enable() -> Weight {48		// Proof Size summary in bytes:49		//  Measured:  `0`50		//  Estimated: `0`51		// Minimum execution time: 4_721_000 picoseconds.52		Weight::from_parts(4_918_000, 0)53			.saturating_add(T::DbWeight::get().writes(1_u64))54	}55	/// Storage: Maintenance Enabled (r:0 w:1)56	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)57	fn disable() -> Weight {58		// Proof Size summary in bytes:59		//  Measured:  `0`60		//  Estimated: `0`61		// Minimum execution time: 4_795_000 picoseconds.62		Weight::from_parts(5_006_000, 0)63			.saturating_add(T::DbWeight::get().writes(1_u64))64	}65	/// Storage: Preimage StatusFor (r:1 w:0)66	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)67	/// Storage: Preimage PreimageFor (r:1 w:0)68	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)69	fn execute_preimage() -> Weight {70		// Proof Size summary in bytes:71		//  Measured:  `209`72		//  Estimated: `4199385`73		// Minimum execution time: 11_496_000 picoseconds.74		Weight::from_parts(11_719_000, 4199385)75			.saturating_add(T::DbWeight::get().reads(2_u64))76	}77}7879// For backwards compatibility and tests80impl WeightInfo for () {81	/// Storage: Maintenance Enabled (r:0 w:1)82	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)83	fn enable() -> Weight {84		// Proof Size summary in bytes:85		//  Measured:  `0`86		//  Estimated: `0`87		// Minimum execution time: 4_721_000 picoseconds.88		Weight::from_parts(4_918_000, 0)89			.saturating_add(RocksDbWeight::get().writes(1_u64))90	}91	/// Storage: Maintenance Enabled (r:0 w:1)92	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)93	fn disable() -> Weight {94		// Proof Size summary in bytes:95		//  Measured:  `0`96		//  Estimated: `0`97		// Minimum execution time: 4_795_000 picoseconds.98		Weight::from_parts(5_006_000, 0)99			.saturating_add(RocksDbWeight::get().writes(1_u64))100	}101	/// Storage: Preimage StatusFor (r:1 w:0)102	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)103	/// Storage: Preimage PreimageFor (r:1 w:0)104	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: MaxEncodedLen)105	fn execute_preimage() -> Weight {106		// Proof Size summary in bytes:107		//  Measured:  `209`108		//  Estimated: `4199385`109		// Minimum execution time: 11_496_000 picoseconds.110		Weight::from_parts(11_719_000, 4199385)111			.saturating_add(RocksDbWeight::get().reads(2_u64))112	}113}114