/home/runner/work/creditcoin/creditcoin/pallets/difficulty/src/weights.rs
Line | Count | Source |
1 | | |
2 | | //! Autogenerated weights for `super` |
3 | | //! |
4 | | //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev |
5 | | //! DATE: 2022-11-09, STEPS: `50`, REPEAT: 30, LOW RANGE: `[]`, HIGH RANGE: `[]` |
6 | | //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024 |
7 | | |
8 | | // Executed Command: |
9 | | // ./target/release/creditcoin-node |
10 | | // benchmark |
11 | | // --chain |
12 | | // dev |
13 | | // --steps=50 |
14 | | // --repeat=30 |
15 | | // --pallet |
16 | | // super |
17 | | // --extrinsic=* |
18 | | // --execution |
19 | | // wasm |
20 | | // --wasm-execution=compiled |
21 | | // --heap-pages=10000 |
22 | | // --output |
23 | | // ./pallets/difficulty/src/weights.rs |
24 | | |
25 | | #![cfg_attr(rustfmt, rustfmt_skip)] |
26 | | #![allow(unused_parens)] |
27 | | #![allow(unused_imports)] |
28 | | |
29 | | use frame_support::{traits::Get, weights::Weight}; |
30 | | use sp_std::marker::PhantomData; |
31 | | |
32 | | /// Weight functions for `super`. |
33 | | pub struct WeightInfo<T>(PhantomData<T>); |
34 | | impl<T: frame_system::Config> super::WeightInfo for WeightInfo<T> { |
35 | | // Storage: Difficulty TargetBlockTime (r:0 w:1) |
36 | 1 | fn set_target_block_time() -> Weight { |
37 | 1 | (2_500_000 as Weight) |
38 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
39 | 1 | } |
40 | | // Storage: Difficulty DifficultyAdjustmentPeriod (r:0 w:1) |
41 | 1 | fn set_adjustment_period() -> Weight { |
42 | 1 | (2_500_000 as Weight) |
43 | 1 | .saturating_add(T::DbWeight::get().writes(1 as Weight)) |
44 | 1 | } |
45 | | } |