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 (0.9.31) #6173
Closed
Closed
update weights (0.9.31) #6173
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
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
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 |
---|---|---|
|
@@ -16,8 +16,8 @@ | |
//! Autogenerated weights for `frame_election_provider_support` | ||
//! | ||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev | ||
//! DATE: 2022-09-08, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! HOSTNAME: `bm4`, CPU: `Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz` | ||
//! DATE: 2022-10-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` | ||
//! HOSTNAME: `bm6`, 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: | ||
|
@@ -38,7 +38,7 @@ | |
#![allow(unused_parens)] | ||
#![allow(unused_imports)] | ||
|
||
use frame_support::{traits::Get, weights::{Weight}}; | ||
use frame_support::{traits::Get, weights::Weight}; | ||
use sp_std::marker::PhantomData; | ||
|
||
/// Weight functions for `frame_election_provider_support`. | ||
|
@@ -48,20 +48,20 @@ impl<T: frame_system::Config> frame_election_provider_support::WeightInfo for We | |
/// The range of component `t` is `[500, 1000]`. | ||
/// The range of component `d` is `[5, 16]`. | ||
fn phragmen(v: u32, _t: u32, d: u32, ) -> Weight { | ||
Weight::from_ref_time(0 as u64) | ||
// Standard Error: 56_000 | ||
.saturating_add(Weight::from_ref_time(13_944_000 as u64).saturating_mul(v as u64)) | ||
// Standard Error: 4_876_000 | ||
.saturating_add(Weight::from_ref_time(2_223_649_000 as u64).saturating_mul(d as u64)) | ||
Weight::from_ref_time(5_472_372_000 as u64) | ||
// Standard Error: 138_792 | ||
.saturating_add(Weight::from_ref_time(5_519_912 as u64).saturating_mul(v as u64)) | ||
// Standard Error: 14_189_642 | ||
.saturating_add(Weight::from_ref_time(1_536_370_329 as u64).saturating_mul(d as u64)) | ||
} | ||
/// The range of component `v` is `[1000, 2000]`. | ||
/// The range of component `t` is `[500, 1000]`. | ||
/// The range of component `d` is `[5, 16]`. | ||
fn phragmms(v: u32, _t: u32, d: u32, ) -> Weight { | ||
Weight::from_ref_time(0 as u64) | ||
// Standard Error: 79_000 | ||
.saturating_add(Weight::from_ref_time(14_480_000 as u64).saturating_mul(v as u64)) | ||
// Standard Error: 6_844_000 | ||
.saturating_add(Weight::from_ref_time(2_525_332_000 as u64).saturating_mul(d as u64)) | ||
Weight::from_ref_time(4_270_710_000 as u64) | ||
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. same here from 0 -> 4_270_710_000 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. Even the worst case improvement is 31.8% here, so it is better now.
|
||
// Standard Error: 142_893 | ||
.saturating_add(Weight::from_ref_time(5_413_968 as u64).saturating_mul(v as u64)) | ||
// Standard Error: 14_608_951 | ||
.saturating_add(Weight::from_ref_time(1_734_116_291 as u64).saturating_mul(d as u64)) | ||
} | ||
} |
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.
big jump from 0 -> 5_472_372_000