git.delta.rocks / unique-network / refs/commits / dc6f0e24d331

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-04-20, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `bench-host`, CPU: `Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz`9//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// target/release/unique-collator13// benchmark14// pallet15// --pallet16// pallet-maintenance17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/maintenance/src/weights.rs2627#![cfg_attr(rustfmt, rustfmt_skip)]28#![allow(unused_parens)]29#![allow(unused_imports)]3031use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};32use sp_std::marker::PhantomData;3334/// Weight functions needed for pallet_maintenance.35pub trait WeightInfo {36	fn enable() -> Weight;37	fn disable() -> Weight;38	fn execute_preimage() -> Weight;39}4041/// Weights for pallet_maintenance using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44	/// Storage: Maintenance Enabled (r:0 w:1)45	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)46	fn enable() -> Weight {47		// Proof Size summary in bytes:48		//  Measured:  `0`49		//  Estimated: `0`50		// Minimum execution time: 4_407_000 picoseconds.51		Weight::from_parts(4_556_000, 0)52			.saturating_add(T::DbWeight::get().writes(1_u64))53	}54	/// Storage: Maintenance Enabled (r:0 w:1)55	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)56	fn disable() -> Weight {57		// Proof Size summary in bytes:58		//  Measured:  `0`59		//  Estimated: `0`60		// Minimum execution time: 5_868_000 picoseconds.61		Weight::from_parts(6_100_000, 0)62			.saturating_add(T::DbWeight::get().writes(1_u64))63	}64	/// Storage: Preimage StatusFor (r:1 w:0)65	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)66	/// Storage: Preimage PreimageFor (r:1 w:0)67	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)68	fn execute_preimage() -> Weight {69		// Proof Size summary in bytes:70		//  Measured:  `209`71		//  Estimated: `7230`72		// Minimum execution time: 14_046_000 picoseconds.73		Weight::from_parts(14_419_000, 7230)74			.saturating_add(T::DbWeight::get().reads(2_u64))75	}76}7778// For backwards compatibility and tests79impl WeightInfo for () {80	/// Storage: Maintenance Enabled (r:0 w:1)81	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)82	fn enable() -> Weight {83		// Proof Size summary in bytes:84		//  Measured:  `0`85		//  Estimated: `0`86		// Minimum execution time: 4_407_000 picoseconds.87		Weight::from_parts(4_556_000, 0)88			.saturating_add(RocksDbWeight::get().writes(1_u64))89	}90	/// Storage: Maintenance Enabled (r:0 w:1)91	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)92	fn disable() -> Weight {93		// Proof Size summary in bytes:94		//  Measured:  `0`95		//  Estimated: `0`96		// Minimum execution time: 5_868_000 picoseconds.97		Weight::from_parts(6_100_000, 0)98			.saturating_add(RocksDbWeight::get().writes(1_u64))99	}100	/// Storage: Preimage StatusFor (r:1 w:0)101	/// Proof: Preimage StatusFor (max_values: None, max_size: Some(91), added: 2566, mode: MaxEncodedLen)102	/// Storage: Preimage PreimageFor (r:1 w:0)103	/// Proof: Preimage PreimageFor (max_values: None, max_size: Some(4194344), added: 4196819, mode: Measured)104	fn execute_preimage() -> Weight {105		// Proof Size summary in bytes:106		//  Measured:  `209`107		//  Estimated: `7230`108		// Minimum execution time: 14_046_000 picoseconds.109		Weight::from_parts(14_419_000, 7230)110			.saturating_add(RocksDbWeight::get().reads(2_u64))111	}112}113