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 17, 2021
commit 0aaf4bb65de50cedba8493685aa19e6077dec0b3
102 changes: 51 additions & 51 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-13, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-09-17, 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,41 +69,41 @@ 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_218_000 as Weight)
(23_527_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 {
(31_908_000 as Weight)
(33_897_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_022_000 as Weight)
(30_241_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_269_000 as Weight)
(48_697_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 {
(31_542_000 as Weight)
(32_836_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() -> Weight {
(10_030_098_000 as Weight)
(15_488_208_000 as Weight)
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -116,11 +116,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 {
(30_983_000 as Weight)
// Standard Error: 2_000
.saturating_add((1_660_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 15_000
.saturating_add((427_000 as Weight).saturating_mul(d as Weight))
(21_035_000 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.

why is there such a big decrease here?

// Standard Error: 1_000
.saturating_add((1_694_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 12_000
.saturating_add((463_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 +131,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 {
(77_651_000 as Weight)
// Standard Error: 72_000
.saturating_add((95_000 as Weight).saturating_mul(c as Weight))
(75_354_000 as Weight)
// Standard Error: 35_000
.saturating_add((200_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 @@ -146,14 +146,14 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((2_231_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 19_000
.saturating_add((22_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 4_000
.saturating_add((2_257_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 20_000
.saturating_add((91_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((9_763_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 48_000
.saturating_add((5_318_000 as Weight).saturating_mul(d as Weight))
.saturating_add((10_202_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 51_000
.saturating_add((5_721_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 @@ -164,13 +164,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((3_300_000 as Weight).saturating_mul(v as Weight))
.saturating_add((3_378_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 16_000
.saturating_add((74_000 as Weight).saturating_mul(t as Weight))
.saturating_add((209_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 5_000
.saturating_add((8_306_000 as Weight).saturating_mul(a as Weight))
.saturating_add((8_760_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 40_000
.saturating_add((4_579_000 as Weight).saturating_mul(d as Weight))
.saturating_add((4_679_000 as Weight).saturating_mul(d as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
}
}
Expand All @@ -186,41 +186,41 @@ impl WeightInfo for () {
// Storage: Staking ForceEra (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
fn on_initialize_nothing() -> Weight {
(22_218_000 as Weight)
(23_527_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 {
(31_908_000 as Weight)
(33_897_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_022_000 as Weight)
(30_241_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 {
(48_269_000 as Weight)
(48_697_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 {
(31_542_000 as Weight)
(32_836_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() -> Weight {
(10_030_098_000 as Weight)
(15_488_208_000 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.

Is this increase accounted for?

.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -233,11 +233,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 {
(30_983_000 as Weight)
// Standard Error: 2_000
.saturating_add((1_660_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 15_000
.saturating_add((427_000 as Weight).saturating_mul(d as Weight))
(21_035_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_694_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 12_000
.saturating_add((463_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 @@ -248,9 +248,9 @@ impl WeightInfo for () {
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
fn submit(c: u32, ) -> Weight {
(77_651_000 as Weight)
// Standard Error: 72_000
.saturating_add((95_000 as Weight).saturating_mul(c as Weight))
(75_354_000 as Weight)
// Standard Error: 35_000
.saturating_add((200_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 @@ -263,14 +263,14 @@ impl WeightInfo for () {
// Storage: ElectionProviderMultiPhase Snapshot (r:1 w:0)
fn submit_unsigned(v: u32, t: u32, a: u32, d: u32, ) -> Weight {
(0 as Weight)
// Standard Error: 3_000
.saturating_add((2_231_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 19_000
.saturating_add((22_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 4_000
.saturating_add((2_257_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 20_000
.saturating_add((91_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((9_763_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 48_000
.saturating_add((5_318_000 as Weight).saturating_mul(d as Weight))
.saturating_add((10_202_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 51_000
.saturating_add((5_721_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 @@ -281,13 +281,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((3_300_000 as Weight).saturating_mul(v as Weight))
.saturating_add((3_378_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 16_000
.saturating_add((74_000 as Weight).saturating_mul(t as Weight))
.saturating_add((209_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 5_000
.saturating_add((8_306_000 as Weight).saturating_mul(a as Weight))
.saturating_add((8_760_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 40_000
.saturating_add((4_579_000 as Weight).saturating_mul(d as Weight))
.saturating_add((4_679_000 as Weight).saturating_mul(d as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
}
}