westend_runtime/weights/pallet_beefy_mmr.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_beefy_mmr`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_beefy_mmr
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_beefy_mmr`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_beefy_mmr::WeightInfo for WeightInfo<T> {
54 /// The range of component `n` is `[2, 512]`.
55 fn n_leafs_proof_is_optimal(n: u32, ) -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `0`
58 // Estimated: `0`
59 // Minimum execution time: 629_000 picoseconds.
60 Weight::from_parts(1_215_800, 0)
61 .saturating_add(Weight::from_parts(0, 0))
62 // Standard Error: 67
63 .saturating_add(Weight::from_parts(1_275, 0).saturating_mul(n.into()))
64 }
65 /// Storage: `System::BlockHash` (r:1 w:0)
66 /// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
67 fn extract_validation_context() -> Weight {
68 // Proof Size summary in bytes:
69 // Measured: `68`
70 // Estimated: `3509`
71 // Minimum execution time: 9_629_000 picoseconds.
72 Weight::from_parts(10_234_000, 0)
73 .saturating_add(Weight::from_parts(0, 3509))
74 .saturating_add(T::DbWeight::get().reads(1))
75 }
76 /// Storage: `Mmr::Nodes` (r:1 w:0)
77 /// Proof: `Mmr::Nodes` (`max_values`: None, `max_size`: Some(40), added: 2515, mode: `MaxEncodedLen`)
78 fn read_peak() -> Weight {
79 // Proof Size summary in bytes:
80 // Measured: `221`
81 // Estimated: `3505`
82 // Minimum execution time: 6_052_000 picoseconds.
83 Weight::from_parts(6_388_000, 0)
84 .saturating_add(Weight::from_parts(0, 3505))
85 .saturating_add(T::DbWeight::get().reads(1))
86 }
87 /// Storage: `Mmr::RootHash` (r:1 w:0)
88 /// Proof: `Mmr::RootHash` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
89 /// Storage: `Mmr::NumberOfLeaves` (r:1 w:0)
90 /// Proof: `Mmr::NumberOfLeaves` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
91 /// The range of component `n` is `[2, 512]`.
92 fn n_items_proof_is_non_canonical(n: u32, ) -> Weight {
93 // Proof Size summary in bytes:
94 // Measured: `213`
95 // Estimated: `1517`
96 // Minimum execution time: 12_197_000 picoseconds.
97 Weight::from_parts(25_888_246, 0)
98 .saturating_add(Weight::from_parts(0, 1517))
99 // Standard Error: 2_043
100 .saturating_add(Weight::from_parts(1_304_917, 0).saturating_mul(n.into()))
101 .saturating_add(T::DbWeight::get().reads(2))
102 }
103}