git.delta.rocks / unique-network / refs/commits / 2b9417a2a3f5

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 29.0.06//! DATE: 2023-11-29, 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: , 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=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}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: 4_993_000 picoseconds.50		Weight::from_parts(5_195_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: 4_917_000 picoseconds.60		Weight::from_parts(5_095_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: 4_993_000 picoseconds.74		Weight::from_parts(5_195_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: 4_917_000 picoseconds.84		Weight::from_parts(5_095_000, 0)85			.saturating_add(RocksDbWeight::get().writes(1_u64))86	}87}88