rococo_runtime/weights/pallet_utility.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 `pallet_utility`
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=pallet_utility
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 `pallet_utility`.
52pub struct WeightInfo<T>(PhantomData<T>);
53impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
54 /// The range of component `c` is `[0, 1000]`.
55 fn batch(c: u32, ) -> Weight {
56 // Proof Size summary in bytes:
57 // Measured: `0`
58 // Estimated: `0`
59 // Minimum execution time: 5_402_000 picoseconds.
60 Weight::from_parts(5_543_000, 0)
61 .saturating_add(Weight::from_parts(0, 0))
62 // Standard Error: 2_006
63 .saturating_add(Weight::from_parts(3_376_579, 0).saturating_mul(c.into()))
64 }
65 fn as_derivative() -> Weight {
66 // Proof Size summary in bytes:
67 // Measured: `0`
68 // Estimated: `0`
69 // Minimum execution time: 4_737_000 picoseconds.
70 Weight::from_parts(5_103_000, 0)
71 .saturating_add(Weight::from_parts(0, 0))
72 }
73 /// The range of component `c` is `[0, 1000]`.
74 fn batch_all(c: u32, ) -> Weight {
75 // Proof Size summary in bytes:
76 // Measured: `0`
77 // Estimated: `0`
78 // Minimum execution time: 5_485_000 picoseconds.
79 Weight::from_parts(5_863_000, 0)
80 .saturating_add(Weight::from_parts(0, 0))
81 // Standard Error: 1_759
82 .saturating_add(Weight::from_parts(3_566_901, 0).saturating_mul(c.into()))
83 }
84 fn dispatch_as() -> Weight {
85 // Proof Size summary in bytes:
86 // Measured: `0`
87 // Estimated: `0`
88 // Minimum execution time: 7_565_000 picoseconds.
89 Weight::from_parts(8_133_000, 0)
90 .saturating_add(Weight::from_parts(0, 0))
91 }
92 /// The range of component `c` is `[0, 1000]`.
93 fn force_batch(c: u32, ) -> Weight {
94 // Proof Size summary in bytes:
95 // Measured: `0`
96 // Estimated: `0`
97 // Minimum execution time: 5_353_000 picoseconds.
98 Weight::from_parts(5_774_000, 0)
99 .saturating_add(Weight::from_parts(0, 0))
100 // Standard Error: 2_009
101 .saturating_add(Weight::from_parts(3_357_568, 0).saturating_mul(c.into()))
102 }
103 fn dispatch_as_fallible() -> Weight {
104 // Proof Size summary in bytes:
105 // Measured: `0`
106 // Estimated: `0`
107 // Minimum execution time: 7_232_000 picoseconds.
108 Weight::from_parts(7_558_000, 0)
109 .saturating_add(Weight::from_parts(0, 0))
110 }
111 fn if_else() -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `0`
114 // Estimated: `0`
115 // Minimum execution time: 9_169_000 picoseconds.
116 Weight::from_parts(9_536_000, 0)
117 .saturating_add(Weight::from_parts(0, 0))
118 }
119}