pallet_evm/
weights.rs

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