pallet_subspace/extensions/
weights.rs

1
2//! Autogenerated weights for `pallet_subspace_extension`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.0.0
5//! DATE: 2025-02-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `mac-mini.local`, CPU: `<UNKNOWN>`
8//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/subspace-node
12// benchmark
13// pallet
14// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
15// --genesis-builder=runtime
16// --steps=50
17// --repeat=20
18// --pallet=pallet_subspace_extension
19// --extrinsic=*
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./crates/pallet-subspace/src/extensions/weights.rs
23
24#![cfg_attr(rustfmt, rustfmt_skip)]
25#![allow(unused_parens)]
26#![allow(unused_imports)]
27#![allow(missing_docs)]
28
29use frame_support::{traits::Get, weights::Weight};
30use core::marker::PhantomData;
31
32/// Weight functions needed for pallet subspace extension.
33pub trait WeightInfo {
34	fn vote() -> Weight;
35	fn vote_with_equivocation() -> Weight;
36}
37
38/// Weight functions for `pallet_subspace_extension`.
39pub struct SubstrateWeight<T>(PhantomData<T>);
40impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
41	/// Storage: `System::BlockHash` (r:1 w:0)
42	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
43	/// Storage: `Subspace::SolutionRanges` (r:1 w:0)
44	/// Proof: `Subspace::SolutionRanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
45	/// Storage: `Subspace::BlockSlots` (r:1 w:0)
46	/// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
47	/// Storage: `Subspace::ParentVoteVerificationData` (r:1 w:0)
48	/// Proof: `Subspace::ParentVoteVerificationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
49	/// Storage: `Subspace::SegmentCommitment` (r:2 w:0)
50	/// Proof: `Subspace::SegmentCommitment` (`max_values`: None, `max_size`: None, mode: `Measured`)
51	/// Storage: `Subspace::CounterForSegmentCommitment` (r:1 w:0)
52	/// Proof: `Subspace::CounterForSegmentCommitment` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
53	/// Storage: `Subspace::ParentBlockAuthorInfo` (r:1 w:0)
54	/// Proof: `Subspace::ParentBlockAuthorInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
55	/// Storage: `Subspace::CurrentBlockAuthorInfo` (r:1 w:0)
56	/// Proof: `Subspace::CurrentBlockAuthorInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
57	/// Storage: `Subspace::ParentBlockVoters` (r:1 w:0)
58	/// Proof: `Subspace::ParentBlockVoters` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
59	/// Storage: `Subspace::CurrentBlockVoters` (r:1 w:1)
60	/// Proof: `Subspace::CurrentBlockVoters` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
61	fn vote() -> Weight {
62		// Proof Size summary in bytes:
63		//  Measured:  `397`
64		//  Estimated: `6337`
65		// Minimum execution time: 1_921_000_000 picoseconds.
66		Weight::from_parts(1_926_000_000, 0)
67			.saturating_add(Weight::from_parts(0, 6337))
68			.saturating_add(T::DbWeight::get().reads(11))
69			.saturating_add(T::DbWeight::get().writes(1))
70	}
71	/// Storage: `System::BlockHash` (r:1 w:0)
72	/// Proof: `System::BlockHash` (`max_values`: None, `max_size`: Some(44), added: 2519, mode: `MaxEncodedLen`)
73	/// Storage: `Subspace::SolutionRanges` (r:1 w:0)
74	/// Proof: `Subspace::SolutionRanges` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
75	/// Storage: `Subspace::BlockSlots` (r:1 w:0)
76	/// Proof: `Subspace::BlockSlots` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
77	/// Storage: `Subspace::ParentVoteVerificationData` (r:1 w:0)
78	/// Proof: `Subspace::ParentVoteVerificationData` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79	/// Storage: `Subspace::SegmentCommitment` (r:2 w:0)
80	/// Proof: `Subspace::SegmentCommitment` (`max_values`: None, `max_size`: None, mode: `Measured`)
81	/// Storage: `Subspace::CounterForSegmentCommitment` (r:1 w:0)
82	/// Proof: `Subspace::CounterForSegmentCommitment` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
83	/// Storage: `Subspace::ParentBlockAuthorInfo` (r:1 w:0)
84	/// Proof: `Subspace::ParentBlockAuthorInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
85	/// Storage: `Subspace::CurrentBlockAuthorInfo` (r:1 w:1)
86	/// Proof: `Subspace::CurrentBlockAuthorInfo` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
87	/// Storage: `Subspace::CurrentBlockVoters` (r:1 w:1)
88	/// Proof: `Subspace::CurrentBlockVoters` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
89	fn vote_with_equivocation() -> Weight {
90		// Proof Size summary in bytes:
91		//  Measured:  `532`
92		//  Estimated: `6472`
93		// Minimum execution time: 1_927_000_000 picoseconds.
94		Weight::from_parts(1_935_000_000, 0)
95			.saturating_add(Weight::from_parts(0, 6472))
96			.saturating_add(T::DbWeight::get().reads(10))
97			.saturating_add(T::DbWeight::get().writes(2))
98	}
99}