Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
cargo run --quiet --release --features=runtime-benchmarks --manifest-…
…path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_election_provider_multi_phase --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/election-provider-multi-phase/src/weights.rs --template=./.maintain/frame-weight-template.hbs
  • Loading branch information
Parity Bot committed Sep 21, 2021
commit 0e444a534fc35a99ea006b5fd3e3a93aaba18f11
134 changes: 75 additions & 59 deletions frame/election-provider-multi-phase/src/weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub trait WeightInfo {
fn on_initialize_open_unsigned() -> Weight;
fn finalize_signed_phase_accept_solution() -> Weight;
fn finalize_signed_phase_reject_solution() -> Weight;
fn create_snapshot_internal(v: u32, t: u32) -> Weight;
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight;
fn elect_queued(a: u32, d: u32, ) -> Weight;
fn submit(c: u32, ) -> Weight;
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight;
Expand All @@ -69,41 +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 {
(23_558_000 as Weight)
(22_696_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 {
(33_085_000 as Weight)
(30_317_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 {
(31_137_000 as Weight)
(30_661_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 {
(50_517_000 as Weight)
(48_439_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 {
(33_134_000 as Weight)
(32_072_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 {
(9_132_480_000 as Weight)
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
(89_239_000 as Weight)
// Standard Error: 1_000
.saturating_add((320_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(T::DbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -116,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 {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((1_633_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 16_000
.saturating_add((535_000 as Weight).saturating_mul(d as Weight))
(156_010_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(T::DbWeight::get().reads(6 as Weight))
.saturating_add(T::DbWeight::get().writes(8 as Weight))
}
Expand All @@ -131,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 {
(76_548_000 as Weight)
// Standard Error: 101_000
.saturating_add((648_000 as Weight).saturating_mul(c as Weight))
(73_498_000 as Weight)
// Standard Error: 73_000
.saturating_add((222_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 @@ -144,29 +148,33 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn submit_unsigned(v: u32, _t: u32, a: u32, d: u32, ) -> Weight {
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 9_000
.saturating_add((1_928_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 9_000
.saturating_add((9_883_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 47_000
.saturating_add((2_954_000 as Weight).saturating_mul(d 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))
// 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(T::DbWeight::get().reads(7 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn feasibility_check(v: u32, _t: u32, a: u32, d: u32, ) -> Weight {
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 4_000
.saturating_add((1_946_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 4_000
.saturating_add((8_134_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 22_000
.saturating_add((2_932_000 as Weight).saturating_mul(d 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(T::DbWeight::get().reads(4 as Weight))
}
}
Expand All @@ -182,41 +190,45 @@ impl WeightInfo for () {
// Storage: Staking ForceEra (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
fn on_initialize_nothing() -> Weight {
(23_558_000 as Weight)
(22_696_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 {
(33_085_000 as Weight)
(30_317_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 {
(31_137_000 as Weight)
(30_661_000 as Weight)
.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 {
(50_517_000 as Weight)
(48_439_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 {
(33_134_000 as Weight)
(32_072_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 {
(9_132_480_000 as Weight)
fn create_snapshot_internal(v: u32, t: u32, ) -> Weight {
(89_239_000 as Weight)
// Standard Error: 1_000
.saturating_add((320_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(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -229,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 {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((1_633_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 16_000
.saturating_add((535_000 as Weight).saturating_mul(d as Weight))
(156_010_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(RocksDbWeight::get().reads(6 as Weight))
.saturating_add(RocksDbWeight::get().writes(8 as Weight))
}
Expand All @@ -244,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 {
(76_548_000 as Weight)
// Standard Error: 101_000
.saturating_add((648_000 as Weight).saturating_mul(c as Weight))
(73_498_000 as Weight)
// Standard Error: 73_000
.saturating_add((222_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 @@ -257,29 +269,33 @@ impl WeightInfo for () {
// Storage: ElectionProviderMultiPhase SnapshotMetadata (r:1 w:0)
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn submit_unsigned(v: u32, _t: u32, a: u32, d: u32, ) -> Weight {
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 9_000
.saturating_add((1_928_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 9_000
.saturating_add((9_883_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 47_000
.saturating_add((2_954_000 as Weight).saturating_mul(d 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))
// 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(RocksDbWeight::get().reads(7 as Weight))
.saturating_add(RocksDbWeight::get().writes(1 as Weight))
}
// Storage: ElectionProviderMultiPhase Round (r:1 w:0)
// Storage: ElectionProviderMultiPhase DesiredTargets (r:1 w:0)
// Storage: ElectionProviderMultiPhase MinimumUntrustedScore (r:1 w:0)
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn feasibility_check(v: u32, _t: u32, a: u32, d: u32, ) -> Weight {
fn feasibility_check(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 4_000
.saturating_add((1_946_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 4_000
.saturating_add((8_134_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 22_000
.saturating_add((2_932_000 as Weight).saturating_mul(d 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(RocksDbWeight::get().reads(4 as Weight))
}
}