referrerpolicy=no-referrer-when-downgrade

pallet_meta_tx/
weights.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_meta_tx`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2025-01-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-ys-ssygq-project-674-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
25
26// Executed Command:
27// target/production/substrate-node
28// benchmark
29// pallet
30// --steps=50
31// --repeat=20
32// --extrinsic=*
33// --wasm-execution=compiled
34// --heap-pages=4096
35// --json-file=/builds/parity/mirrors/polkadot-sdk/.git/.artifacts/bench.json
36// --pallet=pallet_meta_tx
37// --chain=dev
38// --header=./substrate/HEADER-APACHE2
39// --output=./substrate/frame/meta-tx/src/weights.rs
40// --template=./substrate/.maintain/frame-weight-template.hbs
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, constants::RocksDbWeight}};
48use core::marker::PhantomData;
49
50/// Weight functions needed for `pallet_meta_tx`.
51pub trait WeightInfo {
52	fn bare_dispatch() -> Weight;
53}
54
55/// Weights for `pallet_meta_tx` using the Substrate node and recommended hardware.
56pub struct SubstrateWeight<T>(PhantomData<T>);
57impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
58	/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
59	/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
60	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
61	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
62	fn bare_dispatch() -> Weight {
63		// Proof Size summary in bytes:
64		//  Measured:  `145`
65		//  Estimated: `3997`
66		// Minimum execution time: 13_110_000 picoseconds.
67		Weight::from_parts(13_605_000, 3997)
68			.saturating_add(T::DbWeight::get().reads(2_u64))
69	}
70}
71
72// For backwards compatibility and tests.
73impl WeightInfo for () {
74	/// Storage: `SafeMode::EnteredUntil` (r:1 w:0)
75	/// Proof: `SafeMode::EnteredUntil` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
76	/// Storage: `TxPause::PausedCalls` (r:1 w:0)
77	/// Proof: `TxPause::PausedCalls` (`max_values`: None, `max_size`: Some(532), added: 3007, mode: `MaxEncodedLen`)
78	fn bare_dispatch() -> Weight {
79		// Proof Size summary in bytes:
80		//  Measured:  `145`
81		//  Estimated: `3997`
82		// Minimum execution time: 13_110_000 picoseconds.
83		Weight::from_parts(13_605_000, 3997)
84			.saturating_add(RocksDbWeight::get().reads(2_u64))
85	}
86}