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