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 43.0.0
20
//! DATE: 2025-02-04, 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: None, DB CACHE: 1024
24

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

            
41
#![cfg_attr(rustfmt, rustfmt_skip)]
42
#![allow(unused_parens)]
43
#![allow(unused_imports)]
44

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

            
48
/// Weights for `pallet_balances`.
49
pub struct WeightInfo<T>(PhantomData<T>);
50
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
51
	/// Storage: `System::Account` (r:1 w:1)
52
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
53
18
	fn transfer_allow_death() -> Weight {
54
18
		// Proof Size summary in bytes:
55
18
		//  Measured:  `39`
56
18
		//  Estimated: `3581`
57
18
		// Minimum execution time: 42_106_000 picoseconds.
58
18
		Weight::from_parts(42_702_000, 3581)
59
18
			.saturating_add(T::DbWeight::get().reads(1_u64))
60
18
			.saturating_add(T::DbWeight::get().writes(1_u64))
61
18
	}
62
	/// Storage: `System::Account` (r:1 w:1)
63
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
64
	fn transfer_keep_alive() -> Weight {
65
		// Proof Size summary in bytes:
66
		//  Measured:  `39`
67
		//  Estimated: `3581`
68
		// Minimum execution time: 40_989_000 picoseconds.
69
		Weight::from_parts(41_700_000, 3581)
70
			.saturating_add(T::DbWeight::get().reads(1_u64))
71
			.saturating_add(T::DbWeight::get().writes(1_u64))
72
	}
73
	/// Storage: `System::Account` (r:1 w:1)
74
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
75
	fn force_set_balance_creating() -> Weight {
76
		// Proof Size summary in bytes:
77
		//  Measured:  `162`
78
		//  Estimated: `3581`
79
		// Minimum execution time: 16_026_000 picoseconds.
80
		Weight::from_parts(16_571_000, 3581)
81
			.saturating_add(T::DbWeight::get().reads(1_u64))
82
			.saturating_add(T::DbWeight::get().writes(1_u64))
83
	}
84
	/// Storage: `System::Account` (r:1 w:1)
85
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
86
	fn force_set_balance_killing() -> Weight {
87
		// Proof Size summary in bytes:
88
		//  Measured:  `162`
89
		//  Estimated: `3581`
90
		// Minimum execution time: 22_826_000 picoseconds.
91
		Weight::from_parts(23_476_000, 3581)
92
			.saturating_add(T::DbWeight::get().reads(1_u64))
93
			.saturating_add(T::DbWeight::get().writes(1_u64))
94
	}
95
	/// Storage: `System::Account` (r:2 w:2)
96
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
97
	fn force_transfer() -> Weight {
98
		// Proof Size summary in bytes:
99
		//  Measured:  `201`
100
		//  Estimated: `6172`
101
		// Minimum execution time: 44_969_000 picoseconds.
102
		Weight::from_parts(46_026_000, 6172)
103
			.saturating_add(T::DbWeight::get().reads(2_u64))
104
			.saturating_add(T::DbWeight::get().writes(2_u64))
105
	}
106
	/// Storage: `System::Account` (r:1 w:1)
107
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
108
	fn transfer_all() -> Weight {
109
		// Proof Size summary in bytes:
110
		//  Measured:  `39`
111
		//  Estimated: `3581`
112
		// Minimum execution time: 49_754_000 picoseconds.
113
		Weight::from_parts(50_724_000, 3581)
114
			.saturating_add(T::DbWeight::get().reads(1_u64))
115
			.saturating_add(T::DbWeight::get().writes(1_u64))
116
	}
117
	/// Storage: `System::Account` (r:1 w:1)
118
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
119
	fn force_unreserve() -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `162`
122
		//  Estimated: `3581`
123
		// Minimum execution time: 18_490_000 picoseconds.
124
		Weight::from_parts(19_050_000, 3581)
125
			.saturating_add(T::DbWeight::get().reads(1_u64))
126
			.saturating_add(T::DbWeight::get().writes(1_u64))
127
	}
128
	/// Storage: `System::Account` (r:999 w:999)
129
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
130
	/// The range of component `u` is `[1, 1000]`.
131
	fn upgrade_accounts(u: u32, ) -> Weight {
132
		// Proof Size summary in bytes:
133
		//  Measured:  `534 + u * (123 ±0)`
134
		//  Estimated: `990 + u * (2591 ±0)`
135
		// Minimum execution time: 17_406_000 picoseconds.
136
		Weight::from_parts(17_660_000, 990)
137
			// Standard Error: 10_177
138
			.saturating_add(Weight::from_parts(14_027_950, 0).saturating_mul(u.into()))
139
			.saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(u.into())))
140
			.saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(u.into())))
141
			.saturating_add(Weight::from_parts(0, 2591).saturating_mul(u.into()))
142
	}
143
	/// Storage: `Balances::InactiveIssuance` (r:1 w:0)
144
	/// Proof: `Balances::InactiveIssuance` (`max_values`: Some(1), `max_size`: Some(16), added: 511, mode: `MaxEncodedLen`)
145
	fn force_adjust_total_issuance() -> Weight {
146
		// Proof Size summary in bytes:
147
		//  Measured:  `0`
148
		//  Estimated: `1501`
149
		// Minimum execution time: 6_772_000 picoseconds.
150
		Weight::from_parts(6_890_000, 1501)
151
			.saturating_add(T::DbWeight::get().reads(1_u64))
152
	}
153
	fn burn_allow_death() -> Weight {
154
		// Proof Size summary in bytes:
155
		//  Measured:  `0`
156
		//  Estimated: `0`
157
		// Minimum execution time: 28_810_000 picoseconds.
158
		Weight::from_parts(29_187_000, 0)
159
	}
160
	fn burn_keep_alive() -> Weight {
161
		// Proof Size summary in bytes:
162
		//  Measured:  `0`
163
		//  Estimated: `0`
164
		// Minimum execution time: 22_089_000 picoseconds.
165
		Weight::from_parts(22_616_000, 0)
166
	}
167
}