git.delta.rocks / unique-network / refs/commits / dc1fefd785d4

difftreelog

source

pallets/inflation/src/benchmarking.rs476 Bsourcehistory
1#![cfg(feature = "runtime-benchmarks")]23use super::*;4use crate::Module as Inflation;56use frame_benchmarking::{benchmarks};7use frame_support::traits::OnInitialize;89benchmarks! {1011	on_initialize {12		let block1: T::BlockNumber = T::BlockNumber::from(1u32);13		let block2: T::BlockNumber = T::BlockNumber::from(2u32);14		Inflation::<T>::on_initialize(block1); // Create Treasury account15	}: { Inflation::<T>::on_initialize(block2); } // Benchmark deposit_into_existing path1617}