referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_asset_conversion_ops.rs

1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// 	http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_asset_conversion_ops`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2024-02-15, STEPS: `10`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
25
26// Executed Command:
27// ./target/debug/polkadot-parachain
28// benchmark
29// pallet
30// --chain=asset-hub-next-westend-dev
31// --steps=10
32// --repeat=2
33// --pallet=pallet-asset-conversion-ops
34// --extrinsic=*
35// --wasm-execution=compiled
36// --heap-pages=4096
37// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/
38
39#![cfg_attr(rustfmt, rustfmt_skip)]
40#![allow(unused_parens)]
41#![allow(unused_imports)]
42#![allow(missing_docs)]
43
44use frame_support::{traits::Get, weights::Weight};
45use core::marker::PhantomData;
46
47/// Weight functions for `pallet_asset_conversion_ops`.
48pub struct WeightInfo<T>(PhantomData<T>);
49impl<T: frame_system::Config> pallet_asset_conversion_ops::WeightInfo for WeightInfo<T> {
50	/// Storage: `AssetConversion::Pools` (r:1 w:0)
51	/// Proof: `AssetConversion::Pools` (`max_values`: None, `max_size`: Some(1224), added: 3699, mode: `MaxEncodedLen`)
52	/// Storage: `System::Account` (r:2 w:2)
53	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
54	/// Storage: `ForeignAssets::Account` (r:2 w:2)
55	/// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
56	/// Storage: `PoolAssets::Account` (r:2 w:2)
57	/// Proof: `PoolAssets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
58	/// Storage: `PoolAssets::Asset` (r:1 w:1)
59	/// Proof: `PoolAssets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
60	/// Storage: `ForeignAssets::Asset` (r:1 w:1)
61	/// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
62	fn migrate_to_new_account() -> Weight {
63		// Proof Size summary in bytes:
64		//  Measured:  `1105`
65		//  Estimated: `7404`
66		// Minimum execution time: 2_216_000_000 picoseconds.
67		Weight::from_parts(2_379_000_000, 0)
68			.saturating_add(Weight::from_parts(0, 7404))
69			.saturating_add(T::DbWeight::get().reads(9))
70			.saturating_add(T::DbWeight::get().writes(8))
71	}
72}