referrerpolicy=no-referrer-when-downgrade

pallet_staking_async_rc_runtime/weights/
polkadot_runtime_parachains_disputes_slashing.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// This file is part of Substrate.
3
4// Substrate 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// Substrate 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 Substrate.  If not, see <http://www.gnu.org/licenses/>.
16
17//! Autogenerated weights for `polkadot_runtime_parachains::disputes::slashing`
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: `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_parachains::disputes::slashing
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_parachains::disputes::slashing`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> polkadot_runtime_parachains::disputes::slashing::WeightInfo for WeightInfo<T> {
54	/// Storage: `Session::CurrentIndex` (r:1 w:0)
55	/// Proof: `Session::CurrentIndex` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
56	/// Storage: `Historical::HistoricalSessions` (r:1 w:0)
57	/// Proof: `Historical::HistoricalSessions` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
58	/// Storage: `ParasSlashing::UnappliedSlashes` (r:1 w:1)
59	/// Proof: `ParasSlashing::UnappliedSlashes` (`max_values`: None, `max_size`: None, mode: `Measured`)
60	/// Storage: `Offences::ConcurrentReportsIndex` (r:1 w:1)
61	/// Proof: `Offences::ConcurrentReportsIndex` (`max_values`: None, `max_size`: None, mode: `Measured`)
62	/// Storage: `Offences::Reports` (r:1 w:1)
63	/// Proof: `Offences::Reports` (`max_values`: None, `max_size`: None, mode: `Measured`)
64	/// Storage: `Staking::ActiveEra` (r:1 w:0)
65	/// Proof: `Staking::ActiveEra` (`max_values`: Some(1), `max_size`: Some(13), added: 508, mode: `MaxEncodedLen`)
66	/// Storage: `Staking::ErasStartSessionIndex` (r:1 w:0)
67	/// Proof: `Staking::ErasStartSessionIndex` (`max_values`: None, `max_size`: Some(16), added: 2491, mode: `MaxEncodedLen`)
68	/// Storage: `Staking::Invulnerables` (r:1 w:0)
69	/// Proof: `Staking::Invulnerables` (`max_values`: Some(1), `max_size`: Some(641), added: 1136, mode: `MaxEncodedLen`)
70	/// Storage: `Staking::ErasStakersOverview` (r:1 w:0)
71	/// Proof: `Staking::ErasStakersOverview` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
72	/// Storage: `Session::DisabledValidators` (r:1 w:1)
73	/// Proof: `Session::DisabledValidators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
74	/// Storage: `Session::Validators` (r:1 w:0)
75	/// Proof: `Session::Validators` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
76	/// Storage: `Staking::ValidatorSlashInEra` (r:1 w:1)
77	/// Proof: `Staking::ValidatorSlashInEra` (`max_values`: None, `max_size`: Some(72), added: 2547, mode: `MaxEncodedLen`)
78	/// Storage: `Staking::OffenceQueue` (r:1 w:1)
79	/// Proof: `Staking::OffenceQueue` (`max_values`: None, `max_size`: Some(101), added: 2576, mode: `MaxEncodedLen`)
80	/// Storage: `Staking::OffenceQueueEras` (r:1 w:1)
81	/// Proof: `Staking::OffenceQueueEras` (`max_values`: Some(1), `max_size`: Some(9), added: 504, mode: `MaxEncodedLen`)
82	/// The range of component `n` is `[4, 300]`.
83	fn report_dispute_lost_unsigned(n: u32, ) -> Weight {
84		// Proof Size summary in bytes:
85		//  Measured:  `2024 + n * (33 ±0)`
86		//  Estimated: `5386 + n * (34 ±0)`
87		// Minimum execution time: 88_786_000 picoseconds.
88		Weight::from_parts(127_346_367, 0)
89			.saturating_add(Weight::from_parts(0, 5386))
90			// Standard Error: 3_530
91			.saturating_add(Weight::from_parts(144_389, 0).saturating_mul(n.into()))
92			.saturating_add(T::DbWeight::get().reads(14))
93			.saturating_add(T::DbWeight::get().writes(7))
94			.saturating_add(Weight::from_parts(0, 34).saturating_mul(n.into()))
95	}
96}