referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_parachain_runtime/weights/
pallet_transaction_payment.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3// SPDX-License-Identifier: Apache-2.0
4
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// 	http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16
17// You should have received a copy of the GNU General Public License
18// along with Substrate.  If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `pallet_transaction_payment`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
23//! DATE: 2023-12-21, STEPS: `2`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gleipnir`, CPU: `AMD Ryzen 9 7900X 12-Core Processor`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
27
28// Executed Command:
29// ./target/release/polkadot-parachain
30// benchmark
31// pallet
32// --wasm-execution=compiled
33// --pallet=pallet_transaction_payment
34// --no-storage-info
35// --no-median-slopes
36// --no-min-squares
37// --extrinsic=*
38// --steps=2
39// --repeat=2
40// --json
41// --header=./cumulus/file_header.txt
42// --output=./cumulus/parachains/runtimes/assets/asset-hub-next-westend/src/weights/
43// --chain=asset-hub-next-westend-dev
44
45#![cfg_attr(rustfmt, rustfmt_skip)]
46#![allow(unused_parens)]
47#![allow(unused_imports)]
48#![allow(missing_docs)]
49
50use frame_support::{traits::Get, weights::Weight};
51use core::marker::PhantomData;
52
53/// Weight functions for `pallet_transaction_payment`.
54pub struct WeightInfo<T>(PhantomData<T>);
55impl<T: frame_system::Config> pallet_transaction_payment::WeightInfo for WeightInfo<T> {
56	/// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
57	/// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
58	/// Storage: `System::Account` (r:1 w:1)
59	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
60	fn charge_transaction_payment() -> Weight {
61		// Proof Size summary in bytes:
62		//  Measured:  `4`
63		//  Estimated: `3593`
64		// Minimum execution time: 40_847_000 picoseconds.
65		Weight::from_parts(49_674_000, 0)
66			.saturating_add(Weight::from_parts(0, 3593))
67			.saturating_add(T::DbWeight::get().reads(2))
68			.saturating_add(T::DbWeight::get().writes(1))
69	}
70}