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

update weights #5704

Merged
merged 4 commits into from
Jun 21, 2022
Merged

update weights #5704

merged 4 commits into from
Jun 21, 2022

Conversation

coderobe
Copy link
Contributor

No description provided.

@coderobe coderobe added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit. labels Jun 21, 2022
This was referenced Jun 21, 2022
Comment on lines 61 to 64
fn set_heap_pages() -> Weight {
(2_347_000 as Weight)
(5_134_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
Copy link
Contributor

Choose a reason for hiding this comment

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

x2

Comment on lines 119 to 131
fn external_propose_majority() -> Weight {
(1_250_000 as Weight)
(4_161_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Democracy NextExternal (r:0 w:1)
fn external_propose_default() -> Weight {
(1_254_000 as Weight)
(3_982_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: Democracy NextExternal (r:1 w:1)
// Storage: Democracy ReferendumCount (r:1 w:1)
// Storage: Democracy ReferendumInfoOf (r:0 w:1)
fn fast_track() -> Weight {
Copy link
Contributor

Choose a reason for hiding this comment

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

noticeable

Comment on lines 52 to 58
fn on_initialize_periodic_named_resolved(s: u32, ) -> Weight {
(675_000 as Weight)
// Standard Error: 31_000
.saturating_add((24_318_000 as Weight).saturating_mul(s as Weight))
(2_739_000 as Weight)
// Standard Error: 32_000
.saturating_add((26_230_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
Copy link
Contributor

Choose a reason for hiding this comment

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

noticeable

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this base weight is insignificant

Comment on lines 79 to 85
fn on_initialize_periodic_resolved(s: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 30_000
.saturating_add((22_043_000 as Weight).saturating_mul(s as Weight))
(1_851_000 as Weight)
// Standard Error: 29_000
.saturating_add((23_826_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().reads((3 as Weight).saturating_mul(s as Weight)))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 to 1.8m

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this base weight is insignificant

Comment on lines +91 to 97
/// The range of component `s` is `[1, 50]`.
fn on_initialize_resolved(s: u32, ) -> Weight {
(248_000 as Weight)
// Standard Error: 28_000
.saturating_add((18_646_000 as Weight).saturating_mul(s as Weight))
(4_340_000 as Weight)
// Standard Error: 33_000
.saturating_add((20_124_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
Copy link
Contributor

Choose a reason for hiding this comment

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

noticeable

Comment on lines 46 to 52
impl<T: frame_system::Config> runtime_parachains::disputes::WeightInfo for WeightInfo<T> {
// Storage: ParasDisputes Frozen (r:0 w:1)
fn force_unfreeze() -> Weight {
(659_000 as Weight)
(3_428_000 as Weight)
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

noticeable

Comment on lines 63 to 67
fn force_set_current_head(s: u32, ) -> Weight {
(9_108_000 as Weight)
(0 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
Copy link
Contributor

Choose a reason for hiding this comment

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

9m -> 0

Comment on lines 92 to 96
fn force_note_new_head(s: u32, ) -> Weight {
(12_655_000 as Weight)
(0 as Weight)
// Standard Error: 0
.saturating_add((1_000 as Weight).saturating_mul(s as Weight))
.saturating_add(T::DbWeight::get().reads(1 as Weight))
Copy link
Contributor

Choose a reason for hiding this comment

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

12m -> 0

@chevdor chevdor merged commit 5da1ee9 into master Jun 21, 2022
@chevdor chevdor deleted the coderobe/weights-25-m branch June 21, 2022 10:58
ordian added a commit that referenced this pull request Jun 21, 2022
* master:
  Zombienet re-enable upgrade test (#5691)
  bump versions to 0.9.25 (#5684)
  update weights (#5704)
  Let PR titles spread accross multiple lines in the release notes (#5521)
  Companion: Bump syn (#5701)
al3mart pushed a commit that referenced this pull request Jul 14, 2022
* westend: update weights

* kusama: update weights

* polkadot: update weights

* rococo: update weights
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants