1
// Copyright 2024 Moonbeam foundation
2
// This file is part of Moonbeam.
3

            
4
// Moonbeam 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
// Moonbeam 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 Moonbeam.  If not, see <http://www.gnu.org/licenses/>.
16

            
17
//! Autogenerated weights for `pallet_balances`
18
//!
19
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 42.0.0
20
//! DATE: 2024-10-10, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21
//! WORST CASE MAP SIZE: `1000000`
22
//! HOSTNAME: `ip-10-0-0-176`, CPU: `Intel(R) Xeon(R) Platinum 8375C CPU @ 2.90GHz`
23
//! WASM-EXECUTION: Compiled, CHAIN: Some("moonbase-dev"), DB CACHE: 1024
24

            
25
// Executed Command:
26
// ./target/production/moonbeam
27
// benchmark
28
// pallet
29
// --chain=moonbase-dev
30
// --steps=50
31
// --repeat=20
32
// --pallet=pallet_balances
33
// --extrinsic=*
34
// --wasm-execution=compiled
35
// --header=./file_header.txt
36
// --template=./benchmarking/frame-weight-template.hbs
37
// --output=./runtime/common/src/weights/
38

            
39
#![cfg_attr(rustfmt, rustfmt_skip)]
40
#![allow(unused_parens)]
41
#![allow(unused_imports)]
42

            
43
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
44
use sp_std::marker::PhantomData;
45

            
46
/// Weights for `pallet_balances`.
47
pub struct WeightInfo<T>(PhantomData<T>);
48
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
49
	/// Storage: `System::Account` (r:1 w:1)
50
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
51
66
	fn transfer_allow_death() -> Weight {
52
66
		// Proof Size summary in bytes:
53
66
		//  Measured:  `72`
54
66
		//  Estimated: `3581`
55
66
		// Minimum execution time: 45_979_000 picoseconds.
56
66
		Weight::from_parts(46_984_000, 3581)
57
66
			.saturating_add(T::DbWeight::get().reads(1_u64))
58
66
			.saturating_add(T::DbWeight::get().writes(1_u64))
59
66
	}
60
	/// Storage: `System::Account` (r:1 w:1)
61
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
62
	fn transfer_keep_alive() -> Weight {
63
		// Proof Size summary in bytes:
64
		//  Measured:  `72`
65
		//  Estimated: `3581`
66
		// Minimum execution time: 39_051_000 picoseconds.
67
		Weight::from_parts(40_151_000, 3581)
68
			.saturating_add(T::DbWeight::get().reads(1_u64))
69
			.saturating_add(T::DbWeight::get().writes(1_u64))
70
	}
71
	/// Storage: `System::Account` (r:1 w:1)
72
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
73
	fn force_set_balance_creating() -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `195`
76
		//  Estimated: `3581`
77
		// Minimum execution time: 14_598_000 picoseconds.
78
		Weight::from_parts(15_096_000, 3581)
79
			.saturating_add(T::DbWeight::get().reads(1_u64))
80
			.saturating_add(T::DbWeight::get().writes(1_u64))
81
	}
82
	/// Storage: `System::Account` (r:1 w:1)
83
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
84
	fn force_set_balance_killing() -> Weight {
85
		// Proof Size summary in bytes:
86
		//  Measured:  `195`
87
		//  Estimated: `3581`
88
		// Minimum execution time: 19_713_000 picoseconds.
89
		Weight::from_parts(20_449_000, 3581)
90
			.saturating_add(T::DbWeight::get().reads(1_u64))
91
			.saturating_add(T::DbWeight::get().writes(1_u64))
92
	}
93
	/// Storage: `System::Account` (r:2 w:2)
94
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
95
	fn force_transfer() -> Weight {
96
		// Proof Size summary in bytes:
97
		//  Measured:  `267`
98
		//  Estimated: `6172`
99
		// Minimum execution time: 48_104_000 picoseconds.
100
		Weight::from_parts(48_949_000, 6172)
101
			.saturating_add(T::DbWeight::get().reads(2_u64))
102
			.saturating_add(T::DbWeight::get().writes(2_u64))
103
	}
104
	/// Storage: `System::Account` (r:1 w:1)
105
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
106
	fn transfer_all() -> Weight {
107
		// Proof Size summary in bytes:
108
		//  Measured:  `72`
109
		//  Estimated: `3581`
110
		// Minimum execution time: 48_680_000 picoseconds.
111
		Weight::from_parts(49_526_000, 3581)
112
			.saturating_add(T::DbWeight::get().reads(1_u64))
113
			.saturating_add(T::DbWeight::get().writes(1_u64))
114
	}
115
	/// Storage: `System::Account` (r:1 w:1)
116
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
117
	fn force_unreserve() -> Weight {
118
		// Proof Size summary in bytes:
119
		//  Measured:  `195`
120
		//  Estimated: `3581`
121
		// Minimum execution time: 17_526_000 picoseconds.
122
		Weight::from_parts(18_213_000, 3581)
123
			.saturating_add(T::DbWeight::get().reads(1_u64))
124
			.saturating_add(T::DbWeight::get().writes(1_u64))
125
	}
126
	/// Storage: `System::Account` (r:999 w:999)
127
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
128
	/// The range of component `u` is `[1, 1000]`.
129
	fn upgrade_accounts(u: u32, ) -> Weight {
130
		// Proof Size summary in bytes:
131
		//  Measured:  `1277 + u * (123 ±0)`
132
		//  Estimated: `990 + u * (2591 ±0)`
133
		// Minimum execution time: 16_081_000 picoseconds.
134
		Weight::from_parts(16_407_000, 990)
135
			// Standard Error: 9_636
136
			.saturating_add(Weight::from_parts(13_603_751, 0).saturating_mul(u.into()))
137
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
138
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
139
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(u.into()))
140
	}
141
	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
142
	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
143
	fn force_adjust_total_issuance() -> Weight {
144
		// Proof Size summary in bytes:
145
		//  Measured:  `0`
146
		//  Estimated: `1501`
147
		// Minimum execution time: 5_423_000 picoseconds.
148
		Weight::from_parts(5_831_000, 1501)
149
			.saturating_add(T::DbWeight::get().reads(1_u64))
150
	}
151
	fn burn_allow_death() -> Weight {
152
		// Proof Size summary in bytes:
153
		//  Measured:  `0`
154
		//  Estimated: `0`
155
		// Minimum execution time: 27_797_000 picoseconds.
156
		Weight::from_parts(28_485_000, 0)
157
	}
158
	fn burn_keep_alive() -> Weight {
159
		// Proof Size summary in bytes:
160
		//  Measured:  `0`
161
		//  Estimated: `0`
162
		// Minimum execution time: 21_340_000 picoseconds.
163
		Weight::from_parts(21_907_000, 0)
164
	}
165
}