Skip to content

Commit

Permalink
Update benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
vovacha committed Sep 13, 2022
1 parent 9e1bfa5 commit 9318ed6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
3 changes: 2 additions & 1 deletion control/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ benchmarks! {

let org_id = <Pallet::<T> as ControlBenchmarkingTrait<T::AccountId, T::Hash>>::create_org(caller.clone()).unwrap();
let prime_id = Some(caller.clone());
let org_type = Some(OrgType::Individual);
let access_model = Some(AccessModel::Voting);
let member_limit = Some(100 as MemberLimit);
let fee_model = Some(FeeModel::NoFees);
let membership_fee: Option<T::Balance> = Some(99_u32.saturated_into());
}: _(
RawOrigin::Signed(caller), org_id, prime_id, access_model.clone(),
RawOrigin::Signed(caller), org_id, prime_id, org_type, access_model.clone(),
member_limit, fee_model.clone(), membership_fee
)

Expand Down
32 changes: 17 additions & 15 deletions control/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for gamedao_control
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2022-08-16, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2022-09-13, STEPS: `20`, REPEAT: 10, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: None, DB CACHE: 1024
// Executed Command:
Expand Down Expand Up @@ -68,9 +68,10 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().writes(10 as Weight))
}
// Storage: Control Orgs (r:1 w:1)
// Storage: Control MemberStates (r:1 w:0)
fn update_org() -> Weight {
(18_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
(22_000_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Control Orgs (r:1 w:0)
Expand All @@ -93,9 +94,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Control OrgMemberCount (r:0 w:1)
// Storage: Control MemberStates (r:0 w:1)
fn add_member(r: u32, ) -> Weight {
(24_184_000 as Weight)
// Standard Error: 1_000
.saturating_add((73_000 as Weight).saturating_mul(r as Weight))
(27_200_000 as Weight)
// Standard Error: 2_000
.saturating_add((36_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(3 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -104,9 +105,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Control OrgMemberCount (r:0 w:1)
// Storage: Control MemberStates (r:0 w:1)
fn remove_member(r: u32, ) -> Weight {
(21_860_000 as Weight)
(24_323_000 as Weight)
// Standard Error: 2_000
.saturating_add((72_000 as Weight).saturating_mul(r as Weight))
.saturating_add((31_000 as Weight).saturating_mul(r as Weight))
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand Down Expand Up @@ -138,9 +139,10 @@ impl WeightInfo for () {
.saturating_add(RocksDbWeight::get().writes(10 as Weight))
}
// Storage: Control Orgs (r:1 w:1)
// Storage: Control MemberStates (r:1 w:0)
fn update_org() -> Weight {
(18_000_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
(22_000_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: Control Orgs (r:1 w:0)
Expand All @@ -163,9 +165,9 @@ impl WeightInfo for () {
// Storage: Control OrgMemberCount (r:0 w:1)
// Storage: Control MemberStates (r:0 w:1)
fn add_member(r: u32, ) -> Weight {
(24_184_000 as Weight)
// Standard Error: 1_000
.saturating_add((73_000 as Weight).saturating_mul(r as Weight))
(27_200_000 as Weight)
// Standard Error: 2_000
.saturating_add((36_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(3 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand All @@ -174,9 +176,9 @@ impl WeightInfo for () {
// Storage: Control OrgMemberCount (r:0 w:1)
// Storage: Control MemberStates (r:0 w:1)
fn remove_member(r: u32, ) -> Weight {
(21_860_000 as Weight)
(24_323_000 as Weight)
// Standard Error: 2_000
.saturating_add((72_000 as Weight).saturating_mul(r as Weight))
.saturating_add((31_000 as Weight).saturating_mul(r as Weight))
.saturating_add(RocksDbWeight::get().reads(2 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand Down

0 comments on commit 9318ed6

Please sign in to comment.