referrerpolicy=no-referrer-when-downgrade

westend_runtime/weights/
frame_election_provider_support.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 `frame_election_provider_support`
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=frame_election_provider_support
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 `frame_election_provider_support`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for WeightInfo<T> {
54	/// The range of component `v` is `[1000, 2000]`.
55	/// The range of component `t` is `[500, 1000]`.
56	/// The range of component `d` is `[5, 16]`.
57	fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `0`
60		//  Estimated: `0`
61		// Minimum execution time: 7_521_062_000 picoseconds.
62		Weight::from_parts(7_596_244_000, 0)
63			.saturating_add(Weight::from_parts(0, 0))
64			// Standard Error: 163_128
65			.saturating_add(Weight::from_parts(7_056_870, 0).saturating_mul(v.into()))
66			// Standard Error: 16_677_703
67			.saturating_add(Weight::from_parts(1_730_887_364, 0).saturating_mul(d.into()))
68	}
69	/// The range of component `v` is `[1000, 2000]`.
70	/// The range of component `t` is `[500, 1000]`.
71	/// The range of component `d` is `[5, 16]`.
72	fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight {
73		// Proof Size summary in bytes:
74		//  Measured:  `0`
75		//  Estimated: `0`
76		// Minimum execution time: 4_950_689_000 picoseconds.
77		Weight::from_parts(5_018_795_000, 0)
78			.saturating_add(Weight::from_parts(0, 0))
79			// Standard Error: 141_344
80			.saturating_add(Weight::from_parts(5_573_632, 0).saturating_mul(v.into()))
81			// Standard Error: 14_450_583
82			.saturating_add(Weight::from_parts(1_581_504_003, 0).saturating_mul(d.into()))
83	}
84}