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-09-26, STEPS: `50`, REPEAT: `400`, 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: 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=40024// --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}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_862_000 picoseconds.52 Weight::from_parts(5_003_000, 44457)53 // Standard Error: 3_88954 .saturating_add(Weight::from_parts(4_918_195, 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 CollectionProperties (r:1 w:1)59 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)60 /// The range of component `b` is `[0, 64]`.61 fn delete_collection_properties(b: u32, ) -> Weight {62 // Proof Size summary in bytes:63 // Measured: `303 + b * (33030 ±0)`64 // Estimated: `44457`65 // Minimum execution time: 4_739_000 picoseconds.66 Weight::from_parts(4_887_000, 44457)67 // Standard Error: 37_95168 .saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into()))69 .saturating_add(T::DbWeight::get().reads(1_u64))70 .saturating_add(T::DbWeight::get().writes(1_u64))71 }72 /// Storage: Common Allowlist (r:1 w:0)73 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)74 fn check_accesslist() -> Weight {75 // Proof Size summary in bytes:76 // Measured: `373`77 // Estimated: `3535`78 // Minimum execution time: 4_183_000 picoseconds.79 Weight::from_parts(4_391_000, 3535)80 .saturating_add(T::DbWeight::get().reads(1_u64))81 }82}8384// For backwards compatibility and tests85impl WeightInfo for () {86 /// Storage: Common CollectionProperties (r:1 w:1)87 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)88 /// The range of component `b` is `[0, 64]`.89 fn set_collection_properties(b: u32, ) -> Weight {90 // Proof Size summary in bytes:91 // Measured: `298`92 // Estimated: `44457`93 // Minimum execution time: 4_862_000 picoseconds.94 Weight::from_parts(5_003_000, 44457)95 // Standard Error: 3_88996 .saturating_add(Weight::from_parts(4_918_195, 0).saturating_mul(b.into()))97 .saturating_add(RocksDbWeight::get().reads(1_u64))98 .saturating_add(RocksDbWeight::get().writes(1_u64))99 }100 /// Storage: Common CollectionProperties (r:1 w:1)101 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)102 /// The range of component `b` is `[0, 64]`.103 fn delete_collection_properties(b: u32, ) -> Weight {104 // Proof Size summary in bytes:105 // Measured: `303 + b * (33030 ±0)`106 // Estimated: `44457`107 // Minimum execution time: 4_739_000 picoseconds.108 Weight::from_parts(4_887_000, 44457)109 // Standard Error: 37_951110 .saturating_add(Weight::from_parts(23_410_931, 0).saturating_mul(b.into()))111 .saturating_add(RocksDbWeight::get().reads(1_u64))112 .saturating_add(RocksDbWeight::get().writes(1_u64))113 }114 /// Storage: Common Allowlist (r:1 w:0)115 /// Proof: Common Allowlist (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen)116 fn check_accesslist() -> Weight {117 // Proof Size summary in bytes:118 // Measured: `373`119 // Estimated: `3535`120 // Minimum execution time: 4_183_000 picoseconds.121 Weight::from_parts(4_391_000, 3535)122 .saturating_add(RocksDbWeight::get().reads(1_u64))123 }124}125difftreelog
source
pallets/common/src/weights.rs4.9 KiBsourcehistory