subspace_runtime_primitives/extension/
weights.rs

1
2//! Autogenerated weights for `balance_transfer_check_extension`
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 46.2.0
5//! DATE: 2025-06-09, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `MacBook-Pro`, CPU: `M1 Max`
8//! WASM-EXECUTION: `Compiled`, CHAIN: `None`, DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/subspace-node
12// benchmark
13// pallet
14// --runtime=./target/release/wbuild/subspace-runtime/subspace_runtime.compact.compressed.wasm
15// --genesis-builder=none
16// --steps=50
17// --repeat=20
18// --pallet=balance_transfer_check_extension
19// --extrinsic=*
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./crates/subspace-runtime-primitives/src/extension/weights.rs
23
24#![cfg_attr(rustfmt, rustfmt_skip)]
25#![allow(unused_parens)]
26#![allow(unused_imports)]
27#![allow(missing_docs)]
28
29use frame_support::{traits::Get, weights::Weight};
30use core::marker::PhantomData;
31
32/// Weight functions for `balance_transfer_check_extension`.
33pub struct WeightInfo<T>(PhantomData<T>);
34impl<T: frame_system::Config> crate::extension::WeightInfo for WeightInfo<T> {
35	/// Storage: `RuntimeConfigs::EnableBalanceTransfers` (r:1 w:0)
36	/// Proof: `RuntimeConfigs::EnableBalanceTransfers` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
37	/// The range of component `c` is `[0, 5000]`.
38	fn balance_transfer_check_multiple(c: u32, ) -> Weight {
39		// Proof Size summary in bytes:
40		//  Measured:  `0`
41		//  Estimated: `1486`
42		// Minimum execution time: 1_000_000 picoseconds.
43		Weight::from_parts(1_139_820, 0)
44			.saturating_add(Weight::from_parts(0, 1486))
45			// Standard Error: 12
46			.saturating_add(Weight::from_parts(189, 0).saturating_mul(c.into()))
47			.saturating_add(T::DbWeight::get().reads(1))
48	}
49	/// Storage: `RuntimeConfigs::EnableBalanceTransfers` (r:1 w:0)
50	/// Proof: `RuntimeConfigs::EnableBalanceTransfers` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
51	/// The range of component `c` is `[0, 5000]`.
52	fn balance_transfer_check_utility(c: u32, ) -> Weight {
53		// Proof Size summary in bytes:
54		//  Measured:  `0`
55		//  Estimated: `1486`
56		// Minimum execution time: 1_000_000 picoseconds.
57		Weight::from_parts(1_024_479, 0)
58			.saturating_add(Weight::from_parts(0, 1486))
59			// Standard Error: 11
60			.saturating_add(Weight::from_parts(67, 0).saturating_mul(c.into()))
61			.saturating_add(T::DbWeight::get().reads(1))
62	}
63	/// Storage: `RuntimeConfigs::EnableBalanceTransfers` (r:1 w:0)
64	/// Proof: `RuntimeConfigs::EnableBalanceTransfers` (`max_values`: Some(1), `max_size`: Some(1), added: 496, mode: `MaxEncodedLen`)
65	/// The range of component `c` is `[0, 5000]`.
66	fn balance_transfer_check_multisig(c: u32, ) -> Weight {
67		// Proof Size summary in bytes:
68		//  Measured:  `0`
69		//  Estimated: `1486`
70		// Minimum execution time: 1_000_000 picoseconds.
71		Weight::from_parts(968_264, 0)
72			.saturating_add(Weight::from_parts(0, 1486))
73			// Standard Error: 49
74			.saturating_add(Weight::from_parts(401, 0).saturating_mul(c.into()))
75			.saturating_add(T::DbWeight::get().reads(1))
76	}
77}