referrerpolicy=no-referrer-when-downgrade

rococo_runtime/weights/
polkadot_runtime_parachains_on_demand.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_parachains::on_demand`
18//!
19//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
20//! DATE: 2025-02-21, 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_parachains::on_demand
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_parachains::on_demand`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_parachains::on_demand::WeightInfo for WeightInfo<T> {
54	/// Storage: `OnDemandAssignmentProvider::QueueStatus` (r:1 w:1)
55	/// Proof: `OnDemandAssignmentProvider::QueueStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `System::Account` (r:1 w:1)
57	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
58	/// Storage: `OnDemandAssignmentProvider::Revenue` (r:1 w:1)
59	/// Proof: `OnDemandAssignmentProvider::Revenue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60	/// Storage: `OnDemandAssignmentProvider::ParaIdAffinity` (r:1 w:0)
61	/// Proof: `OnDemandAssignmentProvider::ParaIdAffinity` (`max_values`: None, `max_size`: None, mode: `Measured`)
62	/// Storage: `OnDemandAssignmentProvider::FreeEntries` (r:1 w:1)
63	/// Proof: `OnDemandAssignmentProvider::FreeEntries` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
64	/// The range of component `s` is `[1, 9999]`.
65	fn place_order_keep_alive(s: u32, ) -> Weight {
66		// Proof Size summary in bytes:
67		//  Measured:  `270 + s * (8 ±0)`
68		//  Estimated: `3733 + s * (8 ±0)`
69		// Minimum execution time: 45_581_000 picoseconds.
70		Weight::from_parts(32_540_668, 0)
71			.saturating_add(Weight::from_parts(0, 3733))
72			// Standard Error: 161
73			.saturating_add(Weight::from_parts(28_039, 0).saturating_mul(s.into()))
74			.saturating_add(T::DbWeight::get().reads(5))
75			.saturating_add(T::DbWeight::get().writes(4))
76			.saturating_add(Weight::from_parts(0, 8).saturating_mul(s.into()))
77	}
78	/// Storage: `OnDemandAssignmentProvider::QueueStatus` (r:1 w:1)
79	/// Proof: `OnDemandAssignmentProvider::QueueStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
80	/// Storage: `System::Account` (r:1 w:1)
81	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
82	/// Storage: `OnDemandAssignmentProvider::Revenue` (r:1 w:1)
83	/// Proof: `OnDemandAssignmentProvider::Revenue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
84	/// Storage: `OnDemandAssignmentProvider::ParaIdAffinity` (r:1 w:0)
85	/// Proof: `OnDemandAssignmentProvider::ParaIdAffinity` (`max_values`: None, `max_size`: None, mode: `Measured`)
86	/// Storage: `OnDemandAssignmentProvider::FreeEntries` (r:1 w:1)
87	/// Proof: `OnDemandAssignmentProvider::FreeEntries` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
88	/// The range of component `s` is `[1, 9999]`.
89	fn place_order_allow_death(s: u32, ) -> Weight {
90		// Proof Size summary in bytes:
91		//  Measured:  `270 + s * (8 ±0)`
92		//  Estimated: `3733 + s * (8 ±0)`
93		// Minimum execution time: 45_743_000 picoseconds.
94		Weight::from_parts(32_303_760, 0)
95			.saturating_add(Weight::from_parts(0, 3733))
96			// Standard Error: 180
97			.saturating_add(Weight::from_parts(27_975, 0).saturating_mul(s.into()))
98			.saturating_add(T::DbWeight::get().reads(5))
99			.saturating_add(T::DbWeight::get().writes(4))
100			.saturating_add(Weight::from_parts(0, 8).saturating_mul(s.into()))
101	}
102	/// Storage: `OnDemandAssignmentProvider::QueueStatus` (r:1 w:1)
103	/// Proof: `OnDemandAssignmentProvider::QueueStatus` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
104	/// Storage: `OnDemandAssignmentProvider::Credits` (r:1 w:1)
105	/// Proof: `OnDemandAssignmentProvider::Credits` (`max_values`: None, `max_size`: None, mode: `Measured`)
106	/// Storage: `OnDemandAssignmentProvider::Revenue` (r:1 w:1)
107	/// Proof: `OnDemandAssignmentProvider::Revenue` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
108	/// Storage: `OnDemandAssignmentProvider::ParaIdAffinity` (r:1 w:0)
109	/// Proof: `OnDemandAssignmentProvider::ParaIdAffinity` (`max_values`: None, `max_size`: None, mode: `Measured`)
110	/// Storage: `OnDemandAssignmentProvider::FreeEntries` (r:1 w:1)
111	/// Proof: `OnDemandAssignmentProvider::FreeEntries` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
112	/// The range of component `s` is `[1, 9999]`.
113	fn place_order_with_credits(s: u32, ) -> Weight {
114		// Proof Size summary in bytes:
115		//  Measured:  `304 + s * (8 ±0)`
116		//  Estimated: `3767 + s * (8 ±0)`
117		// Minimum execution time: 23_816_000 picoseconds.
118		Weight::from_parts(9_355_231, 0)
119			.saturating_add(Weight::from_parts(0, 3767))
120			// Standard Error: 168
121			.saturating_add(Weight::from_parts(27_013, 0).saturating_mul(s.into()))
122			.saturating_add(T::DbWeight::get().reads(5))
123			.saturating_add(T::DbWeight::get().writes(4))
124			.saturating_add(Weight::from_parts(0, 8).saturating_mul(s.into()))
125	}
126}