Add elastic scaling support in ParaInherent BenchBuilder (#3690)

Extracted Benchbuilder enhancements used in
https://github.com/paritytech/polkadot-sdk/pull/3644 . Might still
require some work to fully support all scenarios when disputing elastic
scaling parachains, but it should be useful in writing elastic scaling
runtime tests.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
This commit is contained in:
Andrei Sandu
2024-03-15 13:42:58 +02:00
committed by GitHub
parent 7099f6e1b1
commit 4987d79824
3 changed files with 279 additions and 175 deletions
@@ -65,7 +65,7 @@ benchmarks! {
.collect();
let scenario = BenchBuilder::<T>::new()
.set_backed_and_concluding_cores(cores_with_backed)
.set_backed_and_concluding_paras(cores_with_backed)
.build();
let mut benchmark = scenario.data.clone();
@@ -110,7 +110,7 @@ benchmarks! {
.collect();
let scenario = BenchBuilder::<T>::new()
.set_backed_and_concluding_cores(cores_with_backed.clone())
.set_backed_and_concluding_paras(cores_with_backed.clone())
.build();
let mut benchmark = scenario.data.clone();
@@ -165,7 +165,7 @@ benchmarks! {
.collect();
let scenario = BenchBuilder::<T>::new()
.set_backed_and_concluding_cores(cores_with_backed.clone())
.set_backed_and_concluding_paras(cores_with_backed.clone())
.set_code_upgrade(v)
.build();