This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [Do not merge] add benchmarks to pipeline * disable jobs for test * Revert "[Do not merge] add benchmarks to pipeline" This reverts commit af3cca0. * 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>
- Loading branch information
1 parent
476c3bf
commit 058469b
Showing
2 changed files
with
115 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |