1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_foreign_assets4//!5//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev6//! DATE: 2023-03-30, STEPS: `50`, REPEAT: 80, LOW RANGE: `[]`, HIGH RANGE: `[]`7//! WORST CASE MAP SIZE: `1000000`8//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024910// Executed Command:11// target/release/unique-collator12// benchmark13// pallet14// --pallet15// pallet-foreign-assets16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/foreign-assets/src/weights.rs2526#![cfg_attr(rustfmt, rustfmt_skip)]27#![allow(unused_parens)]28#![allow(unused_imports)]29#![allow(missing_docs)]30#![allow(clippy::unnecessary_cast)]3132use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};33use sp_std::marker::PhantomData;3435/// Weight functions needed for pallet_foreign_assets.36pub trait WeightInfo {37 fn register_foreign_asset() -> Weight;38 fn update_foreign_asset() -> Weight;39}4041/// Weights for pallet_foreign_assets 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 CreatedCollectionCount (r:1 w:1)45 /// Proof: Common CreatedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)46 /// Storage: Common DestroyedCollectionCount (r:1 w:0)47 /// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)48 /// Storage: System Account (r:2 w:2)49 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)50 /// Storage: ForeignAssets NextForeignAssetId (r:1 w:1)51 /// Proof: ForeignAssets NextForeignAssetId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)52 /// Storage: ForeignAssets LocationToCurrencyIds (r:1 w:1)53 /// Proof: ForeignAssets LocationToCurrencyIds (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)54 /// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)55 /// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)56 /// Storage: ForeignAssets AssetMetadatas (r:1 w:1)57 /// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)58 /// Storage: ForeignAssets AssetBinding (r:1 w:1)59 /// Proof: ForeignAssets AssetBinding (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)60 /// Storage: Common CollectionPropertyPermissions (r:0 w:1)61 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)62 /// Storage: Common CollectionProperties (r:0 w:1)63 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)64 /// Storage: Common CollectionById (r:0 w:1)65 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)66 fn register_foreign_asset() -> Weight {67 // Proof Size summary in bytes:68 // Measured: `318`69 // Estimated: `17918`70 // Minimum execution time: 45_521_000 picoseconds.71 Weight::from_parts(46_333_000, 17918)72 .saturating_add(T::DbWeight::get().reads(9_u64))73 .saturating_add(T::DbWeight::get().writes(11_u64))74 }75 /// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)76 /// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)77 /// Storage: ForeignAssets AssetMetadatas (r:1 w:1)78 /// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)79 fn update_foreign_asset() -> Weight {80 // Proof Size summary in bytes:81 // Measured: `197`82 // Estimated: `5635`83 // Minimum execution time: 13_542_000 picoseconds.84 Weight::from_parts(13_913_000, 5635)85 .saturating_add(T::DbWeight::get().reads(2_u64))86 .saturating_add(T::DbWeight::get().writes(2_u64))87 }88}8990// For backwards compatibility and tests91impl WeightInfo for () {92 /// Storage: Common CreatedCollectionCount (r:1 w:1)93 /// Proof: Common CreatedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)94 /// Storage: Common DestroyedCollectionCount (r:1 w:0)95 /// Proof: Common DestroyedCollectionCount (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)96 /// Storage: System Account (r:2 w:2)97 /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen)98 /// Storage: ForeignAssets NextForeignAssetId (r:1 w:1)99 /// Proof: ForeignAssets NextForeignAssetId (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)100 /// Storage: ForeignAssets LocationToCurrencyIds (r:1 w:1)101 /// Proof: ForeignAssets LocationToCurrencyIds (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)102 /// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)103 /// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)104 /// Storage: ForeignAssets AssetMetadatas (r:1 w:1)105 /// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)106 /// Storage: ForeignAssets AssetBinding (r:1 w:1)107 /// Proof: ForeignAssets AssetBinding (max_values: None, max_size: Some(16), added: 2491, mode: MaxEncodedLen)108 /// Storage: Common CollectionPropertyPermissions (r:0 w:1)109 /// Proof: Common CollectionPropertyPermissions (max_values: None, max_size: Some(16726), added: 19201, mode: MaxEncodedLen)110 /// Storage: Common CollectionProperties (r:0 w:1)111 /// Proof: Common CollectionProperties (max_values: None, max_size: Some(40992), added: 43467, mode: MaxEncodedLen)112 /// Storage: Common CollectionById (r:0 w:1)113 /// Proof: Common CollectionById (max_values: None, max_size: Some(860), added: 3335, mode: MaxEncodedLen)114 fn register_foreign_asset() -> Weight {115 // Proof Size summary in bytes:116 // Measured: `318`117 // Estimated: `17918`118 // Minimum execution time: 45_521_000 picoseconds.119 Weight::from_parts(46_333_000, 17918)120 .saturating_add(RocksDbWeight::get().reads(9_u64))121 .saturating_add(RocksDbWeight::get().writes(11_u64))122 }123 /// Storage: ForeignAssets ForeignAssetLocations (r:1 w:1)124 /// Proof: ForeignAssets ForeignAssetLocations (max_values: None, max_size: Some(614), added: 3089, mode: MaxEncodedLen)125 /// Storage: ForeignAssets AssetMetadatas (r:1 w:1)126 /// Proof: ForeignAssets AssetMetadatas (max_values: None, max_size: Some(71), added: 2546, mode: MaxEncodedLen)127 fn update_foreign_asset() -> Weight {128 // Proof Size summary in bytes:129 // Measured: `197`130 // Estimated: `5635`131 // Minimum execution time: 13_542_000 picoseconds.132 Weight::from_parts(13_913_000, 5635)133 .saturating_add(RocksDbWeight::get().reads(2_u64))134 .saturating_add(RocksDbWeight::get().writes(2_u64))135 }136}137difftreelog
source
pallets/foreign-assets/src/weights.rs7.0 KiBsourcehistory