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

difftreelog

source

pallets/maintenance/src/weights.rs3.0 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-09-26, STEPS: `50`, REPEAT: `400`, 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/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-maintenance17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=40024// --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}3940/// Weights for pallet_maintenance using the Substrate node and recommended hardware.41pub struct SubstrateWeight<T>(PhantomData<T>);42impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {43	/// Storage: Maintenance Enabled (r:0 w:1)44	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)45	fn enable() -> Weight {46		// Proof Size summary in bytes:47		//  Measured:  `0`48		//  Estimated: `0`49		// Minimum execution time: 3_015_000 picoseconds.50		Weight::from_parts(3_184_000, 0)51			.saturating_add(T::DbWeight::get().writes(1_u64))52	}53	/// Storage: Maintenance Enabled (r:0 w:1)54	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)55	fn disable() -> Weight {56		// Proof Size summary in bytes:57		//  Measured:  `0`58		//  Estimated: `0`59		// Minimum execution time: 2_976_000 picoseconds.60		Weight::from_parts(3_111_000, 0)61			.saturating_add(T::DbWeight::get().writes(1_u64))62	}63}6465// For backwards compatibility and tests66impl WeightInfo for () {67	/// Storage: Maintenance Enabled (r:0 w:1)68	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)69	fn enable() -> Weight {70		// Proof Size summary in bytes:71		//  Measured:  `0`72		//  Estimated: `0`73		// Minimum execution time: 3_015_000 picoseconds.74		Weight::from_parts(3_184_000, 0)75			.saturating_add(RocksDbWeight::get().writes(1_u64))76	}77	/// Storage: Maintenance Enabled (r:0 w:1)78	/// Proof: Maintenance Enabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen)79	fn disable() -> Weight {80		// Proof Size summary in bytes:81		//  Measured:  `0`82		//  Estimated: `0`83		// Minimum execution time: 2_976_000 picoseconds.84		Weight::from_parts(3_111_000, 0)85			.saturating_add(RocksDbWeight::get().writes(1_u64))86	}87}88