Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
9592b55f
Commit
9592b55f
authored
2 years ago
by
Svyatoslav Nikolsky
Committed by
Bastian Köcher
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix parameter to match used value GRANDPA benchmarks (#1616)
parent
4f796ce8
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bridges/bin/millau/runtime/src/lib.rs
+8
-2
8 additions, 2 deletions
bridges/bin/millau/runtime/src/lib.rs
bridges/modules/grandpa/src/benchmarking.rs
+1
-1
1 addition, 1 deletion
bridges/modules/grandpa/src/benchmarking.rs
with
9 additions
and
3 deletions
bridges/bin/millau/runtime/src/lib.rs
+
8
−
2
View file @
9592b55f
...
@@ -417,6 +417,12 @@ parameter_types! {
...
@@ -417,6 +417,12 @@ parameter_types! {
///
///
/// Note: This is lower than regular value, to speed up benchmarking setup.
/// Note: This is lower than regular value, to speed up benchmarking setup.
pub
const
HeadersToKeep
:
u32
=
1024
;
pub
const
HeadersToKeep
:
u32
=
1024
;
/// Maximal number of authorities at Rialto.
///
/// In benchmarks we're using sets of up to `1024` authorities to prepare for possible
/// upgrades in the future and see if performance degrades when number of authorities
/// grow.
pub
const
MaxAuthoritiesAtRialto
:
u32
=
pallet_bridge_grandpa
::
benchmarking
::
MAX_VALIDATOR_SET_SIZE
;
}
}
#[cfg(not(feature
=
"runtime-benchmarks"
))]
#[cfg(not(feature
=
"runtime-benchmarks"
))]
...
@@ -426,11 +432,11 @@ parameter_types! {
...
@@ -426,11 +432,11 @@ parameter_types! {
/// Assuming the worst case of every header being finalized, we will keep headers at least for a
/// Assuming the worst case of every header being finalized, we will keep headers at least for a
/// week.
/// week.
pub
const
HeadersToKeep
:
u32
=
7
*
bp_rialto
::
DAYS
;
pub
const
HeadersToKeep
:
u32
=
7
*
bp_rialto
::
DAYS
;
/// Maximal number of authorities at Rialto.
pub
const
MaxAuthoritiesAtRialto
:
u32
=
bp_rialto
::
MAX_AUTHORITIES_COUNT
;
}
}
parameter_types!
{
parameter_types!
{
/// Maximal number of authorities at Rialto.
pub
const
MaxAuthoritiesAtRialto
:
u32
=
bp_rialto
::
MAX_AUTHORITIES_COUNT
;
/// Maximal size of SCALE-encoded Rialto header.
/// Maximal size of SCALE-encoded Rialto header.
pub
const
MaxRialtoHeaderSize
:
u32
=
bp_rialto
::
MAX_HEADER_SIZE
;
pub
const
MaxRialtoHeaderSize
:
u32
=
bp_rialto
::
MAX_HEADER_SIZE
;
...
...
This diff is collapsed.
Click to expand it.
bridges/modules/grandpa/src/benchmarking.rs
+
1
−
1
View file @
9592b55f
...
@@ -61,7 +61,7 @@ const MAX_VOTE_ANCESTRIES: u32 = 1000;
...
@@ -61,7 +61,7 @@ const MAX_VOTE_ANCESTRIES: u32 = 1000;
// The maximum number of pre-commits to include in a justification. In practice this scales with the
// The maximum number of pre-commits to include in a justification. In practice this scales with the
// number of validators.
// number of validators.
const
MAX_VALIDATOR_SET_SIZE
:
u32
=
1024
;
pub
const
MAX_VALIDATOR_SET_SIZE
:
u32
=
1024
;
// `1..MAX_VALIDATOR_SET_SIZE` and `1..MAX_VOTE_ANCESTRIES` are too large && benchmarks are
// `1..MAX_VALIDATOR_SET_SIZE` and `1..MAX_VOTE_ANCESTRIES` are too large && benchmarks are
// running for almost 40m (steps=50, repeat=20) on a decent laptop, which is too much. Since
// running for almost 40m (steps=50, repeat=20) on a decent laptop, which is too much. Since
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment