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 af312e4c29b10ee13afe88deecb7cef70c477ef6
106 changes: 51 additions & 55 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-20, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2021-09-21, 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 {
(23_570_000 as Weight)
(23_244_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 {
(45_712_000 as Weight)
(31_261_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 {
(43_624_000 as Weight)
(31_367_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 {
(49_868_000 as Weight)
(49_706_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_696_000 as Weight)
(32_469_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 {
(9_027_460_000 as Weight)
(9_132_480_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 {
(41_853_000 as Weight)
(55_889_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_696_000 as Weight).saturating_mul(a as Weight))
.saturating_add((1_688_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 11_000
.saturating_add((450_000 as Weight).saturating_mul(d as Weight))
.saturating_add((484_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 @@ -130,10 +130,8 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
fn submit(c: u32, ) -> Weight {
(74_894_000 as Weight)
// Standard Error: 59_000
.saturating_add((241_000 as Weight).saturating_mul(c as Weight))
fn submit(_c: u32, ) -> Weight {
(82_132_000 as Weight)
.saturating_add(T::DbWeight::get().reads(5 as Weight))
.saturating_add(T::DbWeight::get().writes(3 as Weight))
}
Expand All @@ -146,14 +144,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: 4_000
.saturating_add((2_269_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 20_000
.saturating_add((114_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((10_082_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 51_000
.saturating_add((5_880_000 as Weight).saturating_mul(d as Weight))
.saturating_add((2_354_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 30_000
.saturating_add((266_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 10_000
.saturating_add((10_211_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 76_000
.saturating_add((6_169_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 +162,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_344_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 16_000
.saturating_add((152_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 5_000
.saturating_add((8_635_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 40_000
.saturating_add((4_899_000 as Weight).saturating_mul(d as Weight))
.saturating_add((3_346_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 19_000
.saturating_add((124_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((8_580_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 48_000
.saturating_add((5_079_000 as Weight).saturating_mul(d as Weight))
.saturating_add(T::DbWeight::get().reads(4 as Weight))
}
}
Expand All @@ -186,41 +184,41 @@ impl WeightInfo for () {
// Storage: Staking ForceEra (r:1 w:0)
// Storage: ElectionProviderMultiPhase CurrentPhase (r:1 w:0)
fn on_initialize_nothing() -> Weight {
(23_570_000 as Weight)
(23_244_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 {
(45_712_000 as Weight)
(31_261_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 {
(43_624_000 as Weight)
(31_367_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 {
(49_868_000 as Weight)
(49_706_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_696_000 as Weight)
(32_469_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 {
(9_027_460_000 as Weight)
(9_132_480_000 as Weight)
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
// Storage: ElectionProviderMultiPhase SignedSubmissionIndices (r:1 w:1)
Expand All @@ -233,11 +231,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 {
(41_853_000 as Weight)
(55_889_000 as Weight)
// Standard Error: 1_000
.saturating_add((1_696_000 as Weight).saturating_mul(a as Weight))
.saturating_add((1_688_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 11_000
.saturating_add((450_000 as Weight).saturating_mul(d as Weight))
.saturating_add((484_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 @@ -247,10 +245,8 @@ impl WeightInfo for () {
// Storage: TransactionPayment NextFeeMultiplier (r:1 w:0)
// Storage: ElectionProviderMultiPhase SignedSubmissionNextIndex (r:1 w:1)
// Storage: ElectionProviderMultiPhase SignedSubmissionsMap (r:0 w:1)
fn submit(c: u32, ) -> Weight {
(74_894_000 as Weight)
// Standard Error: 59_000
.saturating_add((241_000 as Weight).saturating_mul(c as Weight))
fn submit(_c: u32, ) -> Weight {
(82_132_000 as Weight)
.saturating_add(RocksDbWeight::get().reads(5 as Weight))
.saturating_add(RocksDbWeight::get().writes(3 as Weight))
}
Expand All @@ -263,14 +259,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: 4_000
.saturating_add((2_269_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 20_000
.saturating_add((114_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((10_082_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 51_000
.saturating_add((5_880_000 as Weight).saturating_mul(d as Weight))
.saturating_add((2_354_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 30_000
.saturating_add((266_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 10_000
.saturating_add((10_211_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 76_000
.saturating_add((6_169_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 +277,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_344_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 16_000
.saturating_add((152_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 5_000
.saturating_add((8_635_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 40_000
.saturating_add((4_899_000 as Weight).saturating_mul(d as Weight))
.saturating_add((3_346_000 as Weight).saturating_mul(v as Weight))
// Standard Error: 19_000
.saturating_add((124_000 as Weight).saturating_mul(t as Weight))
// Standard Error: 6_000
.saturating_add((8_580_000 as Weight).saturating_mul(a as Weight))
// Standard Error: 48_000
.saturating_add((5_079_000 as Weight).saturating_mul(d as Weight))
.saturating_add(RocksDbWeight::get().reads(4 as Weight))
}
}