Fix Benchmarks for Statemine-V4 release (#639)

* register validators

* register_as_candidate & leave_intent fixed

* new_session benchmark fixed

* intent_leave_modified

* clean up

* clean up

* benchmark script updated

* update cargo.lock

* done

Co-authored-by: Alexander Popiak <alexander.popiak@parity.io>
This commit is contained in:
Ignacio Palacios
2021-10-04 11:54:58 +02:00
committed by GitHub
parent 18cae2f496
commit 288a98d3d2
5 changed files with 101 additions and 12 deletions
+21 -2
View File
@@ -2,10 +2,15 @@
steps=50
repeat=20
statemineOutput=./polkadot-parachains/statemine-runtime/src/weights
statemintOutput=./polkadot-parachains/statemint-runtime/src/weights
statemineOutput=./polkadot-parachains/statemine/src/weights
statemintOutput=./polkadot-parachains/statemint/src/weights
westmintOutput=./polkadot-parachains/westmint/src/weights
statemineChain=statemine-dev
statemintChain=statemint-dev
westmintChain=westmint-dev
pallets=(
pallet_assets
pallet_balances
@@ -15,6 +20,7 @@ pallets=(
pallet_session
pallet_timestamp
pallet_utility
pallet_uniques
)
for p in ${pallets[@]}
@@ -28,6 +34,7 @@ do
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$statemineOutput
./target/release/polkadot-collator benchmark \
@@ -39,6 +46,18 @@ do
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$statemintOutput
./target/release/polkadot-collator benchmark \
--chain=$westmintChain \
--execution=wasm \
--wasm-execution=compiled \
--pallet=$p \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--header=./file_header.txt \
--output=$westmintOutput
done