Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e38ef2a
Avoid redundant clone.
Mar 20, 2023
8648cba
Proper bounds for backing.
Mar 20, 2023
eb594c1
More correct weights for backed candidates.
Mar 21, 2023
3f39b7b
Fixes.
Mar 22, 2023
2794ab4
Fix weights.
Mar 22, 2023
2d435d1
Merge branch 'master' into rk-fix-weights-backed-candidates
Mar 22, 2023
e732089
Add comment.
Mar 22, 2023
2364970
Fix compliation for rococo.
Mar 22, 2023
f270379
Remove effectively unused max_validators_per_core.
Mar 22, 2023
44b7162
Fix benchmark.
Mar 23, 2023
2d829af
Disabling check that makes allocator run oom.
Mar 24, 2023
62c8c4c
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Mar 27, 2023
e7b88d3
".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parach…
Mar 27, 2023
ffbc666
Adjust config to benchmark values.
Mar 28, 2023
0b596bb
Fix benchmarks.
Mar 29, 2023
1013c59
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Mar 30, 2023
dfc5aab
".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_para…
Mar 30, 2023
12281de
".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parac…
Mar 30, 2023
62d68f7
Use lower upper bounds for parameters.
Apr 25, 2023
d7deaff
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Apr 25, 2023
2904086
".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parac…
Apr 25, 2023
2f83b14
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Apr 25, 2023
042a989
".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parach…
Apr 25, 2023
3662bc9
Even lower upper bound to hopefully get a sane base case.
Apr 26, 2023
7a9706f
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Apr 26, 2023
e05089d
".git/.scripts/commands/bench/bench.sh" runtime westend runtime_parac…
Apr 26, 2023
c5d2d62
".git/.scripts/commands/bench/bench.sh" runtime kusama runtime_parach…
Apr 27, 2023
220a7e2
Merge branch 'master' of https://github.com/paritytech/polkadot into …
Apr 27, 2023
0373d7d
".git/.scripts/commands/bench/bench.sh" runtime polkadot runtime_para…
Apr 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
156 changes: 51 additions & 105 deletions runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,37 @@

// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.

//! Autogenerated weights for `runtime_parachains::paras_inherent`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-03-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-04-27, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `bm5`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! HOSTNAME: `bm3`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024

// Executed Command:
// ./target/production/polkadot
// target/production/polkadot
// benchmark
// pallet
// --chain=kusama-dev
// --steps=50
// --repeat=20
// --pallet=runtime_parachains::paras_inherent
// --extrinsic=*
// --execution=wasm
// --wasm-execution=compiled
// --heap-pages=4096
// --json-file=/var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/.git/.artifacts/bench.json
// --pallet=runtime_parachains::paras_inherent
// --chain=kusama-dev
// --header=./file_header.txt
// --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs
// --output=./runtime/kusama/src/weights/

