referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
pallet_bags_list.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_bags_list`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-07-01, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `66f1737e2c94`, 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/westend-runtime/westend_runtime.wasm
32// --pallet=pallet_bags_list
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/westend/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_bags_list`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_bags_list::WeightInfo for WeightInfo<T> {
54	/// Storage: `VoterList::Lock` (r:1 w:0)
55	/// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
56	/// Storage: `VoterList::ListNodes` (r:4 w:4)
57	/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
58	/// Storage: `Staking::Bonded` (r:1 w:0)
59	/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
60	/// Storage: `Staking::Ledger` (r:1 w:0)
61	/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
62	/// Storage: `VoterList::ListBags` (r:1 w:1)
63	/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
64	fn rebag_non_terminal() -> Weight {
65		// Proof Size summary in bytes:
66		//  Measured:  `1684`
67		//  Estimated: `11506`
68		// Minimum execution time: 71_398_000 picoseconds.
69		Weight::from_parts(73_741_000, 0)
70			.saturating_add(Weight::from_parts(0, 11506))
71			.saturating_add(T::DbWeight::get().reads(8))
72			.saturating_add(T::DbWeight::get().writes(5))
73	}
74	/// Storage: `VoterList::Lock` (r:1 w:0)
75	/// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
76	/// Storage: `VoterList::ListNodes` (r:3 w:3)
77	/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
78	/// Storage: `Staking::Bonded` (r:1 w:0)
79	/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
80	/// Storage: `Staking::Ledger` (r:1 w:0)
81	/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
82	/// Storage: `VoterList::ListBags` (r:2 w:2)
83	/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
84	fn rebag_terminal() -> Weight {
85		// Proof Size summary in bytes:
86		//  Measured:  `1578`
87		//  Estimated: `8877`
88		// Minimum execution time: 69_243_000 picoseconds.
89		Weight::from_parts(71_825_000, 0)
90			.saturating_add(Weight::from_parts(0, 8877))
91			.saturating_add(T::DbWeight::get().reads(8))
92			.saturating_add(T::DbWeight::get().writes(5))
93	}
94	/// Storage: `VoterList::Lock` (r:1 w:0)
95	/// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
96	/// Storage: `VoterList::ListNodes` (r:4 w:4)
97	/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
98	/// Storage: `Staking::Bonded` (r:2 w:0)
99	/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
100	/// Storage: `Staking::Ledger` (r:2 w:0)
101	/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
102	/// Storage: `VoterList::CounterForListNodes` (r:1 w:1)
103	/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
104	/// Storage: `VoterList::ListBags` (r:1 w:1)
105	/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
106	fn put_in_front_of() -> Weight {
107		// Proof Size summary in bytes:
108		//  Measured:  `1889`
109		//  Estimated: `11506`
110		// Minimum execution time: 79_898_000 picoseconds.
111		Weight::from_parts(83_764_000, 0)
112			.saturating_add(Weight::from_parts(0, 11506))
113			.saturating_add(T::DbWeight::get().reads(11))
114			.saturating_add(T::DbWeight::get().writes(6))
115	}
116	/// Storage: `VoterList::CounterForListNodes` (r:1 w:0)
117	/// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
118	/// Storage: `VoterList::Lock` (r:1 w:0)
119	/// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
120	/// Storage: `VoterList::NextNodeAutoRebagged` (r:1 w:1)
121	/// Proof: `VoterList::NextNodeAutoRebagged` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
122	/// Storage: `VoterList::ListBags` (r:200 w:4)
123	/// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
124	/// Storage: `VoterList::ListNodes` (r:11 w:11)
125	/// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
126	/// Storage: `Staking::Bonded` (r:10 w:0)
127	/// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
128	/// Storage: `Staking::Ledger` (r:10 w:0)
129	/// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
130	fn on_idle() -> Weight {
131		// Proof Size summary in bytes:
132		//  Measured:  `4777`
133		//  Estimated: `512390`
134		// Minimum execution time: 711_092_000 picoseconds.
135		Weight::from_parts(722_007_000, 0)
136			.saturating_add(Weight::from_parts(0, 512390))
137			.saturating_add(T::DbWeight::get().reads(234))
138			.saturating_add(T::DbWeight::get().writes(16))
139	}
140}