-
Notifications
You must be signed in to change notification settings - Fork 1.2k
short-term fix for para inherent weight overestimation #5082
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
b0fbeec
temp fix for para inherent weight overestimation
ordian 940c02e
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
67c295d
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
08dc2cc
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
f920d3b
fixup
ordian 9c7d1b5
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian 42d0302
another fixup
ordian f4d2eee
fixup
ordian b235de4
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian be07fcb
fix a typo
ordian 9fe7a6b
polkadot bench: make bitfields full in builder
ordian ce6d0ac
rename some weight files
ordian 64b367c
some more weight renames
ordian d305a1a
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian c8b2c30
fmt
ordian e9258b7
rename rococo weights too
ordian 6133e83
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
c9f313c
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
ea9abce
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
254c11c
prdoc
ordian ca5ee10
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian c4e0989
restore the comment
ordian cbe0b3f
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian 277f40a
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian 90e4eaf
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian b5873d4
adjust some of the runtime builder params
ordian 05d90cb
adjust backing bench
ordian bb75fb5
rename validaty to backing votes
ordian 73d3e6e
fix a typo
ordian 1ca7b53
Merge branch 'master' of https://github.com/paritytech/polkadot-sdk i…
18c3e03
".git/.scripts/commands/bench/bench.sh" --subcommand=pallet --runtime…
46c7965
Merge branch 'master' into ao-fix-parainclusion-weight-overestimation
ordian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,6 +26,20 @@ use polkadot_primitives::v7::GroupIndex; | |
| use crate::builder::BenchBuilder; | ||
|
|
||
| benchmarks! { | ||
| enter_empty { | ||
| let scenario = BenchBuilder::<T>::new() | ||
| .build(); | ||
|
|
||
| let mut benchmark = scenario.data.clone(); | ||
|
|
||
| benchmark.bitfields.clear(); | ||
| benchmark.backed_candidates.clear(); | ||
| benchmark.disputes.clear(); | ||
|
Comment on lines
+35
to
+37
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are these really needed if we just called |
||
| }: enter(RawOrigin::None, benchmark) | ||
| verify { | ||
| // Assert that the block was not discarded | ||
| assert!(Included::<T>::get().is_some()); | ||
| } | ||
| // Variant over `v`, the number of dispute statements in a dispute statement set. This gives the | ||
| // weight of a single dispute statement set. | ||
| enter_variable_disputes { | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.