//! Autogenerated weights for `pallet_commitments` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev //! DATE: 2023-12-08, STEPS: `2`, REPEAT: `1`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `rustys-mbp.lan`, CPU: `` //! WASM-EXECUTION: `Compiled`, CHAIN: `Some("local")`, DB CACHE: `1024` // Executed Command: // ./target/release/node-subtensor // benchmark // pallet // --chain=local // --execution=wasm // --wasm-execution=compiled // --pallet=pallet_commitments // --extrinsic=* // --output=pallets/commitments/src/weights.rs // --template=./.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; /// Weight functions needed for `pallet_commitments`. pub trait WeightInfo { fn set_commitment() -> Weight; fn set_max_space() -> Weight; fn reveal_timelocked_commitments() -> Weight; } /// Weights for `pallet_commitments` using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { /// Storage: `Commitments::UsedSpaceOf` (r:1 w:1) /// Proof: `Commitments::UsedSpaceOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetEpochIndex` (r:1 w:0) /// Proof: `SubtensorModule::SubnetEpochIndex` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Commitments::MaxSpace` (r:1 w:0) /// Proof: `Commitments::MaxSpace` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Commitments::CommitmentOf` (r:1 w:1) /// Proof: `Commitments::CommitmentOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Commitments::TimelockedIndex` (r:1 w:1) /// Proof: `Commitments::TimelockedIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Commitments::LastCommitment` (r:0 w:1) /// Proof: `Commitments::LastCommitment` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_commitment() -> Weight { // Proof Size summary in bytes: // Measured: `504` // Estimated: `3969` // Minimum execution time: 25_938_000 picoseconds. Weight::from_parts(26_900_000, 3969) .saturating_add(T::DbWeight::get().reads(5_u64)) .saturating_add(T::DbWeight::get().writes(4_u64)) } fn set_max_space() -> Weight { Weight::from_parts(2_856_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `Skipped::Metadata` (r:0 w:0) /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reveal_timelocked_commitments() -> Weight { // Proof Size summary in bytes: // Measured: `635` // Estimated: `635` // Minimum execution time: 16_019_697_000 picoseconds. Weight::from_parts(16_052_505_000, 635) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(3_u64)) } } // For backwards compatibility and tests. impl WeightInfo for () { /// Storage: `Commitments::UsedSpaceOf` (r:1 w:1) /// Proof: `Commitments::UsedSpaceOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `SubtensorModule::SubnetEpochIndex` (r:1 w:0) /// Proof: `SubtensorModule::SubnetEpochIndex` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Commitments::MaxSpace` (r:1 w:0) /// Proof: `Commitments::MaxSpace` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Commitments::CommitmentOf` (r:1 w:1) /// Proof: `Commitments::CommitmentOf` (`max_values`: None, `max_size`: None, mode: `Measured`) /// Storage: `Commitments::TimelockedIndex` (r:1 w:1) /// Proof: `Commitments::TimelockedIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`) /// Storage: `Commitments::LastCommitment` (r:0 w:1) /// Proof: `Commitments::LastCommitment` (`max_values`: None, `max_size`: None, mode: `Measured`) fn set_commitment() -> Weight { // Proof Size summary in bytes: // Measured: `504` // Estimated: `3969` // Minimum execution time: 25_938_000 picoseconds. Weight::from_parts(26_900_000, 3969) .saturating_add(RocksDbWeight::get().reads(5_u64)) .saturating_add(RocksDbWeight::get().writes(4_u64)) } fn set_max_space() -> Weight { Weight::from_parts(2_856_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `Skipped::Metadata` (r:0 w:0) /// Proof: `Skipped::Metadata` (`max_values`: None, `max_size`: None, mode: `Measured`) fn reveal_timelocked_commitments() -> Weight { // Proof Size summary in bytes: // Measured: `635` // Estimated: `635` // Minimum execution time: 16_019_697_000 picoseconds. Weight::from_parts(16_052_505_000, 635) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(3_u64)) } }