timechain_runtime/weights/develop/pallet_timegraph.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130
//! Autogenerated weights for `pallet_timegraph`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 47.2.0
//! DATE: 2025-06-06, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `benchmark-agent-1`, CPU: `AMD EPYC Processor`
//! WASM-EXECUTION: `Compiled`, CHAIN: `Some("dev")`, DB CACHE: 1024
// Executed Command:
// ./timechain-node
// benchmark
// pallet
// --chain
// dev
// --pallet
// pallet_timegraph
// --extrinsic
// *
// --output
// ./develop/pallet_timegraph.rs
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
#![allow(missing_docs)]
use polkadot_sdk::*;
use frame_support::{traits::Get, weights::Weight};
use core::marker::PhantomData;
/// Weight functions for `pallet_timegraph`.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_timegraph::WeightInfo for WeightInfo<T> {
/// Storage: `Timegraph::NextDepositSequence` (r:1 w:1)
/// Proof: `Timegraph::NextDepositSequence` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn deposit() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `3468`
// Minimum execution time: 45_353_000 picoseconds.
Weight::from_parts(48_371_000, 0)
.saturating_add(Weight::from_parts(0, 3468))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Timegraph::Threshold` (r:1 w:0)
/// Proof: `Timegraph::Threshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Timegraph::NextWithdrawalSequence` (r:1 w:1)
/// Proof: `Timegraph::NextWithdrawalSequence` (`max_values`: None, `max_size`: None, mode: `Measured`)
fn withdraw() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `3468`
// Minimum execution time: 46_077_000 picoseconds.
Weight::from_parts(48_500_000, 0)
.saturating_add(Weight::from_parts(0, 3468))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Timegraph::TimegraphAccount` (r:1 w:0)
/// Proof: `Timegraph::TimegraphAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:2 w:2)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
/// Storage: `Timegraph::RewardPoolAccount` (r:1 w:0)
/// Proof: `Timegraph::RewardPoolAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn transfer_to_pool() -> Weight {
// Proof Size summary in bytes:
// Measured: `162`
// Estimated: `6196`
// Minimum execution time: 103_773_000 picoseconds.
Weight::from_parts(109_765_000, 0)
.saturating_add(Weight::from_parts(0, 6196))
.saturating_add(T::DbWeight::get().reads(4))
.saturating_add(T::DbWeight::get().writes(2))
}
/// Storage: `Timegraph::TimegraphAccount` (r:1 w:0)
/// Proof: `Timegraph::TimegraphAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `Timegraph::RewardPoolAccount` (r:1 w:0)
/// Proof: `Timegraph::RewardPoolAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
/// Storage: `System::Account` (r:1 w:1)
/// Proof: `System::Account` (`max_values`: None, `max_size`: Some(128), added: 2603, mode: `MaxEncodedLen`)
fn transfer_award_to_user() -> Weight {
// Proof Size summary in bytes:
// Measured: `214`
// Estimated: `3593`
// Minimum execution time: 106_228_000 picoseconds.
Weight::from_parts(111_749_000, 0)
.saturating_add(Weight::from_parts(0, 3593))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Timegraph::TimegraphAccount` (r:1 w:1)
/// Proof: `Timegraph::TimegraphAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_timegraph_account() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `1488`
// Minimum execution time: 16_321_000 picoseconds.
Weight::from_parts(20_158_000, 0)
.saturating_add(Weight::from_parts(0, 1488))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Timegraph::RewardPoolAccount` (r:1 w:1)
/// Proof: `Timegraph::RewardPoolAccount` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_reward_pool_account() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `1488`
// Minimum execution time: 15_519_000 picoseconds.
Weight::from_parts(18_613_000, 0)
.saturating_add(Weight::from_parts(0, 1488))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: `Timegraph::Threshold` (r:1 w:1)
/// Proof: `Timegraph::Threshold` (`max_values`: Some(1), `max_size`: None, mode: `Measured`)
fn set_threshold() -> Weight {
// Proof Size summary in bytes:
// Measured: `3`
// Estimated: `1488`
// Minimum execution time: 15_479_000 picoseconds.
Weight::from_parts(17_091_000, 0)
.saturating_add(Weight::from_parts(0, 1488))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
}