-
Notifications
You must be signed in to change notification settings - Fork 790
35 lines (31 loc) · 1.07 KB
/
benchmark.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Benchmarks
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
preflight:
uses: ./.github/workflows/reusable-preflight.yml
benchmark:
runs-on: parity-weights
needs: [preflight]
timeout-minutes: 60
container:
image: ${{ needs.preflight.outputs.IMAGE }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: script
run: |
cargo run --quiet --profile=production --bin=polkadot --features=runtime-benchmarks -- benchmark pallet --steps=50 \
--repeat=20 --extrinsic=* --wasm-execution=compiled --heap-pages=4096 \
--json-file=bench.json \
--pallet=pallet_balances --chain=westend-dev --header=./polkadot/file_header.txt \
--output=./polkadot/runtime/westend/src/weights/
cat ./polkadot/runtime/westend/src/weights/pallet_balances.rs