pallet_session_validator_management/
weights.rs

1
2//! Autogenerated weights for pallet_session_validator_management
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 51.0.0
5//! DATE: 2025-10-08, STEPS: `500`, REPEAT: `200`, 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_session_validator_management
19// --extrinsic
20// *
21// --steps=500
22// --repeat=200
23// --wasm-execution=compiled
24// --output
25// toolkit/committee-selection/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_session_validator_management.
38pub trait WeightInfo {
39	fn set(v: u32, ) -> Weight;
40	fn set_main_chain_scripts() -> Weight;
41}
42
43/// Weights for pallet_session_validator_management using the Substrate node and recommended hardware.
44pub struct SubstrateWeight<T>(PhantomData<T>);
45impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
46	/// Storage: `SessionCommitteeManagement::CurrentCommittee` (r:1 w:0)
47	/// Proof: `SessionCommitteeManagement::CurrentCommittee` (`max_values`: Some(1), `max_size`: Some(133130), added: 133625, mode: `MaxEncodedLen`)
48	/// Storage: `SessionCommitteeManagement::NextCommittee` (r:1 w:1)
49	/// Proof: `SessionCommitteeManagement::NextCommittee` (`max_values`: Some(1), `max_size`: Some(133130), added: 133625, mode: `MaxEncodedLen`)
50	/// The range of component `v` is `[0, 1024]`.
51	fn set(v: u32, ) -> Weight {
52		// Proof Size summary in bytes:
53		//  Measured:  `131`
54		//  Estimated: `134615`
55		// Minimum execution time: 10_000_000 picoseconds.
56		Weight::from_parts(12_492_663, 134615)
57			// Standard Error: 40
58			.saturating_add(Weight::from_parts(75_113, 0).saturating_mul(v.into()))
59			.saturating_add(T::DbWeight::get().reads(2_u64))
60			.saturating_add(T::DbWeight::get().writes(1_u64))
61	}
62	/// Storage: `SessionCommitteeManagement::MainChainScriptsConfiguration` (r:0 w:1)
63	/// Proof: `SessionCommitteeManagement::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: Some(178), added: 673, mode: `MaxEncodedLen`)
64	fn set_main_chain_scripts() -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `0`
67		//  Estimated: `0`
68		// Minimum execution time: 2_000_000 picoseconds.
69		Weight::from_parts(2_000_000, 0)
70			.saturating_add(T::DbWeight::get().writes(1_u64))
71	}
72}
73
74// For backwards compatibility and tests
75impl WeightInfo for () {
76	/// Storage: `SessionCommitteeManagement::CurrentCommittee` (r:1 w:0)
77	/// Proof: `SessionCommitteeManagement::CurrentCommittee` (`max_values`: Some(1), `max_size`: Some(133130), added: 133625, mode: `MaxEncodedLen`)
78	/// Storage: `SessionCommitteeManagement::NextCommittee` (r:1 w:1)
79	/// Proof: `SessionCommitteeManagement::NextCommittee` (`max_values`: Some(1), `max_size`: Some(133130), added: 133625, mode: `MaxEncodedLen`)
80	/// The range of component `v` is `[0, 1024]`.
81	fn set(v: u32, ) -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `131`
84		//  Estimated: `134615`
85		// Minimum execution time: 10_000_000 picoseconds.
86		Weight::from_parts(12_492_663, 134615)
87			// Standard Error: 40
88			.saturating_add(Weight::from_parts(75_113, 0).saturating_mul(v.into()))
89			.saturating_add(RocksDbWeight::get().reads(2_u64))
90			.saturating_add(RocksDbWeight::get().writes(1_u64))
91	}
92	/// Storage: `SessionCommitteeManagement::MainChainScriptsConfiguration` (r:0 w:1)
93	/// Proof: `SessionCommitteeManagement::MainChainScriptsConfiguration` (`max_values`: Some(1), `max_size`: Some(178), added: 673, mode: `MaxEncodedLen`)
94	fn set_main_chain_scripts() -> Weight {
95		// Proof Size summary in bytes:
96		//  Measured:  `0`
97		//  Estimated: `0`
98		// Minimum execution time: 2_000_000 picoseconds.
99		Weight::from_parts(2_000_000, 0)
100			.saturating_add(RocksDbWeight::get().writes(1_u64))
101	}
102}