Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Use define_benchmarks! #926

Merged
merged 1 commit into from
Jan 21, 2022
Merged

Conversation

ggwpez
Copy link
Member

@ggwpez ggwpez commented Jan 21, 2022

paritytech/substrate#10592 made it possible to reduce the combination of add_benchmark+list_benchmark to just one define_benchmarks.
This MR refactors the code to use it.

Same as in Polkadot paritytech/polkadot#4760

@ reviewers

  • The change can be verified by listing all benchmarks: cargo run --features=runtime-benchmarks --bin polkadot-collator -- benchmark --chain=westmint-dev --pallet="*" --extrinsic="*" --list for westmint, statemint and statemine.

Signed-off-by: Oliver Tale-Yazdi <[email protected]>
@ggwpez ggwpez added A0-pleasereview B0-silent Changes should not be mentioned in any release notes labels Jan 21, 2022
@ggwpez ggwpez self-assigned this Jan 21, 2022
@ggwpez
Copy link
Member Author

ggwpez commented Jan 21, 2022

bot merge

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
B0-silent Changes should not be mentioned in any release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants