Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 5 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e91b5df
Use the automated call decode weight for benchmark
kianenigma Sep 13, 2021
d9ffcd5
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 13, 2021
d041fe8
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 13, 2021
d32a30a
Master.into()
kianenigma Sep 16, 2021
2ac99ba
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 16, 2021
d555b46
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 17, 2021
0aaf4bb
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 17, 2021
e7507ce
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 20, 2021
8b44cb3
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 20, 2021
af312e4
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
0acb048
reduce the boundaries
kianenigma Sep 21, 2021
bce1de6
Fix
kianenigma Sep 21, 2021
cf3edf7
Fox
kianenigma Sep 21, 2021
df9f0ea
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
bd1011f
reduce the numbers even less
kianenigma Sep 21, 2021
19dd065
Merged
kianenigma Sep 21, 2021
62af610
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 21, 2021
0e444a5
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
602d8b8
Fix a few things
kianenigma Sep 21, 2021
836fe89
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 21, 2021
fd63969
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 21, 2021
d9b8e23
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 21, 2021
8d8f6c3
Merge branch 'master' of https://github.com/paritytech/substrate into…
Sep 22, 2021
33a94d7
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
Sep 22, 2021
407cbc1
update comment
kianenigma Sep 22, 2021
be355e3
Merge branch 'kiz-fix-decode-weight-election' of github.com:paritytec…
kianenigma Sep 22, 2021
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
114 changes: 57 additions & 57 deletions frame/election-provider-multi-phase/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Autogenerated weights for pallet_election_provider_multi_phase
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2021-09-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-09-22, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 128

