//! Autogenerated weights for `pallet_shield` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0 //! DATE: 2026-04-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` //! WORST CASE MAP SIZE: `1000000` //! HOSTNAME: `runnervm727z3`, CPU: `AMD EPYC 9V74 80-Core Processor` //! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: `1024` // Executed Command: // /home/runner/work/subtensor/subtensor/target/production/node-subtensor // benchmark // pallet // --runtime=/home/runner/work/subtensor/subtensor/target/production/wbuild/node-subtensor-runtime/node_subtensor_runtime.compact.compressed.wasm // --genesis-builder=runtime // --genesis-builder-preset=benchmark // --wasm-execution=compiled // --pallet=pallet_shield // --extrinsic=* // --steps=50 // --repeat=20 // --no-storage-info // --no-min-squares // --no-median-slopes // --output=/tmp/tmp.eBEZWxdqPW // --template=/home/runner/work/subtensor/subtensor/.maintain/frame-weight-template.hbs #![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] #![allow(missing_docs)] #![allow(dead_code)] use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; use core::marker::PhantomData; /// Weight functions needed for `pallet_shield`. pub trait WeightInfo { fn announce_next_key() -> Weight; fn submit_encrypted() -> Weight; fn set_max_pending_extrinsics_number() -> Weight; fn set_on_initialize_weight() -> Weight; fn set_stored_extrinsic_lifetime() -> Weight; fn set_max_extrinsic_weight() -> Weight; } /// Weights for `pallet_shield` using the Substrate node and recommended hardware. pub struct SubstrateWeight(PhantomData); impl WeightInfo for SubstrateWeight { /// Storage: `Aura::Authorities` (r:1 w:0) /// Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(1025), added: 1520, mode: `MaxEncodedLen`) /// Storage: `MevShield::PendingKey` (r:1 w:1) /// Proof: `MevShield::PendingKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::NextKey` (r:1 w:1) /// Proof: `MevShield::NextKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::AuthorKeys` (r:1 w:1) /// Proof: `MevShield::AuthorKeys` (`max_values`: None, `max_size`: Some(2090), added: 4565, mode: `MaxEncodedLen`) /// Storage: `MevShield::CurrentKey` (r:0 w:1) /// Proof: `MevShield::CurrentKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::NextKeyExpiresAt` (r:0 w:1) /// Proof: `MevShield::NextKeyExpiresAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `MevShield::PendingKeyExpiresAt` (r:0 w:1) /// Proof: `MevShield::PendingKeyExpiresAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn announce_next_key() -> Weight { // Proof Size summary in bytes: // Measured: `3877` // Estimated: `5555` // Minimum execution time: 32_118_000 picoseconds. Weight::from_parts(33_661_000, 5555) .saturating_add(T::DbWeight::get().reads(4_u64)) .saturating_add(T::DbWeight::get().writes(6_u64)) } fn submit_encrypted() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 204_519_000 picoseconds. Weight::from_parts(207_223_000, 0) } /// Storage: `MevShield::MaxPendingExtrinsicsLimit` (r:0 w:1) /// Proof: `MevShield::MaxPendingExtrinsicsLimit` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_max_pending_extrinsics_number() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 3_865_000 picoseconds. Weight::from_parts(4_206_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `MevShield::OnInitializeWeight` (r:0 w:1) /// Proof: `MevShield::OnInitializeWeight` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set_on_initialize_weight() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 4_066_000 picoseconds. Weight::from_parts(4_327_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `MevShield::ExtrinsicLifetime` (r:0 w:1) /// Proof: `MevShield::ExtrinsicLifetime` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_stored_extrinsic_lifetime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 3_906_000 picoseconds. Weight::from_parts(4_116_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } /// Storage: `MevShield::MaxExtrinsicWeight` (r:0 w:1) /// Proof: `MevShield::MaxExtrinsicWeight` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set_max_extrinsic_weight() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 4_037_000 picoseconds. Weight::from_parts(4_227_000, 0) .saturating_add(T::DbWeight::get().writes(1_u64)) } } // For backwards compatibility and tests. impl WeightInfo for () { /// Storage: `Aura::Authorities` (r:1 w:0) /// Proof: `Aura::Authorities` (`max_values`: Some(1), `max_size`: Some(1025), added: 1520, mode: `MaxEncodedLen`) /// Storage: `MevShield::PendingKey` (r:1 w:1) /// Proof: `MevShield::PendingKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::NextKey` (r:1 w:1) /// Proof: `MevShield::NextKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::AuthorKeys` (r:1 w:1) /// Proof: `MevShield::AuthorKeys` (`max_values`: None, `max_size`: Some(2090), added: 4565, mode: `MaxEncodedLen`) /// Storage: `MevShield::CurrentKey` (r:0 w:1) /// Proof: `MevShield::CurrentKey` (`max_values`: Some(1), `max_size`: Some(2050), added: 2545, mode: `MaxEncodedLen`) /// Storage: `MevShield::NextKeyExpiresAt` (r:0 w:1) /// Proof: `MevShield::NextKeyExpiresAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) /// Storage: `MevShield::PendingKeyExpiresAt` (r:0 w:1) /// Proof: `MevShield::PendingKeyExpiresAt` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn announce_next_key() -> Weight { // Proof Size summary in bytes: // Measured: `3877` // Estimated: `5555` // Minimum execution time: 32_118_000 picoseconds. Weight::from_parts(33_661_000, 5555) .saturating_add(RocksDbWeight::get().reads(4_u64)) .saturating_add(RocksDbWeight::get().writes(6_u64)) } fn submit_encrypted() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 204_519_000 picoseconds. Weight::from_parts(207_223_000, 0) } /// Storage: `MevShield::MaxPendingExtrinsicsLimit` (r:0 w:1) /// Proof: `MevShield::MaxPendingExtrinsicsLimit` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_max_pending_extrinsics_number() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 3_865_000 picoseconds. Weight::from_parts(4_206_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `MevShield::OnInitializeWeight` (r:0 w:1) /// Proof: `MevShield::OnInitializeWeight` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set_on_initialize_weight() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 4_066_000 picoseconds. Weight::from_parts(4_327_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `MevShield::ExtrinsicLifetime` (r:0 w:1) /// Proof: `MevShield::ExtrinsicLifetime` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`) fn set_stored_extrinsic_lifetime() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 3_906_000 picoseconds. Weight::from_parts(4_116_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } /// Storage: `MevShield::MaxExtrinsicWeight` (r:0 w:1) /// Proof: `MevShield::MaxExtrinsicWeight` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`) fn set_max_extrinsic_weight() -> Weight { // Proof Size summary in bytes: // Measured: `0` // Estimated: `0` // Minimum execution time: 4_037_000 picoseconds. Weight::from_parts(4_227_000, 0) .saturating_add(RocksDbWeight::get().writes(1_u64)) } }