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_author_mapping`
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_author_mapping
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_author_mapping`.
52
pub struct WeightInfo<T>(PhantomData<T>);
53
impl<T: frame_system::Config> pallet_author_mapping::WeightInfo for WeightInfo<T> {
54
	/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
55
	/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
56
	/// Storage: `System::Account` (r:1 w:1)
57
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
58
	/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
59
	/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
60
	fn add_association() -> Weight {
61
		// Proof Size summary in bytes:
62
		//  Measured:  `343`
63
		//  Estimated: `3808`
64
		// Minimum execution time: 32_997_000 picoseconds.
65
		Weight::from_parts(34_530_000, 3808)
66
			.saturating_add(T::DbWeight::get().reads(2_u64))
67
			.saturating_add(T::DbWeight::get().writes(3_u64))
68
	}
69
	/// Storage: `AuthorMapping::MappingWithDeposit` (r:2 w:2)
70
	/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
71
	/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
72
	/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
73
	fn update_association() -> Weight {
74
		// Proof Size summary in bytes:
75
		//  Measured:  `292`
76
		//  Estimated: `6232`
77
		// Minimum execution time: 20_125_000 picoseconds.
78
		Weight::from_parts(20_638_000, 6232)
79
			.saturating_add(T::DbWeight::get().reads(2_u64))
80
			.saturating_add(T::DbWeight::get().writes(3_u64))
81
	}
82
	/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
83
	/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
84
	/// Storage: `System::Account` (r:1 w:1)
85
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
86
	/// Storage: `AuthorMapping::NimbusLookup` (r:0 w:1)
87
	/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
88
	fn clear_association() -> Weight {
89
		// Proof Size summary in bytes:
90
		//  Measured:  `420`
91
		//  Estimated: `3885`
92
		// Minimum execution time: 34_964_000 picoseconds.
93
		Weight::from_parts(36_126_000, 3885)
94
			.saturating_add(T::DbWeight::get().reads(2_u64))
95
			.saturating_add(T::DbWeight::get().writes(3_u64))
96
	}
97
	/// Storage: `AuthorMapping::NimbusLookup` (r:1 w:1)
98
	/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
99
	/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
100
	/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
101
	/// Storage: `System::Account` (r:1 w:1)
102
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
103
	fn remove_keys() -> Weight {
104
		// Proof Size summary in bytes:
105
		//  Measured:  `514`
106
		//  Estimated: `3979`
107
		// Minimum execution time: 39_670_000 picoseconds.
108
		Weight::from_parts(40_157_000, 3979)
109
			.saturating_add(T::DbWeight::get().reads(3_u64))
110
			.saturating_add(T::DbWeight::get().writes(3_u64))
111
	}
112
	/// Storage: `AuthorMapping::NimbusLookup` (r:1 w:1)
113
	/// Proof: `AuthorMapping::NimbusLookup` (`max_values`: None, `max_size`: None, mode: `Measured`)
114
	/// Storage: `AuthorMapping::MappingWithDeposit` (r:1 w:1)
115
	/// Proof: `AuthorMapping::MappingWithDeposit` (`max_values`: None, `max_size`: None, mode: `Measured`)
116
	/// Storage: `System::Account` (r:1 w:1)
117
	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(116), added: 2591, mode: `MaxEncodedLen`)
118
	fn set_keys() -> Weight {
119
		// Proof Size summary in bytes:
120
		//  Measured:  `399`
121
		//  Estimated: `3864`
122
		// Minimum execution time: 38_694_000 picoseconds.
123
		Weight::from_parts(39_910_000, 3864)
124
			.saturating_add(T::DbWeight::get().reads(3_u64))
125
			.saturating_add(T::DbWeight::get().writes(3_u64))
126
	}
127
}