pallet_remark/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_remark`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
21//! DATE: 2024-11-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner-wiukf8gn-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// --chain=dev
31// --steps=50
32// --repeat=20
33// --pallet=pallet_remark
34// --no-storage-info
35// --no-median-slopes
36// --no-min-squares
37// --extrinsic=*
38// --wasm-execution=compiled
39// --heap-pages=4096
40// --output=./substrate/frame/remark/src/weights.rs
41// --header=./substrate/HEADER-APACHE2
42// --template=./substrate/.maintain/frame-weight-template.hbs
43
44#![cfg_attr(rustfmt, rustfmt_skip)]
45#![allow(unused_parens)]
46#![allow(unused_imports)]
47#![allow(missing_docs)]
48
49use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
50use core::marker::PhantomData;
51
52/// Weight functions needed for `pallet_remark`.
53pub trait WeightInfo {
54 fn store(l: u32, ) -> Weight;
55}
56
57/// Weights for `pallet_remark` using the Substrate node and recommended hardware.
58pub struct SubstrateWeight<T>(PhantomData<T>);
59impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
60 /// The range of component `l` is `[1, 1048576]`.
61 fn store(l: u32, ) -> Weight {
62 // Proof Size summary in bytes:
63 // Measured: `0`
64 // Estimated: `0`
65 // Minimum execution time: 6_242_000 picoseconds.
66 Weight::from_parts(15_241_545, 0)
67 // Standard Error: 0
68 .saturating_add(Weight::from_parts(1_643, 0).saturating_mul(l.into()))
69 }
70}
71
72// For backwards compatibility and tests.
73impl WeightInfo for () {
74 /// The range of component `l` is `[1, 1048576]`.
75 fn store(l: u32, ) -> Weight {
76 // Proof Size summary in bytes:
77 // Measured: `0`
78 // Estimated: `0`
79 // Minimum execution time: 6_242_000 picoseconds.
80 Weight::from_parts(15_241_545, 0)
81 // Standard Error: 0
82 .saturating_add(Weight::from_parts(1_643, 0).saturating_mul(l.into()))
83 }
84}