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