referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
pallet_child_bounties.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Polkadot.
3
4// Polkadot 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// Polkadot 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 Polkadot.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `pallet_child_bounties`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `d3a9aad6f7a3`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
23//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
24
25// Executed Command:
26// frame-omni-bencher
27// v1
28// benchmark
29// pallet
30// --extrinsic=*
31// --runtime=target/production/wbuild/rococo-runtime/rococo_runtime.wasm
32// --pallet=pallet_child_bounties
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/src/weights
35// --wasm-execution=compiled
36// --steps=50
37// --repeat=20
38// --heap-pages=4096
39// --no-storage-info
40// --no-min-squares
41// --no-median-slopes
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47
48use frame_support::{traits::Get, weights::Weight};
49use core::marker::PhantomData;
50
51/// Weight functions for `pallet_child_bounties`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_child_bounties::WeightInfo for WeightInfo<T> {
54	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
55	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
56	/// Storage: `Bounties::Bounties` (r:1 w:0)
57	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
58	/// Storage: `System::Account` (r:2 w:2)
59	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
60	/// Storage: `ChildBounties::ParentTotalChildBounties` (r:1 w:1)
61	/// Proof: `ChildBounties::ParentTotalChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
62	/// Storage: `ChildBounties::ChildBountyDescriptionsV1` (r:0 w:1)
63	/// Proof: `ChildBounties::ChildBountyDescriptionsV1` (`max_values`: None, `max_size`: Some(16412), added: 18887, mode: `MaxEncodedLen`)
64	/// Storage: `ChildBounties::ChildBounties` (r:0 w:1)
65	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
66	/// The range of component `d` is `[0, 16384]`.
67	fn add_child_bounty(d: u32, ) -> Weight {
68		// Proof Size summary in bytes:
69		//  Measured:  `540`
70		//  Estimated: `6196`
71		// Minimum execution time: 69_990_000 picoseconds.
72		Weight::from_parts(72_661_004, 0)
73			.saturating_add(Weight::from_parts(0, 6196))
74			// Standard Error: 12
75			.saturating_add(Weight::from_parts(589, 0).saturating_mul(d.into()))
76			.saturating_add(T::DbWeight::get().reads(5))
77			.saturating_add(T::DbWeight::get().writes(6))
78	}
79	/// Storage: `Bounties::Bounties` (r:1 w:0)
80	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
81	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
82	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
83	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
84	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
85	fn propose_curator() -> Weight {
86		// Proof Size summary in bytes:
87		//  Measured:  `604`
88		//  Estimated: `3642`
89		// Minimum execution time: 19_875_000 picoseconds.
90		Weight::from_parts(20_672_000, 0)
91			.saturating_add(Weight::from_parts(0, 3642))
92			.saturating_add(T::DbWeight::get().reads(3))
93			.saturating_add(T::DbWeight::get().writes(2))
94	}
95	/// Storage: `Bounties::Bounties` (r:1 w:0)
96	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
97	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
98	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
99	/// Storage: `System::Account` (r:1 w:1)
100	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
101	fn accept_curator() -> Weight {
102		// Proof Size summary in bytes:
103		//  Measured:  `773`
104		//  Estimated: `3642`
105		// Minimum execution time: 35_098_000 picoseconds.
106		Weight::from_parts(36_400_000, 0)
107			.saturating_add(Weight::from_parts(0, 3642))
108			.saturating_add(T::DbWeight::get().reads(3))
109			.saturating_add(T::DbWeight::get().writes(2))
110	}
111	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
112	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
113	/// Storage: `Bounties::Bounties` (r:1 w:0)
114	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
115	/// Storage: `System::Account` (r:1 w:1)
116	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
117	fn unassign_curator() -> Weight {
118		// Proof Size summary in bytes:
119		//  Measured:  `773`
120		//  Estimated: `3642`
121		// Minimum execution time: 46_447_000 picoseconds.
122		Weight::from_parts(47_620_000, 0)
123			.saturating_add(Weight::from_parts(0, 3642))
124			.saturating_add(T::DbWeight::get().reads(3))
125			.saturating_add(T::DbWeight::get().writes(2))
126	}
127	/// Storage: `Bounties::Bounties` (r:1 w:0)
128	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
129	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
130	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
131	fn award_child_bounty() -> Weight {
132		// Proof Size summary in bytes:
133		//  Measured:  `670`
134		//  Estimated: `3642`
135		// Minimum execution time: 22_125_000 picoseconds.
136		Weight::from_parts(22_974_000, 0)
137			.saturating_add(Weight::from_parts(0, 3642))
138			.saturating_add(T::DbWeight::get().reads(2))
139			.saturating_add(T::DbWeight::get().writes(1))
140	}
141	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
142	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
143	/// Storage: `System::Account` (r:3 w:3)
144	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
145	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
146	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
147	/// Storage: `ChildBounties::ChildBountyDescriptionsV1` (r:0 w:1)
148	/// Proof: `ChildBounties::ChildBountyDescriptionsV1` (`max_values`: None, `max_size`: Some(16412), added: 18887, mode: `MaxEncodedLen`)
149	fn claim_child_bounty() -> Weight {
150		// Proof Size summary in bytes:
151		//  Measured:  `609`
152		//  Estimated: `8799`
153		// Minimum execution time: 110_570_000 picoseconds.
154		Weight::from_parts(112_195_000, 0)
155			.saturating_add(Weight::from_parts(0, 8799))
156			.saturating_add(T::DbWeight::get().reads(5))
157			.saturating_add(T::DbWeight::get().writes(6))
158	}
159	/// Storage: `Bounties::Bounties` (r:1 w:0)
160	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
161	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
162	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
163	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
164	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
165	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
166	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
167	/// Storage: `System::Account` (r:2 w:2)
168	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
169	/// Storage: `ChildBounties::ChildBountyDescriptionsV1` (r:0 w:1)
170	/// Proof: `ChildBounties::ChildBountyDescriptionsV1` (`max_values`: None, `max_size`: Some(16412), added: 18887, mode: `MaxEncodedLen`)
171	fn close_child_bounty_added() -> Weight {
172		// Proof Size summary in bytes:
173		//  Measured:  `850`
174		//  Estimated: `6196`
175		// Minimum execution time: 76_645_000 picoseconds.
176		Weight::from_parts(78_896_000, 0)
177			.saturating_add(Weight::from_parts(0, 6196))
178			.saturating_add(T::DbWeight::get().reads(6))
179			.saturating_add(T::DbWeight::get().writes(6))
180	}
181	/// Storage: `Bounties::Bounties` (r:1 w:0)
182	/// Proof: `Bounties::Bounties` (`max_values`: None, `max_size`: Some(177), added: 2652, mode: `MaxEncodedLen`)
183	/// Storage: `ChildBounties::ChildBounties` (r:1 w:1)
184	/// Proof: `ChildBounties::ChildBounties` (`max_values`: None, `max_size`: Some(145), added: 2620, mode: `MaxEncodedLen`)
185	/// Storage: `System::Account` (r:3 w:3)
186	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
187	/// Storage: `ChildBounties::ChildrenCuratorFees` (r:1 w:1)
188	/// Proof: `ChildBounties::ChildrenCuratorFees` (`max_values`: None, `max_size`: Some(28), added: 2503, mode: `MaxEncodedLen`)
189	/// Storage: `ChildBounties::ParentChildBounties` (r:1 w:1)
190	/// Proof: `ChildBounties::ParentChildBounties` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
191	/// Storage: `ChildBounties::ChildBountyDescriptionsV1` (r:0 w:1)
192	/// Proof: `ChildBounties::ChildBountyDescriptionsV1` (`max_values`: None, `max_size`: Some(16412), added: 18887, mode: `MaxEncodedLen`)
193	fn close_child_bounty_active() -> Weight {
194		// Proof Size summary in bytes:
195		//  Measured:  `1034`
196		//  Estimated: `8799`
197		// Minimum execution time: 94_008_000 picoseconds.
198		Weight::from_parts(95_861_000, 0)
199			.saturating_add(Weight::from_parts(0, 8799))
200			.saturating_add(T::DbWeight::get().reads(7))
201			.saturating_add(T::DbWeight::get().writes(7))
202	}
203}