Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add orml-vesting benchmarks #15

Closed
wants to merge 11 commits into from
Closed

Add orml-vesting benchmarks #15

wants to merge 11 commits into from

Conversation

clangenb
Copy link
Contributor

@clangenb clangenb commented Mar 17, 2024

Add orml-vesting benchmark in similar fashion to how they do it in acala: https://github.com/AcalaNetwork/Acala/blob/b5b5a7499702067421745edd93c686abf6476f19/runtime/mandala/src/benchmarking/mod.rs

Todo: Currently, the orml-benchmarks and the regular runtime-benchmarks can't be built simultaneously because they are different, and we get some type errors if we want to compile them both. However, it should be fairly straightforward to change the paradigm used in the orml-vesting benchmarking to be the same as the polkadot-sdk pallets, and then we can unify the benchmarking. Furhtermore, if we do it like that, we probably want to move the orml-vesting-benchmarks into the ajuna-pallets repository, such that they can be re-used in the ajuna-parachain.

To preserve a clean git history on develop, I suggest merging the other PRs first:

@clangenb clangenb force-pushed the cl/orml-benchmarks branch from f5dfd9b to 4e8aba5 Compare March 17, 2024 19:10
use frame_system::RawOrigin;
use sp_std::prelude::*;

use orml_benchmarking::runtime_benchmarks;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Todo: use the frame-benchmarking::benchmarks macro here and rewrite the benchmarks.

Comment on lines -491 to +493
pub const MinVestedTransfer: Balance = 100 * MICRO_BAJUN;
pub const MinVestedTransfer: Balance = MILLI_BAJUN;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was below the ED.

This was referenced Mar 26, 2024
@clangenb
Copy link
Contributor Author

Superseded by #17

@clangenb clangenb closed this Mar 27, 2024
@clangenb clangenb deleted the cl/orml-benchmarks branch March 30, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants