1
// Copyright 2025 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

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

            
26
// Executed Command:
27
// ./frame-omni-bencher
28
// v1
29
// benchmark
30
// pallet
31
// --runtime=./target/production/wbuild/moonriver-runtime/moonriver_runtime.wasm
32
// --genesis-builder=runtime
33
// --genesis-builder-preset=development
34
// --steps=50
35
// --repeat=20
36
// --pallet=pallet_utility
37
// --extrinsic=*
38
// --wasm-execution=compiled
39
// --header=./file_header.txt
40
// --template=./benchmarking/frame-weight-template.hbs
41
// --disable-log-color
42
// --output=./runtime/moonriver/src/weights
43

            
44
#![cfg_attr(rustfmt, rustfmt_skip)]
45
#![allow(unused_parens)]
46
#![allow(unused_imports)]
47

            
48
use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
49
use sp_std::marker::PhantomData;
50

            
51
/// Weights for `pallet_utility`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
54
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
55
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56
	/// The range of component `c` is `[0, 1000]`.
57
64
	fn batch(c: u32, ) -> Weight {
58
		// Proof Size summary in bytes:
59
		//  Measured:  `42`
60
		//  Estimated: `1527`
61
		// Minimum execution time: 5_199_000 picoseconds.
62
64
		Weight::from_parts(10_281_084, 1527)
63
			// Standard Error: 1_579
64
64
			.saturating_add(Weight::from_parts(3_720_483, 0).saturating_mul(c.into()))
65
64
			.saturating_add(T::DbWeight::get().reads(1_u64))
66
64
	}
67
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
68
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
69
	fn as_derivative() -> Weight {
70
		// Proof Size summary in bytes:
71
		//  Measured:  `42`
72
		//  Estimated: `1527`
73
		// Minimum execution time: 7_354_000 picoseconds.
74
		Weight::from_parts(7_570_000, 1527)
75
			.saturating_add(T::DbWeight::get().reads(1_u64))
76
	}
77
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
78
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
79
	/// The range of component `c` is `[0, 1000]`.
80
	fn batch_all(c: u32, ) -> Weight {
81
		// Proof Size summary in bytes:
82
		//  Measured:  `42`
83
		//  Estimated: `1527`
84
		// Minimum execution time: 5_232_000 picoseconds.
85
		Weight::from_parts(5_691_021, 1527)
86
			// Standard Error: 1_855
87
			.saturating_add(Weight::from_parts(4_014_128, 0).saturating_mul(c.into()))
88
			.saturating_add(T::DbWeight::get().reads(1_u64))
89
	}
90
	fn dispatch_as() -> Weight {
91
		// Proof Size summary in bytes:
92
		//  Measured:  `0`
93
		//  Estimated: `0`
94
		// Minimum execution time: 7_267_000 picoseconds.
95
		Weight::from_parts(7_607_000, 0)
96
	}
97
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
98
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
99
	/// The range of component `c` is `[0, 1000]`.
100
	fn force_batch(c: u32, ) -> Weight {
101
		// Proof Size summary in bytes:
102
		//  Measured:  `42`
103
		//  Estimated: `1527`
104
		// Minimum execution time: 5_270_000 picoseconds.
105
		Weight::from_parts(6_701_861, 1527)
106
			// Standard Error: 1_944
107
			.saturating_add(Weight::from_parts(3_674_921, 0).saturating_mul(c.into()))
108
			.saturating_add(T::DbWeight::get().reads(1_u64))
109
	}
110
	fn dispatch_as_fallible() -> Weight {
111
		// Proof Size summary in bytes:
112
		//  Measured:  `0`
113
		//  Estimated: `0`
114
		// Minimum execution time: 7_240_000 picoseconds.
115
		Weight::from_parts(7_500_000, 0)
116
	}
117
	/// Storage: `MaintenanceMode::MaintenanceMode` (r:1 w:0)
118
	/// Proof: `MaintenanceMode::MaintenanceMode` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
119
	fn if_else() -> Weight {
120
		// Proof Size summary in bytes:
121
		//  Measured:  `42`
122
		//  Estimated: `1527`
123
		// Minimum execution time: 11_949_000 picoseconds.
124
		Weight::from_parts(12_419_000, 1527)
125
			.saturating_add(T::DbWeight::get().reads(1_u64))
126
	}
127
}