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

Fix and add benchs for democracy pallet #5897

Merged
merged 6 commits into from
May 7, 2020
Merged

Conversation

gui1117
Copy link
Contributor

@gui1117 gui1117 commented May 5, 2020

  • external propose now consider the cost of a blacklist with multiple vetoers
  • add a benchmark for on_initialize when nothing happens (no maturing referenda nor launch)

@gui1117 gui1117 added the A0-please_review Pull request needs code review. label May 5, 2020
@gui1117 gui1117 mentioned this pull request May 5, 2020
5 tasks
@gui1117 gui1117 added B0-silent Changes should not be mentioned in any release notes and removed B2-breaksapi labels May 5, 2020
@gui1117 gui1117 added this to the 2.0 milestone May 6, 2020
@gui1117 gui1117 requested a review from apopiak May 6, 2020 09:43
@@ -467,6 +471,36 @@ benchmarks! {
}
}

on_initialize_no_launch_no_maturing {
Copy link
Contributor

@kianenigma kianenigma May 6, 2020

Choose a reason for hiding this comment

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

how is this different from all the other on_initialize_xxx benches?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes on_initialize_external do benchmark the launch of an external referendum and the maturing of R referendums.
and on_initialize_public does same with public referendum.

I agree doc should improve here, I'll try to do in my weight PR

gui1117 and others added 2 commits May 6, 2020 15:09
@gui1117 gui1117 added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels May 6, 2020
@gui1117 gui1117 removed the request for review from marcio-diaz May 6, 2020 14:09
@gui1117
Copy link
Contributor Author

gui1117 commented May 7, 2020

bot merge

@bkchr bkchr merged commit c889f82 into master May 7, 2020
@bkchr bkchr deleted the gui-democracy-benchmarks branch May 7, 2020 12:52
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.

6 participants