git.delta.rocks / unique-network / refs/commits / 28f2c756bb3e

difftreelog

source

pallets/foreign-assets/src/weights.rs7.6 KiBsourcehistory
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-10-13, STEPS: `50`, REPEAT: `80`, 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: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 10241011// Executed Command:12// ./target/production/unique-collator13// benchmark14// pallet15// --pallet16// pallet-foreign-assets17// --wasm-execution18// compiled19// --extrinsic20// *21// --template=.maintain/frame-weight-template.hbs22// --steps=5023// --repeat=8024// --heap-pages=409625// --output=./pallets/foreign-assets/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_foreign_assets.35pub trait WeightInfo {36	fn register_foreign_asset() -> Weight;37	fn update_foreign_asset() -> Weight;38}3940/// Weights for pallet_foreign_assets using the Substrate node and recommended hardware.41pub struct SubstrateWeight<T>(PhantomData<T>);42impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {43	/// Storage: `Common::CreatedCollectionCount` (r:1 w:1)44	/// Proof: `Common::CreatedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)45	/// Storage: `Common::DestroyedCollectionCount` (r:1 w:0)46	/// Proof: `Common::DestroyedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)47	/// Storage: `System::Account` (r:2 w:2)48	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)49	/// Storage: `ForeignAssets::NextForeignAssetId` (r:1 w:1)50	/// Proof: `ForeignAssets::NextForeignAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)51	/// Storage: `ForeignAssets::LocationToCurrencyIds` (r:1 w:1)52	/// Proof: `ForeignAssets::LocationToCurrencyIds` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)53	/// Storage: `ForeignAssets::ForeignAssetLocations` (r:1 w:1)54	/// Proof: `ForeignAssets::ForeignAssetLocations` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)55	/// Storage: `ForeignAssets::AssetMetadatas` (r:1 w:1)56	/// Proof: `ForeignAssets::AssetMetadatas` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)57	/// Storage: `ForeignAssets::AssetBinding` (r:1 w:1)58	/// Proof: `ForeignAssets::AssetBinding` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)59	/// Storage: `Common::AdminAmount` (r:0 w:1)60	/// Proof: `Common::AdminAmount` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)61	/// Storage: `Common::CollectionPropertyPermissions` (r:0 w:1)62	/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)63	/// Storage: `Common::CollectionProperties` (r:0 w:1)64	/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)65	/// Storage: `Common::CollectionById` (r:0 w:1)66	/// Proof: `Common::CollectionById` (`max_values`: None, `max_size`: Some(860), added: 3335, mode: `MaxEncodedLen`)67	fn register_foreign_asset() -> Weight {68		// Proof Size summary in bytes:69		//  Measured:  `286`70		//  Estimated: `6196`71		// Minimum execution time: 73_798_000 picoseconds.72		Weight::from_parts(74_677_000, 6196)73			.saturating_add(T::DbWeight::get().reads(9_u64))74			.saturating_add(T::DbWeight::get().writes(12_u64))75	}76	/// Storage: `ForeignAssets::ForeignAssetLocations` (r:1 w:1)77	/// Proof: `ForeignAssets::ForeignAssetLocations` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)78	/// Storage: `ForeignAssets::AssetMetadatas` (r:1 w:1)79	/// Proof: `ForeignAssets::AssetMetadatas` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)80	fn update_foreign_asset() -> Weight {81		// Proof Size summary in bytes:82		//  Measured:  `197`83		//  Estimated: `4079`84		// Minimum execution time: 17_398_000 picoseconds.85		Weight::from_parts(17_697_000, 4079)86			.saturating_add(T::DbWeight::get().reads(2_u64))87			.saturating_add(T::DbWeight::get().writes(2_u64))88	}89}9091// For backwards compatibility and tests92impl WeightInfo for () {93	/// Storage: `Common::CreatedCollectionCount` (r:1 w:1)94	/// Proof: `Common::CreatedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)95	/// Storage: `Common::DestroyedCollectionCount` (r:1 w:0)96	/// Proof: `Common::DestroyedCollectionCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)97	/// Storage: `System::Account` (r:2 w:2)98	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)99	/// Storage: `ForeignAssets::NextForeignAssetId` (r:1 w:1)100	/// Proof: `ForeignAssets::NextForeignAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)101	/// Storage: `ForeignAssets::LocationToCurrencyIds` (r:1 w:1)102	/// Proof: `ForeignAssets::LocationToCurrencyIds` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)103	/// Storage: `ForeignAssets::ForeignAssetLocations` (r:1 w:1)104	/// Proof: `ForeignAssets::ForeignAssetLocations` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)105	/// Storage: `ForeignAssets::AssetMetadatas` (r:1 w:1)106	/// Proof: `ForeignAssets::AssetMetadatas` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)107	/// Storage: `ForeignAssets::AssetBinding` (r:1 w:1)108	/// Proof: `ForeignAssets::AssetBinding` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)109	/// Storage: `Common::AdminAmount` (r:0 w:1)110	/// Proof: `Common::AdminAmount` (`max_values`: None, `max_size`: Some(24), added: 2499, mode: `MaxEncodedLen`)111	/// Storage: `Common::CollectionPropertyPermissions` (r:0 w:1)112	/// Proof: `Common::CollectionPropertyPermissions` (`max_values`: None, `max_size`: Some(16726), added: 19201, mode: `MaxEncodedLen`)113	/// Storage: `Common::CollectionProperties` (r:0 w:1)114	/// Proof: `Common::CollectionProperties` (`max_values`: None, `max_size`: Some(40992), added: 43467, mode: `MaxEncodedLen`)115	/// Storage: `Common::CollectionById` (r:0 w:1)116	/// Proof: `Common::CollectionById` (`max_values`: None, `max_size`: Some(860), added: 3335, mode: `MaxEncodedLen`)117	fn register_foreign_asset() -> Weight {118		// Proof Size summary in bytes:119		//  Measured:  `286`120		//  Estimated: `6196`121		// Minimum execution time: 73_798_000 picoseconds.122		Weight::from_parts(74_677_000, 6196)123			.saturating_add(RocksDbWeight::get().reads(9_u64))124			.saturating_add(RocksDbWeight::get().writes(12_u64))125	}126	/// Storage: `ForeignAssets::ForeignAssetLocations` (r:1 w:1)127	/// Proof: `ForeignAssets::ForeignAssetLocations` (`max_values`: None, `max_size`: Some(614), added: 3089, mode: `MaxEncodedLen`)128	/// Storage: `ForeignAssets::AssetMetadatas` (r:1 w:1)129	/// Proof: `ForeignAssets::AssetMetadatas` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)130	fn update_foreign_asset() -> Weight {131		// Proof Size summary in bytes:132		//  Measured:  `197`133		//  Estimated: `4079`134		// Minimum execution time: 17_398_000 picoseconds.135		Weight::from_parts(17_697_000, 4079)136			.saturating_add(RocksDbWeight::get().reads(2_u64))137			.saturating_add(RocksDbWeight::get().writes(2_u64))138	}139}140