1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_common4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-10-13, STEPS: `50`, REPEAT: `80`, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! HOSTNAME: `hearthstone`, CPU: `AMD Ryzen 9 7950X3D 16-Core Processor`9//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-common17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/common/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_common.35pub trait WeightInfo {36 fn set_collection_properties(b: u32, ) -> Weight;37 fn check_accesslist() -> Weight;38 fn property_writer_load_collection_info() -> Weight;39}4041/// Weights for pallet_common using the Substrate node and recommended hardware.42pub struct SubstrateWeight<T>(PhantomData<T>);43impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {44 /// Storage: `Common::CollectionProperties` (r:1 w:1)45 /// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)46 /// The range of component `b` is `[0, 64]`.47 fn set_collection_properties(b: u32, ) -> Weight {48 // Proof Size summary in bytes:49 // Measured: `298`50 // Estimated: `44457`51 // Minimum execution time: 4_560_000 picoseconds.52 Weight::from_parts(28_643_440, 44457)53 // Standard Error: 28_94154 .saturating_add(Weight::from_parts(18_277_422, 0).saturating_mul(b.into()))55 .saturating_add(T::DbWeight::get().reads(1_u64))56 .saturating_add(T::DbWeight::get().writes(1_u64))57 }58 /// Storage: `Common::Allowlist` (r:1 w:0)59 /// Proof: `Common::Allowlist` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)60 fn check_accesslist() -> Weight {61 // Proof Size summary in bytes:62 // Measured: `373`63 // Estimated: `3535`64 // Minimum execution time: 4_290_000 picoseconds.65 Weight::from_parts(4_460_000, 3535)66 .saturating_add(T::DbWeight::get().reads(1_u64))67 }68 /// Storage: `Common::IsAdmin` (r:1 w:0)69 /// Proof: `Common::IsAdmin` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)70 /// Storage: `Common::CollectionPropertyPermissions` (r:1 w:0)71 /// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)72 fn property_writer_load_collection_info() -> Weight {73 // Proof Size summary in bytes:74 // Measured: `326`75 // Estimated: `20191`76 // Minimum execution time: 6_100_000 picoseconds.77 Weight::from_parts(6_350_000, 20191)78 .saturating_add(T::DbWeight::get().reads(2_u64))79 }80}8182// For backwards compatibility and tests83impl WeightInfo for () {84 /// Storage: `Common::CollectionProperties` (r:1 w:1)85 /// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)86 /// The range of component `b` is `[0, 64]`.87 fn set_collection_properties(b: u32, ) -> Weight {88 // Proof Size summary in bytes:89 // Measured: `298`90 // Estimated: `44457`91 // Minimum execution time: 4_560_000 picoseconds.92 Weight::from_parts(28_643_440, 44457)93 // Standard Error: 28_94194 .saturating_add(Weight::from_parts(18_277_422, 0).saturating_mul(b.into()))95 .saturating_add(RocksDbWeight::get().reads(1_u64))96 .saturating_add(RocksDbWeight::get().writes(1_u64))97 }98 /// Storage: `Common::Allowlist` (r:1 w:0)99 /// Proof: `Common::Allowlist` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)100 fn check_accesslist() -> Weight {101 // Proof Size summary in bytes:102 // Measured: `373`103 // Estimated: `3535`104 // Minimum execution time: 4_290_000 picoseconds.105 Weight::from_parts(4_460_000, 3535)106 .saturating_add(RocksDbWeight::get().reads(1_u64))107 }108 /// Storage: `Common::IsAdmin` (r:1 w:0)109 /// Proof: `Common::IsAdmin` (`max_values`: None, `max_size`: Some(70), added: 2545, mode: `MaxEncodedLen`)110 /// Storage: `Common::CollectionPropertyPermissions` (r:1 w:0)111 /// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)112 fn property_writer_load_collection_info() -> Weight {113 // Proof Size summary in bytes:114 // Measured: `326`115 // Estimated: `20191`116 // Minimum execution time: 6_100_000 picoseconds.117 Weight::from_parts(6_350_000, 20191)118 .saturating_add(RocksDbWeight::get().reads(2_u64))119 }120}121difftreelog
source
pallets/common/src/weights.rs4.8 KiBsourcehistory