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

scheduler pallet benchmarking #43

Merged
merged 4 commits into from
Aug 24, 2021
Merged

scheduler pallet benchmarking #43

merged 4 commits into from
Aug 24, 2021

Conversation

flipchan
Copy link
Contributor

Everything is set, works only when calling the pallet directly, not works from local weights but from the pallets weights(even doe the file is the same)

WIP

@@ -650,7 +650,10 @@ impl scheduler::Config for Runtime {
type ScheduleOrigin = EnsureRoot<AccountId>;
type MaxScheduledPerBlock = MaxScheduledPerBlock;
// TODO: benchmark for runtime
type WeightInfo = ();
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>;
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 needs to change to weights::scheduler

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>;
type WeightInfo = weights::scheduler::SubstrateWeight<Runtime>;

@flipchan
Copy link
Contributor Author

https://github.com/ComposableFi/composable/pull/43/files#diff-34872144a6214b4540b9cf64e4501fa5bc1bd6001ca6eba15013a79f3e7d7c16R653

this is super weird, when using the weight file from the pallet it works but not copying it over to the folder

@@ -650,7 +650,10 @@ impl scheduler::Config for Runtime {
type ScheduleOrigin = EnsureRoot<AccountId>;
type MaxScheduledPerBlock = MaxScheduledPerBlock;
// TODO: benchmark for runtime
type WeightInfo = ();
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type WeightInfo = scheduler::weights::SubstrateWeight<Runtime>;
type WeightInfo = weights::scheduler::SubstrateWeight<Runtime>;

@flipchan
Copy link
Contributor Author

@seunlanlege changes made

Copy link
Contributor

@seunlanlege seunlanlege left a comment

Choose a reason for hiding this comment

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

perfect

@seunlanlege seunlanlege merged commit 04c317d into main Aug 24, 2021
@seunlanlege seunlanlege deleted the scheduler branch August 24, 2021 12:52
seunlanlege pushed a commit that referenced this pull request Sep 20, 2021
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.

3 participants