pallet_address_associations/weights.rs
1
2//! Autogenerated weights for pallet_address_associations
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.0.0
5//! DATE: 2025-06-24, STEPS: `500`, REPEAT: `200`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `Nikolaoss-MacBook-Pro.local`, CPU: `<UNKNOWN>`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
9
10// Executed Command:
11// frame-omni-bencher
12// v1
13// benchmark
14// pallet
15// --runtime
16// target/release/wbuild/partner-chains-demo-runtime/partner_chains_demo_runtime.compact.compressed.wasm
17// --pallet
18// pallet_address_associations
19// --extrinsic
20// *
21// --steps=500
22// --repeat=200
23// --wasm-execution=compiled
24// --output
25// toolkit/address-associations/pallet/src/weights.rs
26// --template
27// .maintain/frame-weight-template.hbs
28
29#![cfg_attr(rustfmt, rustfmt_skip)]
30#![allow(unused_parens)]
31#![allow(unused_imports)]
32#![allow(missing_docs)]
33
34use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
35use core::marker::PhantomData;
36
37/// Weight functions needed for pallet_address_associations.
38pub trait WeightInfo {
39 fn associate_address() -> Weight;
40}
41
42/// Weights for pallet_address_associations using the Substrate node and recommended hardware.
43pub struct SubstrateWeight<T>(PhantomData<T>);
44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
45 /// Storage: `Sidechain::GenesisUtxo` (r:1 w:0)
46 /// Proof: `Sidechain::GenesisUtxo` (`max_values`: Some(1), `max_size`: Some(34), added: 529, mode: `MaxEncodedLen`)
47 /// Storage: `AddressAssociations::AddressAssociations` (r:1 w:1)
48 /// Proof: `AddressAssociations::AddressAssociations` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
49 /// Storage: `System::Account` (r:1 w:1)
50 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
51 fn associate_address() -> Weight {
52 // Proof Size summary in bytes:
53 // Measured: `197`
54 // Estimated: `3593`
55 // Minimum execution time: 84_000_000 picoseconds.
56 Weight::from_parts(85_000_000, 3593)
57 .saturating_add(T::DbWeight::get().reads(3_u64))
58 .saturating_add(T::DbWeight::get().writes(2_u64))
59 }
60}
61
62// For backwards compatibility and tests
63impl WeightInfo for () {
64 /// Storage: `Sidechain::GenesisUtxo` (r:1 w:0)
65 /// Proof: `Sidechain::GenesisUtxo` (`max_values`: Some(1), `max_size`: Some(34), added: 529, mode: `MaxEncodedLen`)
66 /// Storage: `AddressAssociations::AddressAssociations` (r:1 w:1)
67 /// Proof: `AddressAssociations::AddressAssociations` (`max_values`: None, `max_size`: Some(76), added: 2551, mode: `MaxEncodedLen`)
68 /// Storage: `System::Account` (r:1 w:1)
69 /// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
70 fn associate_address() -> Weight {
71 // Proof Size summary in bytes:
72 // Measured: `197`
73 // Estimated: `3593`
74 // Minimum execution time: 84_000_000 picoseconds.
75 Weight::from_parts(85_000_000, 3593)
76 .saturating_add(RocksDbWeight::get().reads(3_u64))
77 .saturating_add(RocksDbWeight::get().writes(2_u64))
78 }
79}