This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
update weights #5097
Merged
Merged
update weights #5097
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
806d994
westend: update weights
coderobe bfeb11c
kusama: update weights
coderobe 214d3a3
polkadot: update weights
coderobe a2a224b
westend: update weights (production profile)
coderobe 61848f5
kusama: update weights (production profile)
coderobe 055069f
polkadot: update weights (production profile)
coderobe caa8c91
kusama: update weights (production profile pt 2)
coderobe ec78318
westend: update weights (production profile pt 2)
coderobe fe0683c
fixup
coderobe ebaaaae
fixup
coderobe cf34968
Merge branch 'master' of https://github.com/paritytech/polkadot into …
ca4fbf5
cargo run --quiet --profile=production --features=runtime-benchmarks…
bd73562
cargo run --quiet --profile=production --features=runtime-benchmarks…
edd94fc
Merge branch 'master' of https://github.com/paritytech/polkadot into …
08a3a43
cargo run --quiet --profile=production --features=runtime-benchmarks…
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 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 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 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Copyright 2017-2020 Parity Technologies (UK) Ltd. | ||
// Copyright 2017-2022 Parity Technologies (UK) Ltd. | ||
// This file is part of Polkadot. | ||
|
||
// Polkadot is free software: you can redistribute it and/or modify | ||
|
@@ -15,12 +15,12 @@ | |
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>. | ||
//! Autogenerated weights for `runtime_common::paras_registrar` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 | ||
//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-03-14, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 1024 | ||
|
||
// Executed Command: | ||
// target/release/polkadot | ||
// target/production/polkadot | ||
// benchmark | ||
// --chain=kusama-dev | ||
// --steps=50 | ||
|
@@ -31,8 +31,9 @@ | |
// --wasm-execution=compiled | ||
// --heap-pages=4096 | ||
// --header=./file_header.txt | ||
// --output=./runtime/kusama/src/weights/ | ||
// --output=./runtime/kusama/src/weights/runtime_common_paras_registrar.rs | ||
|
||
#![cfg_attr(rustfmt, rustfmt_skip)] | ||
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
|
@@ -42,28 +43,64 @@ use sp_std::marker::PhantomData; | |
/// Weight functions for `runtime_common::paras_registrar`. | ||
pub struct WeightInfo<T>(PhantomData<T>); | ||
impl<T: frame_system::Config> runtime_common::paras_registrar::WeightInfo for WeightInfo<T> { | ||
// Storage: Registrar NextFreeParaId (r:1 w:1) | ||
// Storage: Registrar Paras (r:1 w:1) | ||
// Storage: Paras ParaLifecycles (r:1 w:0) | ||
fn reserve() -> Weight { | ||
(48_931_000 as Weight) | ||
(23_240_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(3 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(2 as Weight)) | ||
} | ||
// Storage: Registrar Paras (r:1 w:1) | ||
// Storage: Paras ParaLifecycles (r:1 w:1) | ||
// Storage: Configuration ActiveConfig (r:1 w:0) | ||
// Storage: Paras PvfActiveVoteMap (r:1 w:0) | ||
// Storage: Paras CodeByHash (r:1 w:1) | ||
// Storage: ParasShared CurrentSessionIndex (r:1 w:0) | ||
// Storage: Paras ActionsQueue (r:1 w:1) | ||
// Storage: Paras CodeByHashRefs (r:1 w:1) | ||
// Storage: Paras CurrentCodeHash (r:0 w:1) | ||
// Storage: Paras UpcomingParasGenesis (r:0 w:1) | ||
fn register() -> Weight { | ||
(4_193_117_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
(8_646_169_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(8 as Weight)) | ||
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. The number of Read/Writes should only change when there was a logic change that did not update the weights. |
||
.saturating_add(T::DbWeight::get().writes(7 as Weight)) | ||
} | ||
// Storage: Registrar Paras (r:1 w:1) | ||
// Storage: Paras ParaLifecycles (r:1 w:1) | ||
// Storage: Configuration ActiveConfig (r:1 w:0) | ||
// Storage: Paras PvfActiveVoteMap (r:1 w:0) | ||
// Storage: Paras CodeByHash (r:1 w:1) | ||
// Storage: ParasShared CurrentSessionIndex (r:1 w:0) | ||
// Storage: Paras ActionsQueue (r:1 w:1) | ||
// Storage: Paras CodeByHashRefs (r:1 w:1) | ||
// Storage: Paras CurrentCodeHash (r:0 w:1) | ||
// Storage: Paras UpcomingParasGenesis (r:0 w:1) | ||
fn force_register() -> Weight { | ||
(4_174_902_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
(8_516_357_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(8 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(7 as Weight)) | ||
} | ||
// Storage: Registrar Paras (r:1 w:1) | ||
// Storage: Paras ParaLifecycles (r:1 w:1) | ||
// Storage: Paras FutureCodeHash (r:1 w:0) | ||
// Storage: ParasShared CurrentSessionIndex (r:1 w:0) | ||
// Storage: Paras ActionsQueue (r:1 w:1) | ||
// Storage: Registrar PendingSwap (r:0 w:1) | ||
fn deregister() -> Weight { | ||
(81_324_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(4 as Weight)) | ||
(45_338_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(5 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(4 as Weight)) | ||
} | ||
// Storage: Registrar Paras (r:1 w:0) | ||
// Storage: Paras ParaLifecycles (r:2 w:2) | ||
// Storage: Registrar PendingSwap (r:1 w:1) | ||
// Storage: ParasShared CurrentSessionIndex (r:1 w:0) | ||
// Storage: Paras ActionsQueue (r:1 w:1) | ||
// Storage: Crowdloan Funds (r:2 w:2) | ||
// Storage: Slots Leases (r:2 w:2) | ||
fn swap() -> Weight { | ||
(69_717_000 as Weight) | ||
(38_695_000 as Weight) | ||
.saturating_add(T::DbWeight::get().reads(10 as Weight)) | ||
.saturating_add(T::DbWeight::get().writes(8 as Weight)) | ||
} | ||
|
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As explanation here and in other places: paritytech/substrate#10692 should have reduced all weights across all runtimes.
Substrate weights were updated in that MR but Polkadot et.al. not.