pallet_block_production_log/weights.rs
1
2//! Autogenerated weights for pallet_block_production_log
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
5//! DATE: 2025-10-29, STEPS: `5000`, REPEAT: `2000`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `Nikolaoss-MacBook-Pro.local`, CPU: `<UNKNOWN>`
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_production_log
19// --extrinsic
20// *
21// --steps=5000
22// --repeat=2000
23// --wasm-execution=compiled
24// --output
25// ./toolkit/block-production-log/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_production_log.
38pub trait WeightInfo {
39 fn append() -> Weight;
40 fn on_finalize() -> Weight;
41}
42
43/// Weights for pallet_block_production_log using the Substrate node and recommended hardware.
44pub struct SubstrateWeight<T>(PhantomData<T>);
45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
46 /// Storage: `BlockProductionLog::LatestBlock` (r:1 w:1)
47 /// Proof: `BlockProductionLog::LatestBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
48 /// Storage: `BlockProductionLog::CurrentProducer` (r:0 w:1)
49 /// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(74), added: 569, mode: `MaxEncodedLen`)
50 fn append() -> Weight {
51 // Proof Size summary in bytes:
52 // Measured: `43`
53 // Estimated: `1489`
54 // Minimum execution time: 4_000_000 picoseconds.
55 Weight::from_parts(5_000_000, 1489)
56 .saturating_add(T::DbWeight::get().reads(1_u64))
57 .saturating_add(T::DbWeight::get().writes(2_u64))
58 }
59 /// Storage: `BlockProductionLog::CurrentProducer` (r:1 w:1)
60 /// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(74), added: 569, mode: `MaxEncodedLen`)
61 /// Storage: `BlockProductionLog::Log` (r:1 w:1)
62 /// Proof: `BlockProductionLog::Log` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
63 fn on_finalize() -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `2599`
66 // Estimated: `4084`
67 // Minimum execution time: 9_000_000 picoseconds.
68 Weight::from_parts(10_000_000, 4084)
69 .saturating_add(T::DbWeight::get().reads(2_u64))
70 .saturating_add(T::DbWeight::get().writes(2_u64))
71 }
72}
73
74// For backwards compatibility and tests
75impl WeightInfo for () {
76 /// Storage: `BlockProductionLog::LatestBlock` (r:1 w:1)
77 /// Proof: `BlockProductionLog::LatestBlock` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
78 /// Storage: `BlockProductionLog::CurrentProducer` (r:0 w:1)
79 /// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(74), added: 569, mode: `MaxEncodedLen`)
80 fn append() -> Weight {
81 // Proof Size summary in bytes:
82 // Measured: `43`
83 // Estimated: `1489`
84 // Minimum execution time: 4_000_000 picoseconds.
85 Weight::from_parts(5_000_000, 1489)
86 .saturating_add(RocksDbWeight::get().reads(1_u64))
87 .saturating_add(RocksDbWeight::get().writes(2_u64))
88 }
89 /// Storage: `BlockProductionLog::CurrentProducer` (r:1 w:1)
90 /// Proof: `BlockProductionLog::CurrentProducer` (`max_values`: Some(1), `max_size`: Some(74), added: 569, mode: `MaxEncodedLen`)
91 /// Storage: `BlockProductionLog::Log` (r:1 w:1)
92 /// Proof: `BlockProductionLog::Log` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
93 fn on_finalize() -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `2599`
96 // Estimated: `4084`
97 // Minimum execution time: 9_000_000 picoseconds.
98 Weight::from_parts(10_000_000, 4084)
99 .saturating_add(RocksDbWeight::get().reads(2_u64))
100 .saturating_add(RocksDbWeight::get().writes(2_u64))
101 }
102}