pallet_block_producer_fees/
weights.rs

1
2//! Autogenerated weights for pallet_block_producer_fees
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0
5//! DATE: 2025-05-05, STEPS: `5000`, REPEAT: `2000`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `framework-13`, CPU: `AMD Ryzen 7 7840U w/ Radeon  780M Graphics`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// frame-omni-bencher
12// v1
13// benchmark
14// pallet
15// --runtime
16// target/release/wbuild/partner-chains-demo-runtime/partner_chains_demo_runtime.compact.compressed.wasm
17// --pallet
18// pallet_block_producer_fees
19// --extrinsic
20// *
21// --steps=5000
22// --repeat=2000
23// --wasm-execution=compiled
24// --output
25// toolkit/block-producer-fees/pallet/src/weights.rs
26// --template
27// .maintain/frame-weight-template.hbs
28
29#![cfg_attr(rustfmt, rustfmt_skip)]
30#![allow(unused_parens)]
31#![allow(unused_imports)]
32#![allow(missing_docs)]
33
34use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
35use core::marker::PhantomData;
36
37/// Weight functions needed for pallet_block_producer_fees.
38pub trait WeightInfo {
39	fn set_fee() -> Weight;
40}
41
42/// Weights for pallet_block_producer_fees using the Substrate node and recommended hardware.
43pub struct SubstrateWeight<T>(PhantomData<T>);
44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
45	/// Storage: `BlockProducerFees::FeesChanges` (r:1 w:1)
46	/// Proof: `BlockProducerFees::FeesChanges` (`max_values`: None, `max_size`: None, mode: `Measured`)
47	/// Storage: `Aura::CurrentSlot` (r:1 w:0)
48	/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
49	fn set_fee() -> Weight {
50		// Proof Size summary in bytes:
51		//  Measured:  `1046`
52		//  Estimated: `4511`
53		// Minimum execution time: 11_562_000 picoseconds.
54		Weight::from_parts(12_423_000, 4511)
55			.saturating_add(T::DbWeight::get().reads(2_u64))
56			.saturating_add(T::DbWeight::get().writes(1_u64))
57	}
58}
59
60// For backwards compatibility and tests
61impl WeightInfo for () {
62	/// Storage: `BlockProducerFees::FeesChanges` (r:1 w:1)
63	/// Proof: `BlockProducerFees::FeesChanges` (`max_values`: None, `max_size`: None, mode: `Measured`)
64	/// Storage: `Aura::CurrentSlot` (r:1 w:0)
65	/// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
66	fn set_fee() -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `1046`
69		//  Estimated: `4511`
70		// Minimum execution time: 11_562_000 picoseconds.
71		Weight::from_parts(12_423_000, 4511)
72			.saturating_add(RocksDbWeight::get().reads(2_u64))
73			.saturating_add(RocksDbWeight::get().writes(1_u64))
74	}
75}