mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 19:51:02 +00:00
Inherent filtering follow up (#4305)
* Add feature more feature gating for benchmarking + tests * New line * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras_inherent.rs * Do not assume we use max validators per core * Use kusama weights for rococo (hopefully temp) * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs * Add more validity votes when neccesary * Some fixes for the last commit * Restore westend weights * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/runtime_parachains_paras_inherent.rs * Revert bad westend weights write * Make sure to update val idx before skipping * Fix validity vote range to max at group size' * Temp setup for rococo * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras_inherent.rs --header=./file_header.txt * Augment generated Rococo weights * Make it compile * Revert range for enter_backed_candidates_variable * Delete runtime/kusama/src/weights/runtime_paras_paras_inherent.rs Co-authored-by: Parity Bot <admin@parity.io>
This commit is contained in:
@@ -85,11 +85,18 @@ benchmarks! {
|
||||
// Variant over `v`, the amount of validity votes for a backed candidate. This gives the weight
|
||||
// of a single backed candidate.
|
||||
enter_backed_candidates_variable {
|
||||
// NOTE: the starting value must be over half of `max_validators` so the backed candidate is
|
||||
// not rejected.
|
||||
let v
|
||||
in (BenchBuilder::<T>::fallback_min_validity_votes())
|
||||
..BenchBuilder::<T>::fallback_max_validators();
|
||||
// NOTE: the starting value must be over half of the max validators per group so the backed
|
||||
// candidate is not rejected. Also, we cannot have more validity votes than validators in
|
||||
// the group.
|
||||
|
||||
// Do not use this range for Rococo because it only has 1 validator per backing group,
|
||||
// which causes issues when trying to create slopes with the benchmarking analysis. Instead
|
||||
// use v = 1 for running Rococo benchmarks
|
||||
let v in (BenchBuilder::<T>::fallback_min_validity_votes())
|
||||
..(BenchBuilder::<T>::fallback_max_validators());
|
||||
|
||||
// Comment in for running rococo benchmarks
|
||||
// let v = 1;
|
||||
|
||||
let cores_with_backed: BTreeMap<_, _>
|
||||
= vec![(0, v)] // The backed candidate will have `v` validity votes.
|
||||
|
||||
Reference in New Issue
Block a user