git.delta.rocks / unique-network / refs/commits / 99048b774c52

difftreelog

source

pallets/fungible/src/weights.rs11.8 KiBsourcehistory
1// Template adopted from https://github.com/paritytech/substrate/blob/master/.maintain/frame-weight-template.hbs23//! Autogenerated weights for pallet_fungible4//!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-fungible16// --wasm-execution17// compiled18// --extrinsic19// *20// --template=.maintain/frame-weight-template.hbs21// --steps=5022// --repeat=8023// --heap-pages=409624// --output=./pallets/fungible/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_fungible.36pub trait WeightInfo {37	fn create_item() -> Weight;38	fn create_multiple_items_ex(b: u32, ) -> Weight;39	fn burn_item() -> Weight;40	fn transfer() -> Weight;41	fn approve() -> Weight;42	fn approve_from() -> Weight;43	fn transfer_from() -> Weight;44	fn burn_from() -> Weight;45}4647/// Weights for pallet_fungible using the Substrate node and recommended hardware.48pub struct SubstrateWeight<T>(PhantomData<T>);49impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {50	/// Storage: Fungible TotalSupply (r:1 w:1)51	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)52	/// Storage: Fungible Balance (r:1 w:1)53	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)54	fn create_item() -> Weight {55		// Proof Size summary in bytes:56		//  Measured:  `42`57		//  Estimated: `5055`58		// Minimum execution time: 10_152_000 picoseconds.59		Weight::from_parts(10_520_000, 5055)60			.saturating_add(T::DbWeight::get().reads(2_u64))61			.saturating_add(T::DbWeight::get().writes(2_u64))62	}63	/// Storage: Fungible TotalSupply (r:1 w:1)64	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)65	/// Storage: Fungible Balance (r:200 w:200)66	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)67	/// The range of component `b` is `[0, 200]`.68	fn create_multiple_items_ex(b: u32, ) -> Weight {69		// Proof Size summary in bytes:70		//  Measured:  `42`71		//  Estimated: `2503 + b * (2552 ±0)`72		// Minimum execution time: 3_437_000 picoseconds.73		Weight::from_parts(13_322_752, 2503)74			// Standard Error: 1_72875			.saturating_add(Weight::from_parts(3_605_522, 0).saturating_mul(b.into()))76			.saturating_add(T::DbWeight::get().reads(1_u64))77			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(b.into())))78			.saturating_add(T::DbWeight::get().writes(1_u64))79			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(b.into())))80			.saturating_add(Weight::from_parts(0, 2552).saturating_mul(b.into()))81	}82	/// Storage: Fungible TotalSupply (r:1 w:1)83	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)84	/// Storage: Fungible Balance (r:1 w:1)85	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)86	fn burn_item() -> Weight {87		// Proof Size summary in bytes:88		//  Measured:  `197`89		//  Estimated: `5055`90		// Minimum execution time: 12_894_000 picoseconds.91		Weight::from_parts(13_347_000, 5055)92			.saturating_add(T::DbWeight::get().reads(2_u64))93			.saturating_add(T::DbWeight::get().writes(2_u64))94	}95	/// Storage: Fungible Balance (r:2 w:2)96	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)97	fn transfer() -> Weight {98		// Proof Size summary in bytes:99		//  Measured:  `182`100		//  Estimated: `5104`101		// Minimum execution time: 13_832_000 picoseconds.102		Weight::from_parts(14_064_000, 5104)103			.saturating_add(T::DbWeight::get().reads(2_u64))104			.saturating_add(T::DbWeight::get().writes(2_u64))105	}106	/// Storage: Fungible Balance (r:1 w:0)107	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)108	/// Storage: Fungible Allowance (r:0 w:1)109	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)110	fn approve() -> Weight {111		// Proof Size summary in bytes:112		//  Measured:  `182`113		//  Estimated: `2552`114		// Minimum execution time: 12_417_000 picoseconds.115		Weight::from_parts(12_658_000, 2552)116			.saturating_add(T::DbWeight::get().reads(1_u64))117			.saturating_add(T::DbWeight::get().writes(1_u64))118	}119	/// Storage: Fungible Balance (r:1 w:0)120	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)121	/// Storage: Fungible Allowance (r:0 w:1)122	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)123	fn approve_from() -> Weight {124		// Proof Size summary in bytes:125		//  Measured:  `170`126		//  Estimated: `2552`127		// Minimum execution time: 12_322_000 picoseconds.128		Weight::from_parts(12_629_000, 2552)129			.saturating_add(T::DbWeight::get().reads(1_u64))130			.saturating_add(T::DbWeight::get().writes(1_u64))131	}132	/// Storage: Fungible Allowance (r:1 w:1)133	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)134	/// Storage: Fungible Balance (r:2 w:2)135	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)136	fn transfer_from() -> Weight {137		// Proof Size summary in bytes:138		//  Measured:  `300`139		//  Estimated: `7672`140		// Minimum execution time: 21_667_000 picoseconds.141		Weight::from_parts(22_166_000, 7672)142			.saturating_add(T::DbWeight::get().reads(3_u64))143			.saturating_add(T::DbWeight::get().writes(3_u64))144	}145	/// Storage: Fungible Allowance (r:1 w:1)146	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)147	/// Storage: Fungible TotalSupply (r:1 w:1)148	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)149	/// Storage: Fungible Balance (r:1 w:1)150	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)151	fn burn_from() -> Weight {152		// Proof Size summary in bytes:153		//  Measured:  `315`154		//  Estimated: `7623`155		// Minimum execution time: 21_271_000 picoseconds.156		Weight::from_parts(21_709_000, 7623)157			.saturating_add(T::DbWeight::get().reads(3_u64))158			.saturating_add(T::DbWeight::get().writes(3_u64))159	}160}161162// For backwards compatibility and tests163impl WeightInfo for () {164	/// Storage: Fungible TotalSupply (r:1 w:1)165	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)166	/// Storage: Fungible Balance (r:1 w:1)167	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)168	fn create_item() -> Weight {169		// Proof Size summary in bytes:170		//  Measured:  `42`171		//  Estimated: `5055`172		// Minimum execution time: 10_152_000 picoseconds.173		Weight::from_parts(10_520_000, 5055)174			.saturating_add(RocksDbWeight::get().reads(2_u64))175			.saturating_add(RocksDbWeight::get().writes(2_u64))176	}177	/// Storage: Fungible TotalSupply (r:1 w:1)178	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)179	/// Storage: Fungible Balance (r:200 w:200)180	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)181	/// The range of component `b` is `[0, 200]`.182	fn create_multiple_items_ex(b: u32, ) -> Weight {183		// Proof Size summary in bytes:184		//  Measured:  `42`185		//  Estimated: `2503 + b * (2552 ±0)`186		// Minimum execution time: 3_437_000 picoseconds.187		Weight::from_parts(13_322_752, 2503)188			// Standard Error: 1_728189			.saturating_add(Weight::from_parts(3_605_522, 0).saturating_mul(b.into()))190			.saturating_add(RocksDbWeight::get().reads(1_u64))191			.saturating_add(RocksDbWeight::get().reads((1_u64).saturating_mul(b.into())))192			.saturating_add(RocksDbWeight::get().writes(1_u64))193			.saturating_add(RocksDbWeight::get().writes((1_u64).saturating_mul(b.into())))194			.saturating_add(Weight::from_parts(0, 2552).saturating_mul(b.into()))195	}196	/// Storage: Fungible TotalSupply (r:1 w:1)197	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)198	/// Storage: Fungible Balance (r:1 w:1)199	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)200	fn burn_item() -> Weight {201		// Proof Size summary in bytes:202		//  Measured:  `197`203		//  Estimated: `5055`204		// Minimum execution time: 12_894_000 picoseconds.205		Weight::from_parts(13_347_000, 5055)206			.saturating_add(RocksDbWeight::get().reads(2_u64))207			.saturating_add(RocksDbWeight::get().writes(2_u64))208	}209	/// Storage: Fungible Balance (r:2 w:2)210	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)211	fn transfer() -> Weight {212		// Proof Size summary in bytes:213		//  Measured:  `182`214		//  Estimated: `5104`215		// Minimum execution time: 13_832_000 picoseconds.216		Weight::from_parts(14_064_000, 5104)217			.saturating_add(RocksDbWeight::get().reads(2_u64))218			.saturating_add(RocksDbWeight::get().writes(2_u64))219	}220	/// Storage: Fungible Balance (r:1 w:0)221	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)222	/// Storage: Fungible Allowance (r:0 w:1)223	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)224	fn approve() -> Weight {225		// Proof Size summary in bytes:226		//  Measured:  `182`227		//  Estimated: `2552`228		// Minimum execution time: 12_417_000 picoseconds.229		Weight::from_parts(12_658_000, 2552)230			.saturating_add(RocksDbWeight::get().reads(1_u64))231			.saturating_add(RocksDbWeight::get().writes(1_u64))232	}233	/// Storage: Fungible Balance (r:1 w:0)234	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)235	/// Storage: Fungible Allowance (r:0 w:1)236	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)237	fn approve_from() -> Weight {238		// Proof Size summary in bytes:239		//  Measured:  `170`240		//  Estimated: `2552`241		// Minimum execution time: 12_322_000 picoseconds.242		Weight::from_parts(12_629_000, 2552)243			.saturating_add(RocksDbWeight::get().reads(1_u64))244			.saturating_add(RocksDbWeight::get().writes(1_u64))245	}246	/// Storage: Fungible Allowance (r:1 w:1)247	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)248	/// Storage: Fungible Balance (r:2 w:2)249	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)250	fn transfer_from() -> Weight {251		// Proof Size summary in bytes:252		//  Measured:  `300`253		//  Estimated: `7672`254		// Minimum execution time: 21_667_000 picoseconds.255		Weight::from_parts(22_166_000, 7672)256			.saturating_add(RocksDbWeight::get().reads(3_u64))257			.saturating_add(RocksDbWeight::get().writes(3_u64))258	}259	/// Storage: Fungible Allowance (r:1 w:1)260	/// Proof: Fungible Allowance (max_values: None, max_size: Some(93), added: 2568, mode: MaxEncodedLen)261	/// Storage: Fungible TotalSupply (r:1 w:1)262	/// Proof: Fungible TotalSupply (max_values: None, max_size: Some(28), added: 2503, mode: MaxEncodedLen)263	/// Storage: Fungible Balance (r:1 w:1)264	/// Proof: Fungible Balance (max_values: None, max_size: Some(77), added: 2552, mode: MaxEncodedLen)265	fn burn_from() -> Weight {266		// Proof Size summary in bytes:267		//  Measured:  `315`268		//  Estimated: `7623`269		// Minimum execution time: 21_271_000 picoseconds.270		Weight::from_parts(21_709_000, 7623)271			.saturating_add(RocksDbWeight::get().reads(3_u64))272			.saturating_add(RocksDbWeight::get().writes(3_u64))273	}274}275