pallet_staking_async_parachain_runtime/weights/pallet_bags_list.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_bags_list`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-06-14, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `runner--ss9ysm1-project-163-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
24//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 1024
25
26// Executed Command:
27// ./target/production/polkadot
28// benchmark
29// pallet
30// --chain=westend-dev
31// --steps=50
32// --repeat=20
33// --no-storage-info
34// --no-median-slopes
35// --no-min-squares
36// --pallet=pallet_bags_list
37// --extrinsic=*
38// --execution=wasm
39// --wasm-execution=compiled
40// --header=./file_header.txt
41// --output=./runtime/westend/src/weights/
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: Staking Bonded (r:1 w:0)
55 /// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
56 /// Storage: Staking Ledger (r:1 w:0)
57 /// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
58 /// Storage: VoterList ListNodes (r:4 w:4)
59 /// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
60 /// Storage: VoterList ListBags (r:1 w:1)
61 /// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
62 fn rebag_non_terminal() -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `1656`
65 // Estimated: `11506`
66 // Minimum execution time: 60_240_000 picoseconds.
67 Weight::from_parts(62_834_000, 0)
68 .saturating_add(Weight::from_parts(0, 11506))
69 .saturating_add(T::DbWeight::get().reads(7))
70 .saturating_add(T::DbWeight::get().writes(5))
71 }
72 /// Storage: Staking Bonded (r:1 w:0)
73 /// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
74 /// Storage: Staking Ledger (r:1 w:0)
75 /// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, 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: VoterList ListBags (r:2 w:2)
79 /// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
80 fn rebag_terminal() -> Weight {
81 // Proof Size summary in bytes:
82 // Measured: `1550`
83 // Estimated: `8877`
84 // Minimum execution time: 59_084_000 picoseconds.
85 Weight::from_parts(60_589_000, 0)
86 .saturating_add(Weight::from_parts(0, 8877))
87 .saturating_add(T::DbWeight::get().reads(7))
88 .saturating_add(T::DbWeight::get().writes(5))
89 }
90 /// Storage: VoterList ListNodes (r:4 w:4)
91 /// Proof: VoterList ListNodes (max_values: None, max_size: Some(154), added: 2629, mode: MaxEncodedLen)
92 /// Storage: Staking Bonded (r:2 w:0)
93 /// Proof: Staking Bonded (max_values: None, max_size: Some(72), added: 2547, mode: MaxEncodedLen)
94 /// Storage: Staking Ledger (r:2 w:0)
95 /// Proof: Staking Ledger (max_values: None, max_size: Some(1091), added: 3566, mode: MaxEncodedLen)
96 /// Storage: VoterList CounterForListNodes (r:1 w:1)
97 /// Proof: VoterList CounterForListNodes (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen)
98 /// Storage: VoterList ListBags (r:1 w:1)
99 /// Proof: VoterList ListBags (max_values: None, max_size: Some(82), added: 2557, mode: MaxEncodedLen)
100 fn put_in_front_of() -> Weight {
101 // Proof Size summary in bytes:
102 // Measured: `1861`
103 // Estimated: `11506`
104 // Minimum execution time: 65_945_000 picoseconds.
105 Weight::from_parts(67_429_000, 0)
106 .saturating_add(Weight::from_parts(0, 11506))
107 .saturating_add(T::DbWeight::get().reads(10))
108 .saturating_add(T::DbWeight::get().writes(6))
109 }
110 /// Storage: `VoterList::CounterForListNodes` (r:1 w:0)
111 /// Proof: `VoterList::CounterForListNodes` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
112 /// Storage: `VoterList::Lock` (r:1 w:0)
113 /// Proof: `VoterList::Lock` (`max_values`: Some(1), `max_size`: Some(0), added: 495, mode: `MaxEncodedLen`)
114 /// Storage: `VoterList::NextNodeAutoRebagged` (r:1 w:1)
115 /// Proof: `VoterList::NextNodeAutoRebagged` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
116 /// Storage: `VoterList::ListBags` (r:200 w:2)
117 /// Proof: `VoterList::ListBags` (`max_values`: None, `max_size`: Some(82), added: 2557, mode: `MaxEncodedLen`)
118 /// Storage: `VoterList::ListNodes` (r:12 w:11)
119 /// Proof: `VoterList::ListNodes` (`max_values`: None, `max_size`: Some(154), added: 2629, mode: `MaxEncodedLen`)
120 /// Storage: `Staking::Bonded` (r:10 w:0)
121 /// Proof: `Staking::Bonded` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
122 /// Storage: `Staking::Ledger` (r:10 w:0)
123 /// Proof: `Staking::Ledger` (`max_values`: None, `max_size`: Some(1091), added: 3566, mode: `MaxEncodedLen`)
124 fn on_idle() -> Weight {
125 // Proof Size summary in bytes:
126 // Measured: `37539`
127 // Estimated: `512390`
128 // Minimum execution time: 733_000_000 picoseconds.
129 Weight::from_parts(795_000_000, 512390)
130 .saturating_add(T::DbWeight::get().reads(235_u64))
131 .saturating_add(T::DbWeight::get().writes(14_u64))
132 }
133}