Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run benchmarks as part of CI instead of just checking build #916

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion .circleci/then.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ jobs:
resource_class: xlarge
steps:
- install-dependencies-and-checkout
- run: pushd node && cargo check --features=runtime-benchmarks
- run: pwd && ./scripts/benchmarks.sh 2 1

node-test:
machine:
image: ubuntu-2204:2022.10.2
Expand Down
6 changes: 4 additions & 2 deletions scripts/benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@

set -eux

steps=50
repeat=20
steps=${1:-50}
repeat=${2:-20}
entropyOutput=./runtime/src/weights/
entropyChain=dev
entropyTemplate=.maintain/frame-weight-template.hbs
licenseHeader=.maintain/AGPL-3.0-header.txt
# Manually exclude some pallets.
excluded_pallets=(
pallet_nomination_pools
pallet_treasury
)

# Load all pallet names in an array.
Expand Down
Loading