Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 14 additions & 33 deletions .maintain/run_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,6 @@ VERSIONS_FILES=(
steps=50
repeat=20

pallets=(
oracle
frame_system
timestamp
session
balances
indices
membership
treasury
scheduler
collective
democracy
collator_selection
utility
lending
dutch_auction
)

/home/runner/.cargo/bin/rustup install nightly
/home/runner/.cargo/bin/rustup target add wasm32-unknown-unknown --toolchain nightly
/home/runner/.cargo/bin/cargo build --release -p composable --features=runtime-benchmarks
Expand All @@ -45,18 +27,17 @@ run_benchmarks() {
# shellcheck disable=SC2068
echo "Running benchmarks for $CHAIN"
# shellcheck disable=SC2068
for p in ${pallets[@]}; do
./target/release/composable benchmark \
--chain="$CHAIN" \
--execution=wasm \
--wasm-execution=compiled \
--pallet="$p" \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--output="$OUTPUT"
done
./target/release/composable benchmark \
--chain="$CHAIN" \
--execution=wasm \
--wasm-execution=compiled \
--pallet="*" \
--extrinsic='*' \
--steps=$steps \
--repeat=$repeat \
--raw \
--output="$OUTPUT" \
--log error
git config --global user.email "[email protected]"
git config --global user.name "haroldsphinx"
USERNAME=$(gcloud secrets versions access latest --secret=github-api-username)
Expand All @@ -71,8 +52,8 @@ run_benchmarks() {

for i in "${VERSIONS_FILES[@]}"; do
while IFS=',' read -r output chain folder; do
if has_runtime_changes "${BASE_BRANCH}" "${GITHUB_BRANCH_NAME}" "$folder"; then
run_benchmarks $output $chain $folder
fi
# if has_runtime_changes "${BASE_BRANCH}" "${GITHUB_BRANCH_NAME}" "$folder"; then
run_benchmarks $output $chain $folder
# fi
done <<<"$i"
done