collectives_westend_runtime/weights/pallet_collective_content.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_collective_content`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `e0f303704c84`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/collectives-westend-runtime/collectives_westend_runtime.wasm
31// --pallet=pallet_collective_content
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/collectives/collectives-westend/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_collective_content`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_collective_content::WeightInfo for WeightInfo<T> {
53 /// Storage: `AmbassadorContent::Charter` (r:0 w:1)
54 /// Proof: `AmbassadorContent::Charter` (`max_values`: Some(1), `max_size`: Some(70), added: 565, mode: `MaxEncodedLen`)
55 fn set_charter() -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `0`
58 // Estimated: `0`
59 // Minimum execution time: 6_158_000 picoseconds.
60 Weight::from_parts(6_430_000, 0)
61 .saturating_add(Weight::from_parts(0, 0))
62 .saturating_add(T::DbWeight::get().writes(1))
63 }
64 /// Storage: `AmbassadorCollective::Members` (r:1 w:0)
65 /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
66 /// Storage: `AmbassadorContent::CounterForAnnouncements` (r:1 w:1)
67 /// Proof: `AmbassadorContent::CounterForAnnouncements` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
68 /// Storage: `AmbassadorContent::Announcements` (r:1 w:1)
69 /// Proof: `AmbassadorContent::Announcements` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
70 fn announce() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `212`
73 // Estimated: `3555`
74 // Minimum execution time: 19_451_000 picoseconds.
75 Weight::from_parts(20_206_000, 0)
76 .saturating_add(Weight::from_parts(0, 3555))
77 .saturating_add(T::DbWeight::get().reads(3))
78 .saturating_add(T::DbWeight::get().writes(2))
79 }
80 /// Storage: `AmbassadorCollective::Members` (r:1 w:0)
81 /// Proof: `AmbassadorCollective::Members` (`max_values`: None, `max_size`: Some(42), added: 2517, mode: `MaxEncodedLen`)
82 /// Storage: `AmbassadorContent::Announcements` (r:1 w:1)
83 /// Proof: `AmbassadorContent::Announcements` (`max_values`: None, `max_size`: Some(90), added: 2565, mode: `MaxEncodedLen`)
84 /// Storage: `AmbassadorContent::CounterForAnnouncements` (r:1 w:1)
85 /// Proof: `AmbassadorContent::CounterForAnnouncements` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
86 fn remove_announcement() -> Weight {
87 // Proof Size summary in bytes:
88 // Measured: `354`
89 // Estimated: `3555`
90 // Minimum execution time: 24_660_000 picoseconds.
91 Weight::from_parts(25_357_000, 0)
92 .saturating_add(Weight::from_parts(0, 3555))
93 .saturating_add(T::DbWeight::get().reads(3))
94 .saturating_add(T::DbWeight::get().writes(2))
95 }
96}