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-05, 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: None, 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 delete_collection_properties(b: u32, ) -> Weight;38 fn check_accesslist() -> Weight;39 fn property_writer_load_collection_info() -> Weight;40}4142/// Weights for pallet_common using the Substrate node and recommended hardware.43pub struct SubstrateWeight<T>(PhantomData<T>);44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {45 /// Storage: Common CollectionProperties (r:1 w:1)46 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)47 /// The range of component `b` is `[0, 64]`.48 fn set_collection_properties(b: u32, ) -> Weight {49 // Proof Size summary in bytes:50 // Measured: `298`51 // Estimated: `44457`52 // Minimum execution time: 2_840_000 picoseconds.53 Weight::from_parts(1_988_405, 44457)54 // Standard Error: 7_83455 .saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into()))56 .saturating_add(T::DbWeight::get().reads(1_u64))57 .saturating_add(T::DbWeight::get().writes(1_u64))58 }59 /// Storage: Common CollectionProperties (r:1 w:1)60 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)61 /// The range of component `b` is `[0, 64]`.62 fn delete_collection_properties(b: u32, ) -> Weight {63 // Proof Size summary in bytes:64 // Measured: `303 + b * (33030 ±0)`65 // Estimated: `44457`66 // Minimum execution time: 2_770_000 picoseconds.67 Weight::from_parts(2_940_000, 44457)68 // Standard Error: 30_68669 .saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into()))70 .saturating_add(T::DbWeight::get().reads(1_u64))71 .saturating_add(T::DbWeight::get().writes(1_u64))72 }73 /// Storage: Common Allowlist (r:1 w:0)74 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)75 fn check_accesslist() -> Weight {76 // Proof Size summary in bytes:77 // Measured: `373`78 // Estimated: `3535`79 // Minimum execution time: 2_830_000 picoseconds.80 Weight::from_parts(2_950_000, 3535)81 .saturating_add(T::DbWeight::get().reads(1_u64))82 }83 /// Storage: Common IsAdmin (r:1 w:0)84 /// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)85 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)86 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)87 fn property_writer_load_collection_info() -> Weight {88 // Proof Size summary in bytes:89 // Measured: `326`90 // Estimated: `20191`91 // Minimum execution time: 3_970_000 picoseconds.92 Weight::from_parts(4_140_000, 20191)93 .saturating_add(T::DbWeight::get().reads(2_u64))94 }95}9697// For backwards compatibility and tests98impl WeightInfo for () {99 /// Storage: Common CollectionProperties (r:1 w:1)100 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)101 /// The range of component `b` is `[0, 64]`.102 fn set_collection_properties(b: u32, ) -> Weight {103 // Proof Size summary in bytes:104 // Measured: `298`105 // Estimated: `44457`106 // Minimum execution time: 2_840_000 picoseconds.107 Weight::from_parts(1_988_405, 44457)108 // Standard Error: 7_834109 .saturating_add(Weight::from_parts(3_053_965, 0).saturating_mul(b.into()))110 .saturating_add(RocksDbWeight::get().reads(1_u64))111 .saturating_add(RocksDbWeight::get().writes(1_u64))112 }113 /// Storage: Common CollectionProperties (r:1 w:1)114 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)115 /// The range of component `b` is `[0, 64]`.116 fn delete_collection_properties(b: u32, ) -> Weight {117 // Proof Size summary in bytes:118 // Measured: `303 + b * (33030 ±0)`119 // Estimated: `44457`120 // Minimum execution time: 2_770_000 picoseconds.121 Weight::from_parts(2_940_000, 44457)122 // Standard Error: 30_686123 .saturating_add(Weight::from_parts(9_801_835, 0).saturating_mul(b.into()))124 .saturating_add(RocksDbWeight::get().reads(1_u64))125 .saturating_add(RocksDbWeight::get().writes(1_u64))126 }127 /// Storage: Common Allowlist (r:1 w:0)128 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)129 fn check_accesslist() -> Weight {130 // Proof Size summary in bytes:131 // Measured: `373`132 // Estimated: `3535`133 // Minimum execution time: 2_830_000 picoseconds.134 Weight::from_parts(2_950_000, 3535)135 .saturating_add(RocksDbWeight::get().reads(1_u64))136 }137 /// Storage: Common IsAdmin (r:1 w:0)138 /// Proof: Common IsAdmin (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)139 /// Storage: Common CollectionPropertyPermissions (r:1 w:0)140 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)141 fn property_writer_load_collection_info() -> Weight {142 // Proof Size summary in bytes:143 // Measured: `326`144 // Estimated: `20191`145 // Minimum execution time: 3_970_000 picoseconds.146 Weight::from_parts(4_140_000, 20191)147 .saturating_add(RocksDbWeight::get().reads(2_u64))148 }149}150difftreelog
source
pallets/common/src/weights.rs6.1 KiBsourcehistory