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 4.0.0-dev
5//! DATE: 2023-11-15, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `Karans-MacBook-Air.local`, CPU: `<UNKNOWN>`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
9
10// Executed Command:
11// ./target/debug/partner-chains-node
12// benchmark
13// pallet
14// --chain=dev
15// --steps=50
16// --repeat=20
17// --pallet=pallet_session_validator_management
18// --extrinsic=*
19// --execution=wasm
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./pallets/session-validator-management/src/weights.rs
23// --template=./.maintain/frame-weight-template.hbs
24
25#![cfg_attr(rustfmt, rustfmt_skip)]
26#![allow(unused_parens)]
27#![allow(unused_imports)]
28#![allow(missing_docs)]
29
30use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
31use core::marker::PhantomData;
32
33/// Weight functions needed for pallet_session_validator_management.
34pub trait WeightInfo {
35 fn set(v: u32, ) -> Weight;
36}
37
38/// Weights for pallet_session_validator_management using the Substrate node and recommended hardware.
39pub struct SubstrateWeight<T>(PhantomData<T>);
40impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
41 /// Storage: `Aura::CurrentSlot` (r:1 w:0)
42 /// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
43 /// Storage: `SessionCommitteeManagement::Committee` (r:1 w:1)
44 /// Proof: `SessionCommitteeManagement::Committee` (`max_values`: None, `max_size`: Some(1073), added: 3548, mode: `MaxEncodedLen`)
45 /// The range of component `v` is `[0, 32]`.
46 fn set(v: u32, ) -> Weight {
47 // Proof Size summary in bytes:
48 // Measured: `274`
49 // Estimated: `4538`
50 // Minimum execution time: 173_000_000 picoseconds.
51 Weight::from_parts(180_296_622, 4538)
52 // Standard Error: 128_626
53 .saturating_add(Weight::from_parts(1_617_743, 0).saturating_mul(v.into()))
54 .saturating_add(T::DbWeight::get().reads(2_u64))
55 .saturating_add(T::DbWeight::get().writes(1_u64))
56 }
57}
58
59// For backwards compatibility and tests
60impl WeightInfo for () {
61 /// Storage: `Aura::CurrentSlot` (r:1 w:0)
62 /// Proof: `Aura::CurrentSlot` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
63 /// Storage: `SessionCommitteeManagement::Committee` (r:1 w:1)
64 /// Proof: `SessionCommitteeManagement::Committee` (`max_values`: None, `max_size`: Some(1073), added: 3548, mode: `MaxEncodedLen`)
65 /// The range of component `v` is `[0, 32]`.
66 fn set(v: u32, ) -> Weight {
67 // Proof Size summary in bytes:
68 // Measured: `274`
69 // Estimated: `4538`
70 // Minimum execution time: 173_000_000 picoseconds.
71 Weight::from_parts(180_296_622, 4538)
72 // Standard Error: 128_626
73 .saturating_add(Weight::from_parts(1_617_743, 0).saturating_mul(v.into()))
74 .saturating_add(RocksDbWeight::get().reads(2_u64))
75 .saturating_add(RocksDbWeight::get().writes(1_u64))
76 }
77}