asset_hub_rococo_runtime/weights/pallet_nft_fractionalization.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_nft_fractionalization`
17//!
18//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 32.0.0
19//! DATE: 2025-02-21, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
20//! WORST CASE MAP SIZE: `1000000`
21//! HOSTNAME: `ef4134d66388`, CPU: `Intel(R) Xeon(R) CPU @ 2.60GHz`
22//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
23
24// Executed Command:
25// frame-omni-bencher
26// v1
27// benchmark
28// pallet
29// --extrinsic=*
30// --runtime=target/production/wbuild/asset-hub-rococo-runtime/asset_hub_rococo_runtime.wasm
31// --pallet=pallet_nft_fractionalization
32// --header=/__w/polkadot-sdk/polkadot-sdk/cumulus/file_header.txt
33// --output=./cumulus/parachains/runtimes/assets/asset-hub-rococo/src/weights
34// --wasm-execution=compiled
35// --steps=50
36// --repeat=20
37// --heap-pages=4096
38// --no-storage-info
39// --no-min-squares
40// --no-median-slopes
41
42#![cfg_attr(rustfmt, rustfmt_skip)]
43#![allow(unused_parens)]
44#![allow(unused_imports)]
45#![allow(missing_docs)]
46
47use frame_support::{traits::Get, weights::Weight};
48use core::marker::PhantomData;
49
50/// Weight functions for `pallet_nft_fractionalization`.
51pub struct WeightInfo<T>(PhantomData<T>);
52impl<T: frame_system::Config> pallet_nft_fractionalization::WeightInfo for WeightInfo<T> {
53 /// Storage: `Nfts::Item` (r:1 w:0)
54 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
55 /// Storage: `Balances::Holds` (r:1 w:1)
56 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
57 /// Storage: `Nfts::Attribute` (r:1 w:1)
58 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
59 /// Storage: `Nfts::Collection` (r:1 w:1)
60 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
61 /// Storage: `Assets::Asset` (r:1 w:1)
62 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
63 /// Storage: `Assets::NextAssetId` (r:1 w:0)
64 /// Proof: `Assets::NextAssetId` (`max_values`: Some(1), `max_size`: Some(4), added: 499, mode: `MaxEncodedLen`)
65 /// Storage: `Assets::Account` (r:1 w:1)
66 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
67 /// Storage: `System::Account` (r:1 w:1)
68 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
69 /// Storage: `Assets::Metadata` (r:1 w:1)
70 /// Proof: `Assets::Metadata` (`max_values`: None, `max_size`: Some(140), added: 2615, mode: `MaxEncodedLen`)
71 /// Storage: `NftFractionalization::NftToAsset` (r:0 w:1)
72 /// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
73 fn fractionalize() -> Weight {
74 // Proof Size summary in bytes:
75 // Measured: `425`
76 // Estimated: `4326`
77 // Minimum execution time: 188_695_000 picoseconds.
78 Weight::from_parts(194_196_000, 0)
79 .saturating_add(Weight::from_parts(0, 4326))
80 .saturating_add(T::DbWeight::get().reads(9))
81 .saturating_add(T::DbWeight::get().writes(8))
82 }
83 /// Storage: `NftFractionalization::NftToAsset` (r:1 w:1)
84 /// Proof: `NftFractionalization::NftToAsset` (`max_values`: None, `max_size`: Some(92), added: 2567, mode: `MaxEncodedLen`)
85 /// Storage: `Assets::Asset` (r:1 w:1)
86 /// Proof: `Assets::Asset` (`max_values`: None, `max_size`: Some(210), added: 2685, mode: `MaxEncodedLen`)
87 /// Storage: `Assets::Account` (r:1 w:1)
88 /// Proof: `Assets::Account` (`max_values`: None, `max_size`: Some(134), added: 2609, mode: `MaxEncodedLen`)
89 /// Storage: `AssetsFreezer::FrozenBalances` (r:1 w:1)
90 /// Proof: `AssetsFreezer::FrozenBalances` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
91 /// Storage: `AssetsFreezer::Freezes` (r:2 w:1)
92 /// Proof: `AssetsFreezer::Freezes` (`max_values`: None, `max_size`: Some(87), added: 2562, mode: `MaxEncodedLen`)
93 /// Storage: `Nfts::Attribute` (r:1 w:1)
94 /// Proof: `Nfts::Attribute` (`max_values`: None, `max_size`: Some(479), added: 2954, mode: `MaxEncodedLen`)
95 /// Storage: `Nfts::Collection` (r:1 w:1)
96 /// Proof: `Nfts::Collection` (`max_values`: None, `max_size`: Some(84), added: 2559, mode: `MaxEncodedLen`)
97 /// Storage: `Nfts::CollectionConfigOf` (r:1 w:0)
98 /// Proof: `Nfts::CollectionConfigOf` (`max_values`: None, `max_size`: Some(73), added: 2548, mode: `MaxEncodedLen`)
99 /// Storage: `Nfts::ItemConfigOf` (r:1 w:0)
100 /// Proof: `Nfts::ItemConfigOf` (`max_values`: None, `max_size`: Some(48), added: 2523, mode: `MaxEncodedLen`)
101 /// Storage: `Nfts::Item` (r:1 w:1)
102 /// Proof: `Nfts::Item` (`max_values`: None, `max_size`: Some(861), added: 3336, mode: `MaxEncodedLen`)
103 /// Storage: `Balances::Holds` (r:1 w:1)
104 /// Proof: `Balances::Holds` (`max_values`: None, `max_size`: Some(85), added: 2560, mode: `MaxEncodedLen`)
105 /// Storage: `Nfts::Account` (r:0 w:1)
106 /// Proof: `Nfts::Account` (`max_values`: None, `max_size`: Some(88), added: 2563, mode: `MaxEncodedLen`)
107 /// Storage: `Nfts::ItemPriceOf` (r:0 w:1)
108 /// Proof: `Nfts::ItemPriceOf` (`max_values`: None, `max_size`: Some(89), added: 2564, mode: `MaxEncodedLen`)
109 /// Storage: `Nfts::PendingSwapOf` (r:0 w:1)
110 /// Proof: `Nfts::PendingSwapOf` (`max_values`: None, `max_size`: Some(71), added: 2546, mode: `MaxEncodedLen`)
111 fn unify() -> Weight {
112 // Proof Size summary in bytes:
113 // Measured: `1250`
114 // Estimated: `6114`
115 // Minimum execution time: 163_261_000 picoseconds.
116 Weight::from_parts(167_839_000, 0)
117 .saturating_add(Weight::from_parts(0, 6114))
118 .saturating_add(T::DbWeight::get().reads(12))
119 .saturating_add(T::DbWeight::get().writes(12))
120 }
121}