referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
polkadot_runtime_common_assigned_slots.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 `polkadot_runtime_common::assigned_slots`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-22, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
21//! WORST CASE MAP SIZE: `1000000`
22//! HOSTNAME: `3a2e9ae8a8f5`, 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=polkadot_runtime_common::assigned_slots
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 `polkadot_runtime_common::assigned_slots`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_common::assigned_slots::WeightInfo for WeightInfo<T> {
54	/// Storage: `Registrar::Paras` (r:1 w:0)
55	/// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`)
56	/// Storage: `Paras::ParaLifecycles` (r:1 w:1)
57	/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
58	/// Storage: `AssignedSlots::PermanentSlots` (r:1 w:1)
59	/// Proof: `AssignedSlots::PermanentSlots` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
60	/// Storage: `AssignedSlots::TemporarySlots` (r:1 w:0)
61	/// Proof: `AssignedSlots::TemporarySlots` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
62	/// Storage: `Slots::Leases` (r:1 w:1)
63	/// Proof: `Slots::Leases` (`max_values`: None, `max_size`: None, mode: `Measured`)
64	/// Storage: `AssignedSlots::PermanentSlotCount` (r:1 w:1)
65	/// Proof: `AssignedSlots::PermanentSlotCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
66	/// Storage: `AssignedSlots::MaxPermanentSlots` (r:1 w:0)
67	/// Proof: `AssignedSlots::MaxPermanentSlots` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
68	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
69	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
70	/// Storage: `Paras::ActionsQueue` (r:1 w:1)
71	/// Proof: `Paras::ActionsQueue` (`max_values`: None, `max_size`: None, mode: `Measured`)
72	fn assign_perm_parachain_slot() -> Weight {
73		// Proof Size summary in bytes:
74		//  Measured:  `660`
75		//  Estimated: `4125`
76		// Minimum execution time: 81_431_000 picoseconds.
77		Weight::from_parts(84_673_000, 0)
78			.saturating_add(Weight::from_parts(0, 4125))
79			.saturating_add(T::DbWeight::get().reads(9))
80			.saturating_add(T::DbWeight::get().writes(5))
81	}
82	/// Storage: `Registrar::Paras` (r:1 w:0)
83	/// Proof: `Registrar::Paras` (`max_values`: None, `max_size`: None, mode: `Measured`)
84	/// Storage: `Paras::ParaLifecycles` (r:1 w:1)
85	/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
86	/// Storage: `AssignedSlots::PermanentSlots` (r:1 w:0)
87	/// Proof: `AssignedSlots::PermanentSlots` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
88	/// Storage: `AssignedSlots::TemporarySlots` (r:1 w:1)
89	/// Proof: `AssignedSlots::TemporarySlots` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
90	/// Storage: `Slots::Leases` (r:1 w:1)
91	/// Proof: `Slots::Leases` (`max_values`: None, `max_size`: None, mode: `Measured`)
92	/// Storage: `AssignedSlots::TemporarySlotCount` (r:1 w:1)
93	/// Proof: `AssignedSlots::TemporarySlotCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
94	/// Storage: `AssignedSlots::MaxTemporarySlots` (r:1 w:0)
95	/// Proof: `AssignedSlots::MaxTemporarySlots` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
96	/// Storage: `AssignedSlots::ActiveTemporarySlotCount` (r:1 w:1)
97	/// Proof: `AssignedSlots::ActiveTemporarySlotCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
98	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
99	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
100	/// Storage: `Paras::ActionsQueue` (r:1 w:1)
101	/// Proof: `Paras::ActionsQueue` (`max_values`: None, `max_size`: None, mode: `Measured`)
102	fn assign_temp_parachain_slot() -> Weight {
103		// Proof Size summary in bytes:
104		//  Measured:  `660`
105		//  Estimated: `4125`
106		// Minimum execution time: 87_650_000 picoseconds.
107		Weight::from_parts(91_880_000, 0)
108			.saturating_add(Weight::from_parts(0, 4125))
109			.saturating_add(T::DbWeight::get().reads(10))
110			.saturating_add(T::DbWeight::get().writes(6))
111	}
112	/// Storage: `AssignedSlots::PermanentSlots` (r:1 w:0)
113	/// Proof: `AssignedSlots::PermanentSlots` (`max_values`: None, `max_size`: Some(20), added: 2495, mode: `MaxEncodedLen`)
114	/// Storage: `AssignedSlots::TemporarySlots` (r:1 w:1)
115	/// Proof: `AssignedSlots::TemporarySlots` (`max_values`: None, `max_size`: Some(61), added: 2536, mode: `MaxEncodedLen`)
116	/// Storage: `Paras::ParaLifecycles` (r:1 w:0)
117	/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
118	/// Storage: `Slots::Leases` (r:1 w:1)
119	/// Proof: `Slots::Leases` (`max_values`: None, `max_size`: None, mode: `Measured`)
120	/// Storage: `AssignedSlots::TemporarySlotCount` (r:1 w:1)
121	/// Proof: `AssignedSlots::TemporarySlotCount` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
122	fn unassign_parachain_slot() -> Weight {
123		// Proof Size summary in bytes:
124		//  Measured:  `626`
125		//  Estimated: `4091`
126		// Minimum execution time: 56_736_000 picoseconds.
127		Weight::from_parts(60_568_000, 0)
128			.saturating_add(Weight::from_parts(0, 4091))
129			.saturating_add(T::DbWeight::get().reads(5))
130			.saturating_add(T::DbWeight::get().writes(3))
131	}
132	/// Storage: `AssignedSlots::MaxPermanentSlots` (r:0 w:1)
133	/// Proof: `AssignedSlots::MaxPermanentSlots` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
134	fn set_max_permanent_slots() -> Weight {
135		// Proof Size summary in bytes:
136		//  Measured:  `0`
137		//  Estimated: `0`
138		// Minimum execution time: 5_879_000 picoseconds.
139		Weight::from_parts(6_200_000, 0)
140			.saturating_add(Weight::from_parts(0, 0))
141			.saturating_add(T::DbWeight::get().writes(1))
142	}
143	/// Storage: `AssignedSlots::MaxTemporarySlots` (r:0 w:1)
144	/// Proof: `AssignedSlots::MaxTemporarySlots` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
145	fn set_max_temporary_slots() -> Weight {
146		// Proof Size summary in bytes:
147		//  Measured:  `0`
148		//  Estimated: `0`
149		// Minimum execution time: 5_840_000 picoseconds.
150		Weight::from_parts(6_113_000, 0)
151			.saturating_add(Weight::from_parts(0, 0))
152			.saturating_add(T::DbWeight::get().writes(1))
153	}
154}