#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `runtime_parachains::paras_inherent`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand Down Expand Up @@ -83,6 +86,8 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: ParaInclusion PendingAvailabilityCommitments (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DeliveryFeeFactor (r:1 w:1)
/// Proof Skipped: Dmp DeliveryFeeFactor (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpChannelDigests (r:1 w:1)
/// Proof Skipped: Hrmp HrmpChannelDigests (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras FutureCodeUpgrades (r:1 w:0)
Expand Down Expand Up @@ -110,15 +115,15 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// The range of component `v` is `[10, 200]`.
fn enter_variable_disputes(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `50748`
// Estimated: `1483464 + v * (23 ±0)`
// Minimum execution time: 769_729_000 picoseconds.
Weight::from_parts(297_815_591, 0)
.saturating_add(Weight::from_parts(0, 1483464))
// Standard Error: 29_486
.saturating_add(Weight::from_parts(48_796_195, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(28))
.saturating_add(T::DbWeight::get().writes(16))
// Measured: `50714`
// Estimated: `56654 + v * (23 ±0)`
// Minimum execution time: 807_787_000 picoseconds.
Weight::from_parts(337_998_397, 0)
.saturating_add(Weight::from_parts(0, 56654))
// Standard Error: 26_069
.saturating_add(Weight::from_parts(48_452_644, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(29))
.saturating_add(T::DbWeight::get().writes(17))
.saturating_add(Weight::from_parts(0, 23).saturating_mul(v.into()))
}
/// Storage: ParaInherent Included (r:1 w:1)
Expand Down Expand Up @@ -151,6 +156,8 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DeliveryFeeFactor (r:1 w:1)
/// Proof Skipped: Dmp DeliveryFeeFactor (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpChannelDigests (r:1 w:1)
/// Proof Skipped: Hrmp HrmpChannelDigests (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras FutureCodeUpgrades (r:1 w:0)
Expand Down Expand Up @@ -183,88 +190,13 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: Paras UpgradeGoAheadSignal (max_values: None, max_size: None, mode: Measured)
fn enter_bitfields() -> Weight {
// Proof Size summary in bytes:
// Measured: `42582`
// Estimated: `1205232`
// Minimum execution time: 328_321_000 picoseconds.
Weight::from_parts(342_358_000, 0)
.saturating_add(Weight::from_parts(0, 1205232))
.saturating_add(T::DbWeight::get().reads(26))
.saturating_add(T::DbWeight::get().writes(17))
}
/// Storage: ParaInherent Included (r:1 w:1)
/// Proof Skipped: ParaInherent Included (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: System ParentHash (r:1 w:0)
/// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen)
/// Storage: ParasShared CurrentSessionIndex (r:1 w:0)
/// Proof Skipped: ParasShared CurrentSessionIndex (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Babe AuthorVrfRandomness (r:1 w:0)
/// Proof: Babe AuthorVrfRandomness (max_values: Some(1), max_size: Some(33), added: 528, mode: MaxEncodedLen)
/// Storage: ParaScheduler AvailabilityCores (r:1 w:1)
/// Proof Skipped: ParaScheduler AvailabilityCores (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParasDisputes Frozen (r:1 w:0)
/// Proof Skipped: ParasDisputes Frozen (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParasShared ActiveValidatorKeys (r:1 w:0)
/// Proof Skipped: ParasShared ActiveValidatorKeys (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Paras Parachains (r:1 w:0)
/// Proof Skipped: Paras Parachains (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParaInclusion PendingAvailability (r:2 w:1)
/// Proof Skipped: ParaInclusion PendingAvailability (max_values: None, max_size: None, mode: Measured)
/// Storage: ParaInclusion PendingAvailabilityCommitments (r:1 w:1)
/// Proof Skipped: ParaInclusion PendingAvailabilityCommitments (max_values: None, max_size: None, mode: Measured)
/// Storage: ParaSessionInfo AccountKeys (r:1 w:0)
/// Proof Skipped: ParaSessionInfo AccountKeys (max_values: None, max_size: None, mode: Measured)
/// Storage: Session Validators (r:1 w:0)
/// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Staking ActiveEra (r:1 w:0)
/// Proof: Staking ActiveEra (max_values: Some(1), max_size: Some(13), added: 508, mode: MaxEncodedLen)
/// Storage: Staking ErasRewardPoints (r:1 w:1)
/// Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpChannelDigests (r:1 w:1)
/// Proof Skipped: Hrmp HrmpChannelDigests (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras FutureCodeUpgrades (r:1 w:0)
/// Proof Skipped: Paras FutureCodeUpgrades (max_values: None, max_size: None, mode: Measured)
/// Storage: ParaInherent OnChainVotes (r:1 w:1)
/// Proof Skipped: ParaInherent OnChainVotes (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParasDisputes Disputes (r:2 w:0)
/// Proof Skipped: ParasDisputes Disputes (max_values: None, max_size: None, mode: Measured)
/// Storage: ParaScheduler SessionStartBlock (r:1 w:0)
/// Proof Skipped: ParaScheduler SessionStartBlock (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParaScheduler ParathreadQueue (r:1 w:1)
/// Proof Skipped: ParaScheduler ParathreadQueue (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParaScheduler Scheduled (r:1 w:1)
/// Proof Skipped: ParaScheduler Scheduled (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParaScheduler ValidatorGroups (r:1 w:0)
/// Proof Skipped: ParaScheduler ValidatorGroups (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Paras CurrentCodeHash (r:1 w:0)
/// Proof Skipped: Paras CurrentCodeHash (max_values: None, max_size: None, mode: Measured)
/// Storage: Ump RelayDispatchQueueSize (r:1 w:0)
/// Proof Skipped: Ump RelayDispatchQueueSize (max_values: None, max_size: None, mode: Measured)
/// Storage: Ump NeedsDispatch (r:1 w:1)
/// Proof Skipped: Ump NeedsDispatch (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Ump NextDispatchRoundStartWith (r:1 w:1)
/// Proof Skipped: Ump NextDispatchRoundStartWith (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: ParasDisputes Included (r:0 w:1)
/// Proof Skipped: ParasDisputes Included (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpWatermarks (r:0 w:1)
/// Proof Skipped: Hrmp HrmpWatermarks (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras Heads (r:0 w:1)
/// Proof Skipped: Paras Heads (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
/// Proof Skipped: Paras UpgradeGoAheadSignal (max_values: None, max_size: None, mode: Measured)
/// The range of component `v` is `[101, 200]`.
fn enter_backed_candidates_variable(v: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `42613`
// Estimated: `1258087`
// Minimum execution time: 5_578_743_000 picoseconds.
Weight::from_parts(810_980_132, 0)
.saturating_add(Weight::from_parts(0, 1258087))
// Standard Error: 53_608
.saturating_add(Weight::from_parts(48_048_855, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(29))
.saturating_add(T::DbWeight::get().writes(16))
// Measured: `42548`
// Estimated: `48488`
// Minimum execution time: 356_755_000 picoseconds.
Weight::from_parts(364_728_000, 0)
.saturating_add(Weight::from_parts(0, 48488))
.saturating_add(T::DbWeight::get().reads(27))
.saturating_add(T::DbWeight::get().writes(18))
}
/// Storage: ParaInherent Included (r:1 w:1)
/// Proof Skipped: ParaInherent Included (max_values: Some(1), max_size: None, mode: Measured)
Expand Down Expand Up @@ -296,6 +228,8 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: Staking ErasRewardPoints (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DownwardMessageQueues (r:1 w:1)
/// Proof Skipped: Dmp DownwardMessageQueues (max_values: None, max_size: None, mode: Measured)
/// Storage: Dmp DeliveryFeeFactor (r:1 w:1)
/// Proof Skipped: Dmp DeliveryFeeFactor (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpChannelDigests (r:1 w:1)
/// Proof Skipped: Hrmp HrmpChannelDigests (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras FutureCodeUpgrades (r:1 w:0)
Expand All @@ -320,6 +254,8 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: Paras UpgradeRestrictionSignal (max_values: None, max_size: None, mode: Measured)
/// Storage: Ump RelayDispatchQueueSize (r:1 w:0)
/// Proof Skipped: Ump RelayDispatchQueueSize (max_values: None, max_size: None, mode: Measured)
/// Storage: Hrmp HrmpChannels (r:1 w:0)
/// Proof Skipped: Hrmp HrmpChannels (max_values: None, max_size: None, mode: Measured)
/// Storage: Ump NeedsDispatch (r:1 w:1)
/// Proof Skipped: Ump NeedsDispatch (max_values: Some(1), max_size: None, mode: Measured)
/// Storage: Ump NextDispatchRoundStartWith (r:1 w:1)
Expand All @@ -332,14 +268,24 @@ impl<T: frame_system::Config> runtime_parachains::paras_inherent::WeightInfo for
/// Proof Skipped: Paras Heads (max_values: None, max_size: None, mode: Measured)
/// Storage: Paras UpgradeGoAheadSignal (r:0 w:1)
/// Proof Skipped: Paras UpgradeGoAheadSignal (max_values: None, max_size: None, mode: Measured)
fn enter_backed_candidate_code_upgrade() -> Weight {
/// The range of component `v` is `[2, 5]`.
/// The range of component `u` is `[0, 10]`.
/// The range of component `h` is `[0, 10]`.
/// The range of component `c` is `[0, 10]`.
fn enter_backed_candidate(v: u32, u: u32, h: u32, c: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `42640`
// Estimated: `1351053`
// Minimum execution time: 32_728_672_000 picoseconds.
Weight::from_parts(32_934_819_000, 0)
.saturating_add(Weight::from_parts(0, 1351053))
// Measured: `42671`
// Estimated: `48561 + c * (1 ±0) + h * (3 ±0) + u * (1 ±0) + v * (2 ±0)`
// Minimum execution time: 877_200_000 picoseconds.
Weight::from_parts(792_124_769, 0)
.saturating_add(Weight::from_parts(0, 48561))
// Standard Error: 510_045
.saturating_add(Weight::from_parts(58_442_198, 0).saturating_mul(v.into()))
.saturating_add(T::DbWeight::get().reads(31))
.saturating_add(T::DbWeight::get().writes(16))
.saturating_add(T::DbWeight::get().writes(17))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(c.into()))
.saturating_add(Weight::from_parts(0, 3).saturating_mul(h.into()))
.saturating_add(Weight::from_parts(0, 1).saturating_mul(u.into()))
.saturating_add(Weight::from_parts(0, 2).saturating_mul(v.into()))
}
}
Loading