contracts_mbm/
weights.rs

1
2// This file is part of Astar.
3
4// Copyright (C) Stake Technologies Pte.Ltd.
5// SPDX-License-Identifier: GPL-3.0-or-later
6
7// Astar is free software: you can redistribute it and/or modify
8// it under the terms of the GNU General Public License as published by
9// the Free Software Foundation, either version 3 of the License, or
10// (at your option) any later version.
11
12// Astar is distributed in the hope that it will be useful,
13// but WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15// GNU General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with Astar. If not, see <http://www.gnu.org/licenses/>.
19
20//! Autogenerated weights for `contracts_mbm`
21//!
22//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 49.1.0
23//! DATE: 2026-08-31, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
24//! WORST CASE MAP SIZE: `1000000`
25//! HOSTNAME: `gh-runner-01-ovh`, CPU: `Intel(R) Xeon(R) E-2236 CPU @ 3.40GHz`
26//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
27
28// Executed Command:
29// frame-omni-bencher
30// v1
31// benchmark
32// pallet
33// --runtime=./target/release/wbuild/astar-runtime/astar_runtime.compact.compressed.wasm
34// --steps=50
35// --repeat=20
36// --pallet=contracts_mbm
37// --extrinsic=*
38// --wasm-execution=compiled
39// --heap-pages=4096
40// --output=./benchmark-results/astar/pallet/mbm_weights.rs
41// --template=./scripts/templates/pallet-weight-template.hbs
42
43#![cfg_attr(rustfmt, rustfmt_skip)]
44#![allow(unused_parens)]
45#![allow(unused_imports)]
46#![allow(missing_docs)]
47#![allow(dead_code)]
48
49use frame_support::{traits::Get, weights::Weight};
50use core::marker::PhantomData;
51
52/// Weight info trait.
53pub trait WeightInfo {
54	fn remove_key(x: u32, ) -> Weight;
55	fn remove_child_key(x: u32, ) -> Weight;
56	fn release_contract_consumer() -> Weight;
57}
58
59/// Weight functions for `contracts_mbm`.
60pub struct SubstrateWeight<T>(PhantomData<T>);
61impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
62	/// Storage: UNKNOWN KEY `0x4342193e496fab7ec59d615ed0dc5530` (r:1 w:0)
63	/// Proof: UNKNOWN KEY `0x4342193e496fab7ec59d615ed0dc5530` (r:1 w:0)
64	/// Storage: UNKNOWN KEY `0x4342193e496fab7ec59d615ed0dc55304d6c2b03b90028f3bf407eb433e96389` (r:1 w:1)
65	/// Proof: UNKNOWN KEY `0x4342193e496fab7ec59d615ed0dc55304d6c2b03b90028f3bf407eb433e96389` (r:1 w:1)
66	/// The range of component `x` is `[0, 131072]`.
67	fn remove_key(x: u32, ) -> Weight {
68		// Proof Size summary in bytes:
69		//  Measured:  `82 + x * (1 ±0)`
70		//  Estimated: `3546 + x * (1 ±0)`
71		// Minimum execution time: 18_295_000 picoseconds.
72		Weight::from_parts(19_400_806, 0)
73			.saturating_add(Weight::from_parts(0, 3546))
74			// Standard Error: 0
75			.saturating_add(Weight::from_parts(140, 0).saturating_mul(x.into()))
76			.saturating_add(T::DbWeight::get().reads(2))
77			.saturating_add(T::DbWeight::get().writes(1))
78			.saturating_add(Weight::from_parts(0, 1).saturating_mul(x.into()))
79	}
80	/// Storage: UNKNOWN KEY `0x` (r:1 w:0)
81	/// Proof: UNKNOWN KEY `0x` (r:1 w:0)
82	/// Storage: UNKNOWN KEY `0x375e47f0a62e338ab3e389f0f35469ee` (r:1 w:1)
83	/// Proof: UNKNOWN KEY `0x375e47f0a62e338ab3e389f0f35469ee` (r:1 w:1)
84	/// The range of component `x` is `[0, 131072]`.
85	fn remove_child_key(x: u32, ) -> Weight {
86		// Proof Size summary in bytes:
87		//  Measured:  `125 + x * (1 ±0)`
88		//  Estimated: `3589 + x * (1 ±0)`
89		// Minimum execution time: 11_082_000 picoseconds.
90		Weight::from_parts(12_304_431, 0)
91			.saturating_add(Weight::from_parts(0, 3589))
92			// Standard Error: 1
93			.saturating_add(Weight::from_parts(165, 0).saturating_mul(x.into()))
94			.saturating_add(T::DbWeight::get().reads(2))
95			.saturating_add(T::DbWeight::get().writes(1))
96			.saturating_add(Weight::from_parts(0, 1).saturating_mul(x.into()))
97	}
98	/// Storage: `System::Account` (r:1 w:1)
99	/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
100	fn release_contract_consumer() -> Weight {
101		// Proof Size summary in bytes:
102		//  Measured:  `103`
103		//  Estimated: `3593`
104		// Minimum execution time: 7_271_000 picoseconds.
105		Weight::from_parts(7_551_000, 0)
106			.saturating_add(Weight::from_parts(0, 3593))
107			.saturating_add(T::DbWeight::get().reads(1))
108			.saturating_add(T::DbWeight::get().writes(1))
109	}
110}