bridge_hub_rococo_runtime/weights/pallet_session.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_session`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `814af52b0d43`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/bridge-hub-rococo-runtime/bridge_hub_rococo_runtime.wasm
31// --pallet=pallet_session
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_session`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
53 /// Storage: `Session::NextKeys` (r:1 w:1)
54 /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
55 /// Storage: `Session::KeyOwner` (r:1 w:1)
56 /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
57 fn set_keys() -> Weight {
58 // Proof Size summary in bytes:
59 // Measured: `297`
60 // Estimated: `3762`
61 // Minimum execution time: 22_279_000 picoseconds.
62 Weight::from_parts(23_129_000, 0)
63 .saturating_add(Weight::from_parts(0, 3762))
64 .saturating_add(T::DbWeight::get().reads(2))
65 .saturating_add(T::DbWeight::get().writes(2))
66 }
67 /// Storage: `Session::NextKeys` (r:1 w:1)
68 /// Proof: `Session::NextKeys` (`max_values`: None, `max_size`: None, mode: `Measured`)
69 /// Storage: `Session::KeyOwner` (r:0 w:1)
70 /// Proof: `Session::KeyOwner` (`max_values`: None, `max_size`: None, mode: `Measured`)
71 fn purge_keys() -> Weight {
72 // Proof Size summary in bytes:
73 // Measured: `279`
74 // Estimated: `3744`
75 // Minimum execution time: 17_339_000 picoseconds.
76 Weight::from_parts(18_012_000, 0)
77 .saturating_add(Weight::from_parts(0, 3744))
78 .saturating_add(T::DbWeight::get().reads(1))
79 .saturating_add(T::DbWeight::get().writes(2))
80 }
81}