pallet_staking_async_parachain_runtime/weights/pallet_asset_rate.rs
1// This file is part of Substrate.
2
3// Copyright (C) Parity Technologies (UK) Ltd.
4// SPDX-License-Identifier: Apache-2.0
5
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9//
10// http://www.apache.org/licenses/LICENSE-2.0
11//
12// Unless required by applicable law or agreed to in writing, software
13// distributed under the License is distributed on an "AS IS" BASIS,
14// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15// See the License for the specific language governing permissions and
16// limitations under the License.
17
18//! Autogenerated weights for `pallet_asset_rate`
19//!
20//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
21//! DATE: 2023-07-04, STEPS: `50`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
22//! WORST CASE MAP SIZE: `1000000`
23//! HOSTNAME: `cob`, CPU: `<UNKNOWN>`
24//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 1024
25
26// Executed Command:
27// ./target/debug/polkadot
28// benchmark
29// pallet
30// --chain=polkadot-dev
31// --steps=50
32// --repeat=2
33// --pallet=pallet_asset_rate
34// --extrinsic=*
35// --wasm-execution=compiled
36// --heap-pages=4096
37// --output=./runtime/polkadot/src/weights/
38// --header=./file_header.txt
39
40#![cfg_attr(rustfmt, rustfmt_skip)]
41#![allow(unused_parens)]
42#![allow(unused_imports)]
43#![allow(missing_docs)]
44
45use frame_support::{traits::Get, weights::Weight};
46use core::marker::PhantomData;
47
48/// Weight functions for `pallet_asset_rate`.
49pub struct WeightInfo<T>(PhantomData<T>);
50impl<T: frame_system::Config> pallet_asset_rate::WeightInfo for WeightInfo<T> {
51 /// Storage: AssetRate ConversionRateToNative (r:1 w:1)
52 /// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(1237), added: 3712, mode: MaxEncodedLen)
53 fn create() -> Weight {
54 // Proof Size summary in bytes:
55 // Measured: `42`
56 // Estimated: `4702`
57 // Minimum execution time: 67_000_000 picoseconds.
58 Weight::from_parts(69_000_000, 0)
59 .saturating_add(Weight::from_parts(0, 4702))
60 .saturating_add(T::DbWeight::get().reads(1))
61 .saturating_add(T::DbWeight::get().writes(1))
62 }
63 /// Storage: AssetRate ConversionRateToNative (r:1 w:1)
64 /// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(1237), added: 3712, mode: MaxEncodedLen)
65 fn update() -> Weight {
66 // Proof Size summary in bytes:
67 // Measured: `110`
68 // Estimated: `4702`
69 // Minimum execution time: 69_000_000 picoseconds.
70 Weight::from_parts(71_000_000, 0)
71 .saturating_add(Weight::from_parts(0, 4702))
72 .saturating_add(T::DbWeight::get().reads(1))
73 .saturating_add(T::DbWeight::get().writes(1))
74 }
75 /// Storage: AssetRate ConversionRateToNative (r:1 w:1)
76 /// Proof: AssetRate ConversionRateToNative (max_values: None, max_size: Some(1237), added: 3712, mode: MaxEncodedLen)
77 fn remove() -> Weight {
78 // Proof Size summary in bytes:
79 // Measured: `110`
80 // Estimated: `4702`
81 // Minimum execution time: 70_000_000 picoseconds.
82 Weight::from_parts(90_000_000, 0)
83 .saturating_add(Weight::from_parts(0, 4702))
84 .saturating_add(T::DbWeight::get().reads(1))
85 .saturating_add(T::DbWeight::get().writes(1))
86 }
87}