Make election benchmarks more *memory-aware* (#9286)

* Make benchmarks a bit better with mem

* Make election benchmarks more *memory-aware*

* Fix a few errors

* cargo run --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

* Manually fix the weights

* Update lock file

* remove dupe

* Fix tests

* cargo update pwasm

Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
Kian PaimaniandParity Bot authored and GitHub committed 2021-07-09 19:55:31 +00:00
1 parent 9fc86cb55f
commit 3850a43323
11 files changed
+356 -148

No files matched your search

@@ -679,7 +679,7 @@ mod max_weight {
fn on_initialize_open_unsigned_with_snapshot() -> Weight {
unreachable!()
}
fn elect_queued() -> Weight {
fn elect_queued(_v: u32, _t: u32, _a: u32, _d: u32) -> Weight {
0
}
fn on_initialize_open_unsigned_without_snapshot() -> Weight {