domain_pallet_executive/weights.rs
1
2//! Autogenerated weights for domain_pallet_executive
3//!
4//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
5//! DATE: 2023-10-12, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
6//! WORST CASE MAP SIZE: `1000000`
7//! HOSTNAME: `mac-mini.local`, CPU: `<UNKNOWN>`
8//! EXECUTION: , WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
9
10// Executed Command:
11// ./target/release/subspace-node
12// domain
13// benchmark
14// pallet
15// --chain=dev
16// --steps=50
17// --repeat=20
18// --pallet=domain-pallet-executive
19// --extrinsic=*
20// --wasm-execution=compiled
21// --heap-pages=4096
22// --output=./domains/pallets/executive/src/weights.rs
23// --template
24// ./frame-weight-template.hbs
25
26#![cfg_attr(rustfmt, rustfmt_skip)]
27#![allow(unused_parens)]
28#![allow(unused_imports)]
29
30use frame_support::{traits::Get, weights::{Weight, constants::ParityDbWeight}};
31use core::marker::PhantomData;
32
33/// Weight functions needed for domain_pallet_executive.
34pub trait WeightInfo {
35 fn set_code() -> Weight;
36}
37
38/// Weights for domain_pallet_executive using the Substrate node and recommended hardware.
39pub struct SubstrateWeight<T>(PhantomData<T>);
40impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
41 /// Storage: `System::Digest` (r:1 w:1)
42 /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
43 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
44 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
45 fn set_code() -> Weight {
46 // Proof Size summary in bytes:
47 // Measured: `0`
48 // Estimated: `1485`
49 // Minimum execution time: 14_298_000_000 picoseconds.
50 Weight::from_parts(14_475_000_000, 1485)
51 .saturating_add(T::DbWeight::get().reads(1_u64))
52 .saturating_add(T::DbWeight::get().writes(2_u64))
53 }
54}
55
56// For backwards compatibility and tests
57impl WeightInfo for () {
58 /// Storage: `System::Digest` (r:1 w:1)
59 /// Proof: `System::Digest` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
60 /// Storage: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
61 /// Proof: UNKNOWN KEY `0x3a636f6465` (r:0 w:1)
62 fn set_code() -> Weight {
63 // Proof Size summary in bytes:
64 // Measured: `0`
65 // Estimated: `1485`
66 // Minimum execution time: 14_298_000_000 picoseconds.
67 Weight::from_parts(14_475_000_000, 1485)
68 .saturating_add(ParityDbWeight::get().reads(1_u64))
69 .saturating_add(ParityDbWeight::get().writes(2_u64))
70 }
71}