Skip to content

Commit

Permalink
frame/benchmarking: Adjust benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
  • Loading branch information
lexnv committed Feb 3, 2023
1 parent 3bf46aa commit ae85bbe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frame/benchmarking/pov/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ mod mock {
}
);

impl Test {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
Expand Down
6 changes: 6 additions & 0 deletions frame/benchmarking/src/baseline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ pub mod mock {
}
);

impl Test {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
Expand Down
6 changes: 6 additions & 0 deletions frame/system/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ frame_support::construct_runtime!(
}
);

impl Runtime {
fn runtime_metadata() -> Vec<frame_support::metadata::v15::TraitMetadata> {
Default::default()
}
}

frame_support::parameter_types! {
pub BlockLength: frame_system::limits::BlockLength =
frame_system::limits::BlockLength::max_with_normal_ratio(
Expand Down

0 comments on commit ae85bbe

Please sign in to comment.