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

update weights #6087

Closed
wants to merge 4 commits into from
Closed

update weights #6087

wants to merge 4 commits into from

Conversation

coderobe
Copy link
Contributor

🏋️‍♀️ related #6025

@coderobe coderobe added A0-please_review Pull request needs code review. B1-releasenotes 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 Sep 30, 2022
@coderobe coderobe mentioned this pull request Sep 30, 2022
14 tasks
Comment on lines +51 to +53
Weight::from_ref_time(5_488_493_000 as u64)
// Standard Error: 136_134
.saturating_add(Weight::from_ref_time(5_576_665 as u64).saturating_mul(v as u64))
Copy link
Contributor

@chevdor chevdor Sep 30, 2022

Choose a reason for hiding this comment

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

0 -> 5b

Copy link
Contributor

@chevdor chevdor left a comment

Choose a reason for hiding this comment

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

Reviewing the values, this run seems rather odd compared to the several previous releases we had.

The weights in some pallets look great (= very steady as we are used to). For others however, we can see huge bumps and quite some from 0 to several billions.

@coderobe we should start a new benchmark run. We can decide later to use the results or not.

I also would like to gather @kianenigma & @ggwpez's opinions on the big changes I spotted. There are more bing changes than whan I reported.

Comment on lines +61 to +63
Weight::from_ref_time(4_332_183_000 as u64)
// Standard Error: 146_563
.saturating_add(Weight::from_ref_time(5_508_430 as u64).saturating_mul(v as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 -> 4b

Comment on lines +49 to +51
Weight::from_ref_time(3_031_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(1_000 as u64).saturating_mul(b as u64))
.saturating_add(Weight::from_ref_time(512 as u64).saturating_mul(b as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

800k -> 3m

Comment on lines 54 to +57
fn remark_with_event(b: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
Weight::from_ref_time(11_653_000 as u64)
// Standard Error: 0
.saturating_add(Weight::from_ref_time(2_000 as u64).saturating_mul(b as u64))
.saturating_add(Weight::from_ref_time(1_829 as u64).saturating_mul(b as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 -> 11m

Comment on lines 68 to +71
fn set_storage(i: u32, ) -> Weight {
Weight::from_ref_time(0 as u64)
// Standard Error: 2_000
.saturating_add(Weight::from_ref_time(610_000 as u64).saturating_mul(i as u64))
Weight::from_ref_time(3_843_000 as u64)
// Standard Error: 1_590
.saturating_add(Weight::from_ref_time(578_944 as u64).saturating_mul(i as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 -> 3.8m

Comment on lines +78 to +81
Weight::from_ref_time(3_896_000 as u64)
// Standard Error: 955
.saturating_add(Weight::from_ref_time(434_545 as u64).saturating_mul(i as u64))
.saturating_add(T::DbWeight::get().writes(1 as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 -> 3.8m

Comment on lines +152 to +159
fn clean_defunct_voters(v: u32, _d: u32, ) -> Weight {
Weight::from_ref_time(282_352_767_000 as u64)
// Standard Error: 243_946
.saturating_add(Weight::from_ref_time(35_271_908 as u64).saturating_mul(v as u64))
.saturating_add(T::DbWeight::get().reads(15004 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().writes(15000 as u64))
.saturating_add(T::DbWeight::get().writes((2 as u64).saturating_mul(v as u64)))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 > 280b

Comment on lines +174 to +179
Weight::from_ref_time(29_157_699_000 as u64)
// Standard Error: 525_734
.saturating_add(Weight::from_ref_time(43_642_232 as u64).saturating_mul(v as u64))
// Standard Error: 33_738
.saturating_add(Weight::from_ref_time(2_196_265 as u64).saturating_mul(e as u64))
.saturating_add(T::DbWeight::get().reads(1968 as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 > 29b

Comment on lines +51 to +53
Weight::from_ref_time(30_131_000 as u64)
// Standard Error: 1
.saturating_add(Weight::from_ref_time(2_441 as u64).saturating_mul(s as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 > 30m

Comment on lines +366 to +374
fn get_npos_voters(v: u32, n: u32, _s: u32, ) -> Weight {
Weight::from_ref_time(25_645_050_000 as u64)
// Standard Error: 467_573
.saturating_add(Weight::from_ref_time(10_912_850 as u64).saturating_mul(v as u64))
// Standard Error: 467_573
.saturating_add(Weight::from_ref_time(10_774_564 as u64).saturating_mul(n as u64))
.saturating_add(T::DbWeight::get().reads(6706 as u64))
.saturating_add(T::DbWeight::get().reads((2 as u64).saturating_mul(v as u64)))
.saturating_add(T::DbWeight::get().reads((1 as u64).saturating_mul(n as u64)))
Copy link
Contributor

Choose a reason for hiding this comment

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

0 > 25b

Comment on lines +154 to +157
Weight::from_ref_time(5_768_526_000 as u64)
// Standard Error: 268_593
.saturating_add(Weight::from_ref_time(17_016_045 as u64).saturating_mul(v as u64))
.saturating_add(T::DbWeight::get().reads(29 as u64))
Copy link
Contributor

Choose a reason for hiding this comment

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

900m > 5b

@ggwpez
Copy link
Member

ggwpez commented Sep 30, 2022

A lot of the changes are probably due to paritytech/substrate#11806
I still wonder why for example the components here are now unused:
image

cc @koute @shawntabrizi

@coderobe
Copy link
Contributor Author

not merging this round

@coderobe coderobe closed this Oct 10, 2022
@coderobe coderobe deleted the coderobe/weights-30 branch January 16, 2023 14:41
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. 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