Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 9 additions & 0 deletions .github/workflows/check-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
schedule:
- cron: "0 5 * * 0" # Runs every Sunday at 5:00 AM UTC
- cron: "0 5 * * 3" # Runs every Wednesday at 5:00 AM UTC

env:
FRAME_OMNI_BENCHER_RELEASE_VERSION: polkadot-stable2412

jobs:
set-tags:
Expand Down Expand Up @@ -59,6 +62,12 @@ jobs:
rustup override unset
rustup show
rustup target add wasm32-unknown-unknown
- name: Install frame-omni-bencher
shell: bash
run: |
curl -sL https://github.com/paritytech/polkadot-sdk/releases/download/$FRAME_OMNI_BENCHER_RELEASE_VERSION/frame-omni-bencher -o frame-omni-bencher
chmod +x ./frame-omni-bencher
./frame-omni-bencher --version
- name: Run benchmarks
shell: bash
run: |
Expand Down
4 changes: 2 additions & 2 deletions runtime/moonbase/src/governance/councils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl pallet_collective::Config<TreasuryCouncilInstance> for Runtime {
/// The maximum number of treasury council members.
type MaxMembers = ConstU32<9>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonbase_weights::pallet_collective::WeightInfo<Runtime>;
type WeightInfo = moonbase_weights::pallet_collective_treasury_council::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
}
Expand All @@ -56,7 +56,7 @@ impl pallet_collective::Config<OpenTechCommitteeInstance> for Runtime {
/// The maximum number of technical committee members.
type MaxMembers = ConstU32<100>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonbase_weights::pallet_collective::WeightInfo<Runtime>;
type WeightInfo = moonbase_weights::pallet_collective_open_tech_committee::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
}
8 changes: 8 additions & 0 deletions runtime/moonbase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,12 @@ use moonbeam_runtime_common::deal_with_fees::{

#[cfg(feature = "runtime-benchmarks")]
mod benches {
// TODO: Temporary workaround before upgrading to latest polkadot-sdk - fix https://github.com/paritytech/polkadot-sdk/pull/6435
#[allow(unused_imports)]
use pallet_collective as pallet_collective_treasury_council;
#[allow(unused_imports)]
use pallet_collective as pallet_collective_open_tech_committee;

frame_support::parameter_types! {
pub const MaxBalance: crate::Balance = crate::Balance::max_value();
}
Expand Down Expand Up @@ -1501,6 +1507,8 @@ mod benches {
[pallet_precompile_benchmarks, PrecompileBenchmarks]
[pallet_parameters, Parameters]
[pallet_xcm_weight_trader, XcmWeightTrader]
[pallet_collective_treasury_council, TreasuryCouncilCollective]
[pallet_collective_open_tech_committee, OpenTechCommitteeCollective]
);
}

Expand Down
3 changes: 2 additions & 1 deletion runtime/moonbase/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ pub mod pallet_author_inherent;
pub mod pallet_author_mapping;
pub mod pallet_author_slot_filter;
pub mod pallet_balances;
pub mod pallet_collective;
pub mod pallet_collective_open_tech_committee;
pub mod pallet_collective_treasury_council;
pub mod pallet_conviction_voting;
pub mod pallet_crowdloan_rewards;
pub mod pallet_evm;
Expand Down
308 changes: 0 additions & 308 deletions runtime/moonbase/src/weights/pallet_collective.rs

This file was deleted.

289 changes: 289 additions & 0 deletions runtime/moonbase/src/weights/pallet_collective_open_tech_committee.rs

Large diffs are not rendered by default.

291 changes: 291 additions & 0 deletions runtime/moonbase/src/weights/pallet_collective_treasury_council.rs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions runtime/moonbeam/src/governance/councils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl pallet_collective::Config<TreasuryCouncilInstance> for Runtime {
/// The maximum number of treasury council members.
type MaxMembers = ConstU32<9>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonbeam_weights::pallet_collective::WeightInfo<Runtime>;
type WeightInfo = moonbeam_weights::pallet_collective_treasury_council::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
}
Expand All @@ -55,7 +55,7 @@ impl pallet_collective::Config<OpenTechCommitteeInstance> for Runtime {
/// The maximum number of technical committee members.
type MaxMembers = ConstU32<100>;
type DefaultVote = pallet_collective::MoreThanMajorityThenPrimeDefaultVote;
type WeightInfo = moonbeam_weights::pallet_collective::WeightInfo<Runtime>;
type WeightInfo = moonbeam_weights::pallet_collective_open_tech_committee::WeightInfo<Runtime>;
type SetMembersOrigin = referenda::GeneralAdminOrRoot;
type MaxProposalWeight = MaxProposalWeight;
}
8 changes: 8 additions & 0 deletions runtime/moonbeam/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,12 @@ use moonbeam_runtime_common::deal_with_fees::{

#[cfg(feature = "runtime-benchmarks")]
mod benches {
// TODO: Temporary workaround before upgrading to latest polkadot-sdk - fix https://github.com/paritytech/polkadot-sdk/pull/6435
#[allow(unused_imports)]
use pallet_collective as pallet_collective_treasury_council;
#[allow(unused_imports)]
use pallet_collective as pallet_collective_open_tech_committee;

frame_support::parameter_types! {
pub const MaxBalance: crate::Balance = crate::Balance::max_value();
}
Expand Down Expand Up @@ -1495,6 +1501,8 @@ mod benches {
[pallet_precompile_benchmarks, PrecompileBenchmarks]
[pallet_parameters, Parameters]
[pallet_xcm_weight_trader, XcmWeightTrader]
[pallet_collective_treasury_council, TreasuryCouncilCollective]
[pallet_collective_open_tech_committee, OpenTechCommitteeCollective]
);
}

Expand Down
3 changes: 2 additions & 1 deletion runtime/moonbeam/src/weights/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ pub mod pallet_author_inherent;
pub mod pallet_author_mapping;
pub mod pallet_author_slot_filter;
pub mod pallet_balances;
pub mod pallet_collective;
pub mod pallet_collective_open_tech_committee;
pub mod pallet_collective_treasury_council;
pub mod pallet_conviction_voting;
pub mod pallet_crowdloan_rewards;
pub mod pallet_evm;
Expand Down
Loading
Loading