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/moonriver-runtime/moonriver_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/moonriver/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
24
	fn transfer_allow_death() -> Weight {
54
24
		// Proof Size summary in bytes:
55
24
		//  Measured:  `39`
56
24
		//  Estimated: `3581`
57
24
		// Minimum execution time: 40_338_000 picoseconds.
58
24
		Weight::from_parts(41_022_000, 3581)
59
24
			.saturating_add(T::DbWeight::get().reads(1_u64))
60
24
			.saturating_add(T::DbWeight::get().writes(1_u64))
61
24
	}
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: 39_351_000 picoseconds.
69
		Weight::from_parts(40_107_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: 15_806_000 picoseconds.
80
		Weight::from_parts(16_480_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_973_000 picoseconds.
91
		Weight::from_parts(23_350_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: 43_473_000 picoseconds.
102
		Weight::from_parts(44_347_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: 47_871_000 picoseconds.
113
		Weight::from_parts(48_923_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_687_000 picoseconds.
124
		Weight::from_parts(19_258_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:  `443 + u * (123 ±0)`
134
		//  Estimated: `990 + u * (2591 ±0)`
135
		// Minimum execution time: 17_271_000 picoseconds.
136
		Weight::from_parts(17_544_000, 990)
137
			// Standard Error: 9_937
138
			.saturating_add(Weight::from_parts(13_783_888, 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_545_000 picoseconds.
150
		Weight::from_parts(6_798_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: 27_896_000 picoseconds.
158
		Weight::from_parts(28_689_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: 21_489_000 picoseconds.
165
		Weight::from_parts(22_118_000, 0)
166
	}
167
}