Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
4009fe1
WIP
bkontur Oct 10, 2025
23d1c5b
Update from bkontur running command 'bench --runtime bridge-hub-polka…
actions-user Oct 10, 2025
1794a3c
Exclude `pallet_election_provider_multi_block_verifier::on_initialize…
bkontur Oct 11, 2025
82054b7
Added excluded (copied from Karol's other commit)
bkontur Oct 11, 2025
cc7c1c4
Change structure of `benchmarks_exclude_extrinsics`
bkontur Oct 11, 2025
d86b797
Update from bkontur running command 'bench --runtime asset-hub-polkadot'
actions-user Oct 12, 2025
3503a1c
Update from bkontur running command 'bench --runtime polkadot'
actions-user Oct 12, 2025
9a8c1d0
Fix TODO: https://github.com/polkadot-fellows/runtimes/issues/894
bkontur Oct 13, 2025
d675d65
TODO: https://github.com/polkadot-fellows/runtimes/issues/963 (copied…
bkontur Oct 13, 2025
03ff737
Merge remote-tracking branch 'polkadot-fellows/main' into bko-weights…
bkontur Oct 13, 2025
6b4a202
Update from bkontur running command 'bench --runtime asset-hub-polkad…
actions-user Oct 13, 2025
bd8bb08
TODO and another try
bkontur Oct 13, 2025
ba59f37
Update from bkontur running command 'bench --runtime asset-hub-polkad…
actions-user Oct 14, 2025
55fee73
Return benchmarks_exclude_extrinsics back for AHP
bkontur Oct 14, 2025
d5db2fc
Fix
bkontur Oct 14, 2025
4ff1f84
Removed TODO
bkontur Oct 14, 2025
06ef647
Update from bkontur running command 'bench --runtime bridge-hub-polka…
actions-user Oct 15, 2025
95a1682
Trigger CI
bkontur Oct 15, 2025
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
6 changes: 5 additions & 1 deletion .github/scripts/cmd/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@
output_path = default_path if not pallet.startswith("pallet_xcm_benchmarks") else xcm_path
templates = config.get("benchmarks_templates", {}) or {}
template = templates.get(pallet)
excluded_extrinsics = config.get("benchmarks_exclude_extrinsics", {}) or {}
excluded = excluded_extrinsics.get(pallet, [])
excluded_string = ",".join(f"{pallet}::{e}" for e in excluded)

print(f'-- benchmarking {pallet} in {runtime} into {output_path} using template {template}')
print(f'-- benchmarking {pallet} in {runtime} into {output_path} using template {template} and excluded {excluded_string}')

status = os.system(f"frame-omni-bencher v1 benchmark pallet "
f"--extrinsic=* "
Expand All @@ -160,6 +163,7 @@
f"--repeat=20 "
f"--heap-pages=4096 "
f"{f'--template={template} ' if template else ''}"
f"{f'--exclude-extrinsics={excluded_string} ' if excluded_string else ''}"
)
if status != 0 and not args.continue_on_fail:
print(f'Failed to benchmark {pallet} in {runtime}')
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/runtimes-matrix.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"uri": "wss://try-runtime-kusama.polkadot.io:443",
"is_relay": true,
"blocktime": 6000,
"benchmarks_exclude_extrinsics": "pallet_nomination_pools::apply_slash_fail",
"extra_args": "--disable-mbm-checks",
"build_extra_features": "kusama-ahm",
"benchmarks_templates": {
Expand All @@ -45,6 +44,9 @@
"blocktime": 12000,
"try_runtime_args": "--overwrite-state-version 1",
"build_extra_features": "kusama-ahm",
"benchmarks_exclude_extrinsics": {
"pallet_election_provider_multi_block_verifier": ["on_initialize_invalid_non_terminal"]
},
"benchmarks_templates": {
"pallet_xcm_benchmarks::generic": "templates/xcm-bench-template.hbs",
"pallet_xcm_benchmarks::fungible": "templates/xcm-bench-template.hbs"
Expand All @@ -60,6 +62,9 @@
"extra_args": "--disable-mbm-checks",
"try_runtime_args": "--overwrite-state-version 1",
"build_extra_features": "polkadot-ahm",
"benchmarks_exclude_extrinsics": {
"pallet_election_provider_multi_block_verifier": ["on_initialize_invalid_non_terminal"]
},
"benchmarks_templates": {
"pallet_xcm_benchmarks::generic": "templates/xcm-bench-template.hbs",
"pallet_xcm_benchmarks::fungible": "templates/xcm-bench-template.hbs"
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ jobs:
if [ -z "${{ matrix.runtime.benchmarks_exclude_extrinsics }}" ]; then
EXCLUDE_EXTRINSICS=""
else
EXCLUDE_EXTRINSICS=" --exclude-extrinsics "
EXCLUDE_EXTRINSICS+=${{ matrix.runtime.benchmarks_exclude_extrinsics }}
EXCLUDE_EXTRINSICS_JSON='${{ toJson(matrix.runtime.benchmarks_exclude_extrinsics) }}'
EXCLUDE_EXTRINSICS_LIST=$(echo "$EXCLUDE_EXTRINSICS_JSON" | jq -r 'to_entries | map("\(.key)::\(.value[])") | join(" ")')
EXCLUDE_EXTRINSICS=" --exclude-extrinsics ${EXCLUDE_EXTRINSICS_LIST}"
fi
echo "Running benchmarking for RUNTIME_BLOB_PATH=$RUNTIME_BLOB_PATH $EXCLUDE_EXTRINSICS"
./frame-omni-bencher v1 benchmark pallet --runtime $RUNTIME_BLOB_PATH --all --steps 2 --repeat 1 $EXCLUDE_EXTRINSICS --heap-pages 4096
Expand Down
36 changes: 18 additions & 18 deletions relay/polkadot/src/weights/frame_benchmarking_baseline.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions relay/polkadot/src/weights/frame_election_provider_support.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 35 additions & 35 deletions relay/polkadot/src/weights/frame_system.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading