pallet_hookpoints/
weights.rs

1
2//! Autogenerated weights for pallet_hookpoints
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5//! DATE: 2023-08-13, STEPS: `20`, REPEAT: `10`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `chp`, CPU: `12th Gen Intel(R) Core(TM) i7-12700H`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/genesis-dao-solochain
12// benchmark
13// pallet
14// --chain
15// dev
16// --pallet
17// pallet_hookpoints
18// --extrinsic
19// *
20// --steps
21// 20
22// --repeat
23// 10
24// --output
25// pallets/hookpoints/src/weights.rs
26// --template
27// ./benchmarking/frame-weight-template.hbs
28
29#![cfg_attr(rustfmt, rustfmt_skip)]
30#![allow(unused_parens)]
31#![allow(unused_imports)]
32
33use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}};
34use core::marker::PhantomData;
35
36/// Weight functions needed for pallet_hookpoints.
37pub trait WeightInfo {
38	fn register_global_callback() -> Weight;
39	fn register_specific_callback() -> Weight;
40}
41
42/// Weights for pallet_hookpoints using the Substrate node and recommended hardware.
43pub struct SubstrateWeight<T>(PhantomData<T>);
44impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
45	/// Storage: `Hookpoints::GlobalCallbacks` (r:0 w:1)
46	/// Proof: `Hookpoints::GlobalCallbacks` (`max_values`: None, `max_size`: None, mode: `Measured`)
47	fn register_global_callback() -> Weight {
48		// Proof Size summary in bytes:
49		//  Measured:  `0`
50		//  Estimated: `0`
51		// Minimum execution time: 7_155_000 picoseconds.
52		Weight::from_parts(7_489_000, 0)
53			.saturating_add(T::DbWeight::get().writes(1_u64))
54	}
55	/// Storage: `Hookpoints::SpecificCallbacks` (r:0 w:1)
56	/// Proof: `Hookpoints::SpecificCallbacks` (`max_values`: None, `max_size`: None, mode: `Measured`)
57	fn register_specific_callback() -> Weight {
58		// Proof Size summary in bytes:
59		//  Measured:  `0`
60		//  Estimated: `0`
61		// Minimum execution time: 7_675_000 picoseconds.
62		Weight::from_parts(8_073_000, 0)
63			.saturating_add(T::DbWeight::get().writes(1_u64))
64	}
65}
66
67// For backwards compatibility and tests
68impl WeightInfo for () {
69	/// Storage: `Hookpoints::GlobalCallbacks` (r:0 w:1)
70	/// Proof: `Hookpoints::GlobalCallbacks` (`max_values`: None, `max_size`: None, mode: `Measured`)
71	fn register_global_callback() -> Weight {
72		// Proof Size summary in bytes:
73		//  Measured:  `0`
74		//  Estimated: `0`
75		// Minimum execution time: 7_155_000 picoseconds.
76		Weight::from_parts(7_489_000, 0)
77			.saturating_add(RocksDbWeight::get().writes(1_u64))
78	}
79	/// Storage: `Hookpoints::SpecificCallbacks` (r:0 w:1)
80	/// Proof: `Hookpoints::SpecificCallbacks` (`max_values`: None, `max_size`: None, mode: `Measured`)
81	fn register_specific_callback() -> Weight {
82		// Proof Size summary in bytes:
83		//  Measured:  `0`
84		//  Estimated: `0`
85		// Minimum execution time: 7_675_000 picoseconds.
86		Weight::from_parts(8_073_000, 0)
87			.saturating_add(RocksDbWeight::get().writes(1_u64))
88	}
89}