pallet_balances.rs 2.64 KB
Newer Older
1
// Copyright 2017-2020 Parity Technologies (UK) Ltd.
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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/>.
16
17
//! Autogenerated weights for pallet_balances
//!
18
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
19
//! DATE: 2021-04-27, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
Shawn Tabrizi's avatar
Shawn Tabrizi committed
20
21
22
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128

// Executed Command:
23
// target/release/polkadot
Shawn Tabrizi's avatar
Shawn Tabrizi committed
24
// benchmark
25
// --chain=kusama-dev
Shawn Tabrizi's avatar
Shawn Tabrizi committed
26
27
28
29
30
31
32
// --steps=50
// --repeat=20
// --pallet=pallet_balances
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
33
// --header=./file_header.txt
Shawn Tabrizi's avatar
Shawn Tabrizi committed
34
35
// --output=./runtime/kusama/src/weights/

36

37
38
#![allow(unused_parens)]
#![allow(unused_imports)]
39

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

Shawn Tabrizi's avatar
Shawn Tabrizi committed
43
/// Weight functions for pallet_balances.
44
pub struct WeightInfo<T>(PhantomData<T>);
45
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
46
	fn transfer() -> Weight {
47
		(73_549_000 as Weight)
48
49
			.saturating_add(T::DbWeight::get().reads(1 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
50
51
	}
	fn transfer_keep_alive() -> Weight {
52
		(54_531_000 as Weight)
53
54
			.saturating_add(T::DbWeight::get().reads(1 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
55
56
	}
	fn set_balance_creating() -> Weight {
57
		(28_994_000 as Weight)
58
59
			.saturating_add(T::DbWeight::get().reads(1 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
60
61
	}
	fn set_balance_killing() -> Weight {
62
		(34_581_000 as Weight)
63
64
			.saturating_add(T::DbWeight::get().reads(1 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
65
66
	}
	fn force_transfer() -> Weight {
67
		(72_045_000 as Weight)
68
69
			.saturating_add(T::DbWeight::get().reads(2 as Weight))
			.saturating_add(T::DbWeight::get().writes(2 as Weight))
70
	}
71
72
73
74
75
	fn transfer_all() -> Weight {
		(84_170_000 as Weight)
			.saturating_add(T::DbWeight::get().reads(1 as Weight))
			.saturating_add(T::DbWeight::get().writes(1 as Weight))
	}
76
}