Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
order collective benchmark params alphabetically to get a consistent …
…ordering
  • Loading branch information
apopiak committed Aug 7, 2020
commit 199a630b3e4053985ac3152bd1a0faec5362c57c
14 changes: 7 additions & 7 deletions frame/collective/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ benchmarks_instance! {
}

execute {
let m in 1 .. MAX_MEMBERS;
let b in 1 .. MAX_BYTES;
let m in 1 .. MAX_MEMBERS;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -141,8 +141,8 @@ benchmarks_instance! {

// This tests when execution would happen immediately after proposal
propose_execute {
let m in 1 .. MAX_MEMBERS;
let b in 1 .. MAX_BYTES;
let m in 1 .. MAX_MEMBERS;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -172,9 +172,9 @@ benchmarks_instance! {

// This tests when proposal is created and queued as "proposed"
propose_proposed {
let b in 1 .. MAX_BYTES;
let m in 2 .. MAX_MEMBERS;
let p in 1 .. T::MaxProposals::get();
let b in 1 .. MAX_BYTES;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -287,10 +287,10 @@ benchmarks_instance! {
}

close_early_disapproved {
let b in 1 .. MAX_BYTES;
// We choose 4 as a minimum so we always trigger a vote in the voting loop (`for j in ...`)
let m in 4 .. MAX_MEMBERS;
let p in 1 .. T::MaxProposals::get();
let b in 1 .. MAX_BYTES;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -364,10 +364,10 @@ benchmarks_instance! {
}

close_early_approved {
let b in 1 .. MAX_BYTES;
// We choose 4 as a minimum so we always trigger a vote in the voting loop (`for j in ...`)
let m in 4 .. MAX_MEMBERS;
let p in 1 .. T::MaxProposals::get();
let b in 1 .. MAX_BYTES;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -445,10 +445,10 @@ benchmarks_instance! {
}

close_disapproved {
let b in 1 .. MAX_BYTES;
// We choose 4 as a minimum so we always trigger a vote in the voting loop (`for j in ...`)
let m in 4 .. MAX_MEMBERS;
let p in 1 .. T::MaxProposals::get();
let b in 1 .. MAX_BYTES;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down Expand Up @@ -517,10 +517,10 @@ benchmarks_instance! {
}

close_approved {
let b in 1 .. MAX_BYTES;
// We choose 4 as a minimum so we always trigger a vote in the voting loop (`for j in ...`)
let m in 4 .. MAX_MEMBERS;
let p in 1 .. T::MaxProposals::get();
let b in 1 .. MAX_BYTES;

let bytes_in_storage = b + size_of::<u32>() as u32;

Expand Down