coretime_westend_runtime/weights/pallet_transaction_payment.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Cumulus.
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//! Autogenerated weights for `pallet_transaction_payment`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
20//! DATE: 2023-12-21, STEPS: `2`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `gleipnir`, CPU: `AMD Ryzen 9 7900X 12-Core Processor`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("coretime-westend-dev")`, DB CACHE: 1024
24
25// Executed Command:
26// ./target/release/polkadot-parachain
27// benchmark
28// pallet
29// --wasm-execution=compiled
30// --pallet=pallet_transaction_payment
31// --no-storage-info
32// --no-median-slopes
33// --no-min-squares
34// --extrinsic=*
35// --steps=2
36// --repeat=2
37// --json
38// --header=./cumulus/file_header.txt
39// --output=./cumulus/parachains/runtimes/coretime/coretime-westend/src/weights/
40// --chain=coretime-westend-dev
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_transaction_payment`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_transaction_payment::WeightInfo for WeightInfo<T> {
53 /// Storage: `TransactionPayment::NextFeeMultiplier` (r:1 w:0)
54 /// Proof: `TransactionPayment::NextFeeMultiplier` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
55 /// Storage: `System::Account` (r:1 w:1)
56 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
57 fn charge_transaction_payment() -> Weight {
58 // Proof Size summary in bytes:
59 // Measured: `4`
60 // Estimated: `3593`
61 // Minimum execution time: 33_363_000 picoseconds.
62 Weight::from_parts(38_793_000, 0)
63 .saturating_add(Weight::from_parts(0, 3593))
64 .saturating_add(T::DbWeight::get().reads(2))
65 .saturating_add(T::DbWeight::get().writes(1))
66 }
67}