referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_session.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8
9// Polkadot is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13
14// You should have received a copy of the GNU General Public License
15// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16//! Autogenerated weights for `pallet_session`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19//! DATE: 2022-03-15, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024
21
22// Executed Command:
23// ./target/production/polkadot
24// benchmark
25// --chain=rococo-dev
26// --steps=50
27// --repeat=20
28// --pallet=pallet_session
29// --extrinsic=*
30// --execution=wasm
31// --wasm-execution=compiled
32// --heap-pages=4096
33// --header=./file_header.txt
34// --output=./runtime/polkadot/src/weights/pallet_session.rs
35
36#![cfg_attr(rustfmt, rustfmt_skip)]
37#![allow(unused_parens)]
38#![allow(unused_imports)]
39
40use frame_support::{traits::Get, weights::Weight};
41use core::marker::PhantomData;
42
43/// Weight functions for `pallet_session`.
44pub struct WeightInfo<T>(PhantomData<T>);
45impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
46	// Storage: Staking Ledger (r:1 w:0)
47	// Storage: Session NextKeys (r:1 w:1)
48	// Storage: Session KeyOwner (r:6 w:6)
49	fn set_keys() -> Weight {
50		Weight::from_parts(36_115_000 as u64, 0)
51			.saturating_add(T::DbWeight::get().reads(8 as u64))
52			.saturating_add(T::DbWeight::get().writes(7 as u64))
53	}
54	// Storage: Staking Ledger (r:1 w:0)
55	// Storage: Session NextKeys (r:1 w:1)
56	// Storage: Session KeyOwner (r:0 w:6)
57	fn purge_keys() -> Weight {
58		Weight::from_parts(21_459_000 as u64, 0)
59			.saturating_add(T::DbWeight::get().reads(2 as u64))
60			.saturating_add(T::DbWeight::get().writes(7 as u64))
61	}
62}