mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-22 19:38:00 +00:00
a7b44a9eff
* 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>
45 lines
903 B
Bash
Executable File
45 lines
903 B
Bash
Executable File
#!/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
|