referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
polkadot_runtime_common_auctions.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::auctions`
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: `d3a9aad6f7a3`, 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/rococo-runtime/rococo_runtime.wasm
32// --pallet=polkadot_runtime_common::auctions
33// --header=/__w/polkadot-sdk/polkadot-sdk/polkadot/file_header.txt
34// --output=./polkadot/runtime/rococo/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::auctions`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_common::auctions::WeightInfo for WeightInfo<T> {
54	/// Storage: `Auctions::AuctionInfo` (r:1 w:1)
55	/// Proof: `Auctions::AuctionInfo` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
56	/// Storage: `Auctions::AuctionCounter` (r:1 w:1)
57	/// Proof: `Auctions::AuctionCounter` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
58	fn new_auction() -> Weight {
59		// Proof Size summary in bytes:
60		//  Measured:  `4`
61		//  Estimated: `1493`
62		// Minimum execution time: 9_499_000 picoseconds.
63		Weight::from_parts(9_872_000, 0)
64			.saturating_add(Weight::from_parts(0, 1493))
65			.saturating_add(T::DbWeight::get().reads(2))
66			.saturating_add(T::DbWeight::get().writes(2))
67	}
68	/// Storage: `Paras::ParaLifecycles` (r:1 w:0)
69	/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
70	/// Storage: `Auctions::AuctionCounter` (r:1 w:0)
71	/// Proof: `Auctions::AuctionCounter` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
72	/// Storage: `Auctions::AuctionInfo` (r:1 w:0)
73	/// Proof: `Auctions::AuctionInfo` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
74	/// Storage: `Slots::Leases` (r:1 w:0)
75	/// Proof: `Slots::Leases` (`max_values`: None, `max_size`: None, mode: `Measured`)
76	/// Storage: `Auctions::Winning` (r:1 w:1)
77	/// Proof: `Auctions::Winning` (`max_values`: None, `max_size`: Some(1920), added: 4395, mode: `MaxEncodedLen`)
78	/// Storage: `Auctions::ReservedAmounts` (r:2 w:2)
79	/// Proof: `Auctions::ReservedAmounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`)
80	/// Storage: `System::Account` (r:1 w:1)
81	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
82	fn bid() -> Weight {
83		// Proof Size summary in bytes:
84		//  Measured:  `762`
85		//  Estimated: `6060`
86		// Minimum execution time: 87_828_000 picoseconds.
87		Weight::from_parts(91_541_000, 0)
88			.saturating_add(Weight::from_parts(0, 6060))
89			.saturating_add(T::DbWeight::get().reads(8))
90			.saturating_add(T::DbWeight::get().writes(4))
91	}
92	/// Storage: `Auctions::AuctionInfo` (r:1 w:1)
93	/// Proof: `Auctions::AuctionInfo` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
94	/// Storage: `Babe::NextRandomness` (r:1 w:0)
95	/// Proof: `Babe::NextRandomness` (`max_values`: Some(1), `max_size`: Some(32), added: 527, mode: `MaxEncodedLen`)
96	/// Storage: `Babe::EpochStart` (r:1 w:0)
97	/// Proof: `Babe::EpochStart` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
98	/// Storage: `Auctions::AuctionCounter` (r:1 w:0)
99	/// Proof: `Auctions::AuctionCounter` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
100	/// Storage: `Auctions::Winning` (r:3600 w:3600)
101	/// Proof: `Auctions::Winning` (`max_values`: None, `max_size`: Some(1920), added: 4395, mode: `MaxEncodedLen`)
102	/// Storage: `Auctions::ReservedAmounts` (r:37 w:36)
103	/// Proof: `Auctions::ReservedAmounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`)
104	/// Storage: `System::Account` (r:36 w:36)
105	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
106	/// Storage: `Slots::Leases` (r:2 w:2)
107	/// Proof: `Slots::Leases` (`max_values`: None, `max_size`: None, mode: `Measured`)
108	/// Storage: `Paras::ParaLifecycles` (r:1 w:1)
109	/// Proof: `Paras::ParaLifecycles` (`max_values`: None, `max_size`: None, mode: `Measured`)
110	/// Storage: `ParasShared::CurrentSessionIndex` (r:1 w:0)
111	/// Proof: `ParasShared::CurrentSessionIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112	/// Storage: `Paras::ActionsQueue` (r:1 w:1)
113	/// Proof: `Paras::ActionsQueue` (`max_values`: None, `max_size`: None, mode: `Measured`)
114	fn on_initialize() -> Weight {
115		// Proof Size summary in bytes:
116		//  Measured:  `6947018`
117		//  Estimated: `15822990`
118		// Minimum execution time: 8_633_205_000 picoseconds.
119		Weight::from_parts(8_845_826_000, 0)
120			.saturating_add(Weight::from_parts(0, 15822990))
121			.saturating_add(T::DbWeight::get().reads(3682))
122			.saturating_add(T::DbWeight::get().writes(3677))
123	}
124	/// Storage: `Auctions::ReservedAmounts` (r:37 w:36)
125	/// Proof: `Auctions::ReservedAmounts` (`max_values`: None, `max_size`: Some(60), added: 2535, mode: `MaxEncodedLen`)
126	/// Storage: `System::Account` (r:36 w:36)
127	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
128	/// Storage: `Auctions::Winning` (r:3600 w:3600)
129	/// Proof: `Auctions::Winning` (`max_values`: None, `max_size`: Some(1920), added: 4395, mode: `MaxEncodedLen`)
130	/// Storage: `Auctions::AuctionInfo` (r:0 w:1)
131	/// Proof: `Auctions::AuctionInfo` (`max_values`: Some(1), `max_size`: Some(8), added: 503, mode: `MaxEncodedLen`)
132	fn cancel_auction() -> Weight {
133		// Proof Size summary in bytes:
134		//  Measured:  `177732`
135		//  Estimated: `15822990`
136		// Minimum execution time: 6_693_150_000 picoseconds.
137		Weight::from_parts(6_883_632_000, 0)
138			.saturating_add(Weight::from_parts(0, 15822990))
139			.saturating_add(T::DbWeight::get().reads(3673))
140			.saturating_add(T::DbWeight::get().writes(3673))
141	}
142}