pallet_staking_async_parachain_runtime/weights/pallet_utility.rs
1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! Autogenerated weights for `pallet_utility`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
19//! DATE: 2023-07-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `runner-ynta1nyy-project-238-concurrent-0`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! EXECUTION: ``, WASM-EXECUTION: `Compiled`, CHAIN: `Some("asset-hub-next-westend-dev")`, DB CACHE: 1024
23
24// Executed Command:
25// ./target/production/polkadot-parachain
26// benchmark
27// pallet
28// --chain=asset-hub-next-westend-dev
29// --wasm-execution=compiled
30// --pallet=pallet_utility
31// --no-storage-info
32// --no-median-slopes
33// --no-min-squares
34// --extrinsic=*
35// --steps=50
36// --repeat=20
37// --json
38// --header=./file_header.txt
39// --output=./parachains/runtimes/assets/asset-hub-next-westend/src/weights/
40
41#![cfg_attr(rustfmt, rustfmt_skip)]
42#![allow(unused_parens)]
43#![allow(unused_imports)]
44#![allow(missing_docs)]
45
46use frame_support::{traits::Get, weights::Weight};
47use core::marker::PhantomData;
48
49/// Weight functions for `pallet_utility`.
50pub struct WeightInfo<T>(PhantomData<T>);
51impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
52 /// The range of component `c` is `[0, 1000]`.
53 fn batch(c: u32, ) -> Weight {
54 // Proof Size summary in bytes:
55 // Measured: `0`
56 // Estimated: `0`
57 // Minimum execution time: 6_596_000 picoseconds.
58 Weight::from_parts(6_795_000, 0)
59 .saturating_add(Weight::from_parts(0, 0))
60 // Standard Error: 2_304
61 .saturating_add(Weight::from_parts(6_036_412, 0).saturating_mul(c.into()))
62 }
63 fn as_derivative() -> Weight {
64 // Proof Size summary in bytes:
65 // Measured: `0`
66 // Estimated: `0`
67 // Minimum execution time: 4_877_000 picoseconds.
68 Weight::from_parts(5_175_000, 0)
69 .saturating_add(Weight::from_parts(0, 0))
70 }
71 /// The range of component `c` is `[0, 1000]`.
72 fn batch_all(c: u32, ) -> Weight {
73 // Proof Size summary in bytes:
74 // Measured: `0`
75 // Estimated: `0`
76 // Minimum execution time: 6_533_000 picoseconds.
77 Weight::from_parts(6_652_000, 0)
78 .saturating_add(Weight::from_parts(0, 0))
79 // Standard Error: 2_270
80 .saturating_add(Weight::from_parts(6_403_555, 0).saturating_mul(c.into()))
81 }
82 fn dispatch_as() -> Weight {
83 // Proof Size summary in bytes:
84 // Measured: `0`
85 // Estimated: `0`
86 // Minimum execution time: 8_628_000 picoseconds.
87 Weight::from_parts(9_057_000, 0)
88 .saturating_add(Weight::from_parts(0, 0))
89 }
90 /// The range of component `c` is `[0, 1000]`.
91 fn force_batch(c: u32, ) -> Weight {
92 // Proof Size summary in bytes:
93 // Measured: `0`
94 // Estimated: `0`
95 // Minimum execution time: 6_619_000 picoseconds.
96 Weight::from_parts(380_833, 0)
97 .saturating_add(Weight::from_parts(0, 0))
98 // Standard Error: 3_765
99 .saturating_add(Weight::from_parts(6_028_416, 0).saturating_mul(c.into()))
100 }
101
102 fn dispatch_as_fallible() -> Weight {
103 Default::default()
104 }
105
106 fn if_else() -> Weight {
107 // Proof Size summary in bytes:
108 // Measured: `0`
109 // Estimated: `0`
110 // Minimum execution time: 6_000_000 picoseconds.
111 Weight::from_parts(7_000_000, 0)
112 .saturating_add(Weight::from_parts(0, 0))
113 }
114}