mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-11 23:31:07 +00:00
Add benchmarks to pipeline (#1074)
* [Do not merge] add benchmarks to pipeline * disable jobs for test * Revert "[Do not merge] add benchmarks to pipeline" This reverts commit af3cca09f2bbec7ab75e1e905314356ce4405a6f. * add weights tag * add stage * empty before_script for benches * run benchmarks on ci6 * disable cargo target dir * disable pre-cache * add CARGO_TARGET_DIR var to bench script * debug * debug * fix script path * divide build and benchmark into 2 jobs * fix bench build * small fix * reduce benchmark output log * add push github * add push gh * add after_script * typo fix * typo fix * fix curl * fix git config * add title and body to pr * final check that everything works * final check that everything works * return jobs back * fix rules * cancel changes benchmarks.sh * Apply suggestions from code review Co-authored-by: Denis Pisarev <denis.pisarev@parity.io> * rename job * change benches jobs to run on release-parachains-v* * remove master refs Co-authored-by: Denis Pisarev <denis.pisarev@parity.io>
This commit is contained in:
committed by
GitHub
parent
476c3bf688
commit
058469bb93
Executable
+37
@@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
steps=50
|
||||
repeat=20
|
||||
chainName=$1
|
||||
|
||||
benhcmarkOutput=./polkadot-parachains/$chainName/src/weights
|
||||
benhcmarkChainName="$chainName-dev"
|
||||
|
||||
pallets=(
|
||||
pallet_assets
|
||||
pallet_balances
|
||||
pallet_collator_selection
|
||||
pallet_multisig
|
||||
pallet_proxy
|
||||
pallet_session
|
||||
pallet_timestamp
|
||||
pallet_utility
|
||||
pallet_uniques
|
||||
cumulus_pallet_xcmp_queue
|
||||
frame_system
|
||||
)
|
||||
|
||||
for p in ${pallets[@]}
|
||||
do
|
||||
./artifacts/polkadot-collator benchmark \
|
||||
--chain=$benhcmarkChainName \
|
||||
--execution=wasm \
|
||||
--wasm-execution=compiled \
|
||||
--pallet=$p \
|
||||
--extrinsic='*' \
|
||||
--steps=$steps \
|
||||
--repeat=$repeat \
|
||||
--json \
|
||||
--header=./file_header.txt \
|
||||
--output=$benhcmarkOutput
|
||||
done
|
||||
Reference in New Issue
Block a user