pallet_session.rs 1.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
// This file is part of Polkadot.

// Polkadot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.

// Polkadot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

// You should have received a copy of the GNU General Public License
// along with Polkadot.  If not, see <http://www.gnu.org/licenses/>.
Denis_P's avatar
Denis_P committed
16
//! Autogenerated weights for `pallet_session`
17
//!
18
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
19
//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
Shawn Tabrizi's avatar
Shawn Tabrizi committed
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128

// Executed Command:
// target/release/polkadot
// benchmark
// --chain=polkadot-dev
// --steps=50
// --repeat=20
// --pallet=pallet_session
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --header=./file_header.txt
// --output=./runtime/polkadot/src/weights/

36
37
38
39
40
41
42

#![allow(unused_parens)]
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;

Denis_P's avatar
Denis_P committed
43
/// Weight functions for `pallet_session`.
44
pub struct WeightInfo<T>(PhantomData<T>);
45
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
46
	fn set_keys() -> Weight {
47
		(71_592_000 as Weight)
48
49
			.saturating_add(T::DbWeight::get().reads(8 as Weight))
			.saturating_add(T::DbWeight::get().writes(7 as Weight))
50
51
	}
	fn purge_keys() -> Weight {
52
		(40_063_000 as Weight)
53
			.saturating_add(T::DbWeight::get().reads(2 as Weight))
54
			.saturating_add(T::DbWeight::get().writes(7 as Weight))
55
56
	}
}