cumulus_pallet_weight_reclaim/weights.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 `cumulus_pallet_weight_reclaim`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2024-08-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `fedora`, CPU: `13th Gen Intel(R) Core(TM) i7-1360P`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: `1024`
24
25// Executed Command:
26// ./target/release/parachain-template-node
27// benchmark
28// pallet
29// --pallet
30// cumulus-pallet-weight-reclaim
31// --chain
32// dev
33// --output
34// cumulus/pallets/weight-reclaim/src/weights.rs
35// --template
36// substrate/.maintain/frame-weight-template.hbs
37// --extrinsic
38// *
39
40#![cfg_attr(rustfmt, rustfmt_skip)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
46use core::marker::PhantomData;
47
48/// Weight functions needed for `cumulus_pallet_weight_reclaim`.
49pub trait WeightInfo {
50 fn storage_weight_reclaim() -> Weight;
51}
52
53/// Weights for `cumulus_pallet_weight_reclaim` using the Substrate node and recommended hardware.
54pub struct SubstrateWeight<T>(PhantomData<T>);
55impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
56 fn storage_weight_reclaim() -> Weight {
57 // Proof Size summary in bytes:
58 // Measured: `0`
59 // Estimated: `0`
60 // Minimum execution time: 2_247_000 picoseconds.
61 Weight::from_parts(2_466_000, 0)
62 }
63}
64
65// For backwards compatibility and tests.
66impl WeightInfo for () {
67 fn storage_weight_reclaim() -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `0`
70 // Estimated: `0`
71 // Minimum execution time: 2_247_000 picoseconds.
72 Weight::from_parts(2_466_000, 0)
73 }
74}