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
// Copyright 2021 ChainSafe Systems
// SPDX-License-Identifier: LGPL-3.0-only
//! Autogenerated weights for `pallet_committee`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-09-29, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pint-local"), DB CACHE: 128
// Executed Command:
// ./target/release/pint
// benchmark
// -p
// pallet_committee
// -e
// *
// --raw
// --chain
// pint-local
// --output
// ./runtime/common/src/weights/pallet_committee.rs
// --steps
// 50
// --repeat
// 20
// --heap-pages
// 4096
// --execution
// wasm
// --wasm-execution
// compiled
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]
use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
/// Weight functions for pallet_committee.
pub struct WeightInfo<T>(PhantomData<T>);
impl<T: frame_system::Config> pallet_committee::WeightInfo for WeightInfo<T> {
// Storage: Committee Members (r:1 w:0)
// Storage: Committee ProposalCount (r:1 w:1)
// Storage: Committee ActiveProposals (r:1 w:1)
// Storage: Committee VotingPeriod (r:1 w:0)
// Storage: Committee Proposals (r:0 w:1)
// Storage: Committee Votes (r:0 w:1)
fn propose() -> Weight {
(34_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(4 as Weight))
}
// Storage: Committee Members (r:1 w:0)
// Storage: Committee VotingEligibility (r:1 w:0)
// Storage: Committee Votes (r:1 w:1)
// Storage: Committee VotingPeriod (r:1 w:0)
fn vote() -> Weight {
(33_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Committee Members (r:1 w:0)
// Storage: Committee Proposals (r:1 w:1)
// Storage: Committee Votes (r:1 w:0)
// Storage: Committee VotingPeriod (r:1 w:0)
fn close() -> Weight {
(34_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(4 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Committee Members (r:1 w:1)
// Storage: Committee VotingPeriod (r:1 w:0)
// Storage: Committee VotingEligibility (r:0 w:1)
fn add_constituent() -> Weight {
(22_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Committee Members (r:1 w:1)
// Storage: Committee VotingEligibility (r:1 w:1)
fn remove_member() -> Weight {
(21_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: Committee PendingVotingPeriod (r:0 w:1)
fn set_voting_period() -> Weight {
(2_000_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}