mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-25 17:37:56 +00:00
Add session weight (#477)
* session weight * decouple session benchmarking and collator selection * removed mock * licensing * benchmarking script * set benchmarking into runtime * Update scripts/benchmarks.sh * real weights Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Executable
+44
@@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
steps=50
|
||||
repeat=20
|
||||
statemineOutput=./polkadot-parachains/statemine-runtime/src/weights
|
||||
statemintOutput=./polkadot-parachains/statemint-runtime/src/weights
|
||||
statemineChain=statemine-dev
|
||||
statemintChain=statemint-dev
|
||||
pallets=(
|
||||
pallet_assets
|
||||
pallet_balances
|
||||
pallet_collator_selection
|
||||
pallet_multisig
|
||||
pallet_proxy
|
||||
pallet_session
|
||||
pallet_timestamp
|
||||
pallet_utility
|
||||
)
|
||||
|
||||
for p in ${pallets[@]}
|
||||
do
|
||||
./target/release/polkadot-collator benchmark \
|
||||
--chain=$statemineChain \
|
||||
--execution=wasm \
|
||||
--wasm-execution=compiled \
|
||||
--pallet=$p \
|
||||
--extrinsic='*' \
|
||||
--steps=$steps \
|
||||
--repeat=$repeat \
|
||||
--raw \
|
||||
--output=$statemineOutput
|
||||
|
||||
./target/release/polkadot-collator benchmark \
|
||||
--chain=$statemintChain \
|
||||
--execution=wasm \
|
||||
--wasm-execution=compiled \
|
||||
--pallet=$p \
|
||||
--extrinsic='*' \
|
||||
--steps=$steps \
|
||||
--repeat=$repeat \
|
||||
--raw \
|
||||
--output=$statemintOutput
|
||||
|
||||
done
|
||||
Reference in New Issue
Block a user