Coverage Report

Created: 2022-11-10 19:56

/home/runner/work/creditcoin/creditcoin/pallets/rewards/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/rewards/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: System Digest (r:1 w:0)
36
18
  fn on_initialize() -> Weight {
37
18
    (3_400_000 as Weight)
38
18
      .saturating_add(T::DbWeight::get().reads(1 as Weight))
39
18
  }
40
  // Storage: System Account (r:1 w:1)
41
18
  fn on_finalize() -> Weight {
42
18
    (49_800_000 as Weight)
43
18
      .saturating_add(T::DbWeight::get().reads(1 as Weight))
44
18
      .saturating_add(T::DbWeight::get().writes(1 as Weight))
45
18
  }
46
}