// Executed Command:
Expand Down Expand Up @@ -69,45 +69,45 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: Staking ForceEra (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
fn on_initialize_nothing() -> Weight {
(22_696_000 as Weight)
(22_784_000 as Weight)
.saturating_add(T::DbWeight::get().reads(8 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn on_initialize_open_signed() -> Weight {
(30_317_000 as Weight)
(32_763_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn on_initialize_open_unsigned() -> Weight {
(30_661_000 as Weight)
(29_117_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
fn finalize_signed_phase_accept_solution() -> Weight {
(48_439_000 as Weight)
(48_996_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: System Account (r:1 w:1)
fn finalize_signed_phase_reject_solution() -> Weight {
(32_072_000 as Weight)
(32_508_000 as Weight)
.saturating_add(T::DbWeight::get().reads(1 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
(89_239_000 as Weight)
(96_001_000 as Weight)
// Standard Error: 1_000
.saturating_add((320_000 as Weight).saturating_mul(v as Weight))
.saturating_add((307_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 2_000
.saturating_add((129_000 as Weight).saturating_mul(t as Weight))
.saturating_add((133_000 as Weight).saturating_mul(t as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -120,11 +120,11 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn elect_queued(a: u32, d: u32, ) -> Weight {
(156_010_000 as Weight)
(100_505_000 as Weight)
// Standard Error: 6_000
.saturating_add((1_579_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 9_000
.saturating_add((299_000 as Weight).saturating_mul(d as Weight))
.saturating_add((1_665_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 10_000
.saturating_add((443_000 as Weight).saturating_mul(d as Weight))
.saturating_add(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().writes(8 as Weight))
}
Expand All @@ -135,9 +135,9 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
fn submit(c: u32, ) -> Weight {
(73_498_000 as Weight)
// Standard Error: 73_000
.saturating_add((222_000 as Weight).saturating_mul(c as Weight))
(74_088_000 as Weight)
// Standard Error: 59_000
.saturating_add((187_000 as Weight).saturating_mul(c as Weight))
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -151,13 +151,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 5_000
.saturating_add((2_028_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 11_000
.saturating_add((124_000 as Weight).saturating_mul(t as Weight))
.saturating_add((1_970_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 10_000
.saturating_add((173_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 18_000
.saturating_add((9_991_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 28_000
.saturating_add((2_365_000 as Weight).saturating_mul(d as Weight))
.saturating_add((9_783_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 27_000
.saturating_add((2_224_000 as Weight).saturating_mul(d as Weight))
.saturating_add(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
Expand All @@ -168,13 +168,13 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((1_935_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 6_000
.saturating_add((79_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 10_000
.saturating_add((7_904_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 16_000
.saturating_add((1_807_000 as Weight).saturating_mul(d as Weight))
.saturating_add((1_910_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 7_000
.saturating_add((111_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 13_000
.saturating_add((7_741_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 19_000
.saturating_add((1_844_000 as Weight).saturating_mul(d as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
}
}
Expand All @@ -190,45 +190,45 @@ impl WeightInfo for () {
// Storage: Staking ForceEra (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
fn on_initialize_nothing() -> Weight {
(22_696_000 as Weight)
(22_784_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(8 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn on_initialize_open_signed() -> Weight {
(30_317_000 as Weight)
(32_763_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn on_initialize_open_unsigned() -> Weight {
(30_661_000 as Weight)
(29_117_000 as Weight)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

seriously, this function is super trivial. I am not sure why it is changing by like 20%.

.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: System Account (r:1 w:1)
// Storage: ElectionProviderMultiPhase QueuedSolution (r:0 w:1)
fn finalize_signed_phase_accept_solution() -> Weight {
(48_439_000 as Weight)
(48_996_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(2 as Weight))
}
// Storage: System Account (r:1 w:1)
fn finalize_signed_phase_reject_solution() -> Weight {
(32_072_000 as Weight)
(32_508_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(1 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:0 w:1)
// Storage: ElectionProviderMultiPhase DesiredTargets (r:0 w:1)
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
(89_239_000 as Weight)
(96_001_000 as Weight)
// Standard Error: 1_000
.saturating_add((320_000 as Weight).saturating_mul(v as Weight))
.saturating_add((307_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 2_000
.saturating_add((129_000 as Weight).saturating_mul(t as Weight))
.saturating_add((133_000 as Weight).saturating_mul(t as Weight))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

these are more reasonable, the base weight is a bit less now, the component coefficients are a bit more, I presume in most cases the end up being the same thing, more or less.

.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -241,11 +241,11 @@ impl WeightInfo for () {
// Storage: ElectionProviderMultiPhase Snapshot (r:0 w:1)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:0 w:1)
fn elect_queued(a: u32, d: u32, ) -> Weight {
(156_010_000 as Weight)
(100_505_000 as Weight)
// Standard Error: 6_000
.saturating_add((1_579_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 9_000
.saturating_add((299_000 as Weight).saturating_mul(d as Weight))
.saturating_add((1_665_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 10_000
.saturating_add((443_000 as Weight).saturating_mul(d as Weight))
.saturating_add(RocksDbWeight::get().reads(6 as Weight))
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
}
Expand All @@ -256,9 +256,9 @@ impl WeightInfo for () {
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
fn submit(c: u32, ) -> Weight {
(73_498_000 as Weight)
// Standard Error: 73_000
.saturating_add((222_000 as Weight).saturating_mul(c as Weight))
(74_088_000 as Weight)
// Standard Error: 59_000
.saturating_add((187_000 as Weight).saturating_mul(c as Weight))
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand All @@ -272,13 +272,13 @@ impl WeightInfo for () {
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 5_000
.saturating_add((2_028_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 11_000
.saturating_add((124_000 as Weight).saturating_mul(t as Weight))
.saturating_add((1_970_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 10_000
.saturating_add((173_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 18_000
.saturating_add((9_991_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 28_000
.saturating_add((2_365_000 as Weight).saturating_mul(d as Weight))
.saturating_add((9_783_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 27_000
.saturating_add((2_224_000 as Weight).saturating_mul(d as Weight))
.saturating_add(RocksDbWeight::get().reads(7 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
Expand All @@ -289,13 +289,13 @@ impl WeightInfo for () {
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((1_935_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 6_000
.saturating_add((79_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 10_000
.saturating_add((7_904_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 16_000
.saturating_add((1_807_000 as Weight).saturating_mul(d as Weight))
.saturating_add((1_910_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 7_000
.saturating_add((111_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 13_000
.saturating_add((7_741_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 19_000
.saturating_add((1_844_000 as Weight).saturating_mul(d as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
}
}