pallet_staking_async_parachain_runtime/weights/pallet_asset_conversion_tx_payment.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_tx_payment`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2024-01-04, STEPS: `2`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `Georges-MacBook-Pro.local`, 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// --wasm-execution=compiled
31// --pallet=pallet_asset_conversion_tx_payment
32// --no-storage-info
33// --no-median-slopes
34// --no-min-squares
35// --extrinsic=*
36// --steps=2
37// --repeat=2
38// --json
39// --header=./cumulus/file_header.txt
40// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/
41// --chain=asset-hub-next-westend-dev
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_asset_conversion_tx_payment`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_asset_conversion_tx_payment::WeightInfo for WeightInfo<T> {
54 fn charge_asset_tx_payment_zero() -> Weight {
55 // Proof Size summary in bytes:
56 // Measured: `0`
57 // Estimated: `0`
58 // Minimum execution time: 8_000_000 picoseconds.
59 Weight::from_parts(9_000_000, 0)
60 .saturating_add(Weight::from_parts(0, 0))
61 }
62 /// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
63 /// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
64 /// Storage: `System::Account` (r:1 w:0)
65 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
66 fn charge_asset_tx_payment_native() -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `4`
69 // Estimated: `3593`
70 // Minimum execution time: 214_000_000 picoseconds.
71 Weight::from_parts(219_000_000, 0)
72 .saturating_add(Weight::from_parts(0, 3593))
73 .saturating_add(T::DbWeight::get().reads(2))
74 }
75 /// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
76 /// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
77 /// Storage: `ForeignAssets::Asset` (r:1 w:1)
78 /// Proof: `ForeignAssets::Asset` (`max_values`: None, `max_size`: Some(808), added: 3283, mode: `MaxEncodedLen`)
79 /// Storage: `ForeignAssets::Account` (r:2 w:2)
80 /// Proof: `ForeignAssets::Account` (`max_values`: None, `max_size`: Some(732), added: 3207, mode: `MaxEncodedLen`)
81 /// Storage: `System::Account` (r:2 w:1)
82 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
83 fn charge_asset_tx_payment_asset() -> Weight {
84 // Proof Size summary in bytes:
85 // Measured: `631`
86 // Estimated: `7404`
87 // Minimum execution time: 1_211_000_000 picoseconds.
88 Weight::from_parts(1_243_000_000, 0)
89 .saturating_add(Weight::from_parts(0, 7404))
90 .saturating_add(T::DbWeight::get().reads(6))
91 .saturating_add(T::DbWeight::get().writes(4))
92 }
93}