Skip to content

Commit f36a26a

Browse files
[AHM] Fresh weights for Polkadot (#959)
<!-- Remember that you can run `/merge` to enable auto-merge in the PR --> <!-- Remember to modify the changelog. If you don't need to modify it, you can check the following box. Instead, if you have already modified it, simply delete the following line. --> - [x] Does not require a CHANGELOG entry --------- Co-authored-by: GitHub Action <action@github.com>
1 parent 46bb077 commit f36a26a

File tree

192 files changed

+7407
-6891
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+7407
-6891
lines changed

.github/scripts/cmd/cmd.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@
146146
output_path = default_path if not pallet.startswith("pallet_xcm_benchmarks") else xcm_path
147147
templates = config.get("benchmarks_templates", {}) or {}
148148
template = templates.get(pallet)
149+
excluded_extrinsics = config.get("benchmarks_exclude_extrinsics", {}) or {}
150+
excluded = excluded_extrinsics.get(pallet, [])
151+
excluded_string = ",".join(f"{pallet}::{e}" for e in excluded)
149152

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

152155
status = os.system(f"frame-omni-bencher v1 benchmark pallet "
153156
f"--extrinsic=* "
@@ -160,6 +163,7 @@
160163
f"--repeat=20 "
161164
f"--heap-pages=4096 "
162165
f"{f'--template={template} ' if template else ''}"
166+
f"{f'--exclude-extrinsics={excluded_string} ' if excluded_string else ''}"
163167
)
164168
if status != 0 and not args.continue_on_fail:
165169
print(f'Failed to benchmark {pallet} in {runtime}')

.github/workflows/runtimes-matrix.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"uri": "wss://try-runtime-kusama.polkadot.io:443",
2121
"is_relay": true,
2222
"blocktime": 6000,
23-
"benchmarks_exclude_extrinsics": "pallet_nomination_pools::apply_slash_fail",
2423
"extra_args": "--disable-mbm-checks",
2524
"build_extra_features": "kusama-ahm",
2625
"benchmarks_templates": {
@@ -45,6 +44,9 @@
4544
"blocktime": 12000,
4645
"try_runtime_args": "--overwrite-state-version 1",
4746
"build_extra_features": "kusama-ahm",
47+
"benchmarks_exclude_extrinsics": {
48+
"pallet_election_provider_multi_block_verifier": ["on_initialize_invalid_non_terminal"]
49+
},
4850
"benchmarks_templates": {
4951
"pallet_xcm_benchmarks::generic": "templates/xcm-bench-template.hbs",
5052
"pallet_xcm_benchmarks::fungible": "templates/xcm-bench-template.hbs"
@@ -60,6 +62,9 @@
6062
"extra_args": "--disable-mbm-checks",
6163
"try_runtime_args": "--overwrite-state-version 1",
6264
"build_extra_features": "polkadot-ahm",
65+
"benchmarks_exclude_extrinsics": {
66+
"pallet_election_provider_multi_block_verifier": ["on_initialize_invalid_non_terminal"]
67+
},
6368
"benchmarks_templates": {
6469
"pallet_xcm_benchmarks::generic": "templates/xcm-bench-template.hbs",
6570
"pallet_xcm_benchmarks::fungible": "templates/xcm-bench-template.hbs"

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ jobs:
122122
if [ -z "${{ matrix.runtime.benchmarks_exclude_extrinsics }}" ]; then
123123
EXCLUDE_EXTRINSICS=""
124124
else
125-
EXCLUDE_EXTRINSICS=" --exclude-extrinsics "
126-
EXCLUDE_EXTRINSICS+=${{ matrix.runtime.benchmarks_exclude_extrinsics }}
125+
EXCLUDE_EXTRINSICS_JSON='${{ toJson(matrix.runtime.benchmarks_exclude_extrinsics) }}'
126+
EXCLUDE_EXTRINSICS_LIST=$(echo "$EXCLUDE_EXTRINSICS_JSON" | jq -r 'to_entries | map("\(.key)::\(.value[])") | join(" ")')
127+
EXCLUDE_EXTRINSICS=" --exclude-extrinsics ${EXCLUDE_EXTRINSICS_LIST}"
127128
fi
128129
echo "Running benchmarking for RUNTIME_BLOB_PATH=$RUNTIME_BLOB_PATH $EXCLUDE_EXTRINSICS"
129130
./frame-omni-bencher v1 benchmark pallet --runtime $RUNTIME_BLOB_PATH --all --steps 2 --repeat 1 $EXCLUDE_EXTRINSICS --heap-pages 4096

relay/polkadot/src/weights/frame_benchmarking_baseline.rs

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/polkadot/src/weights/frame_election_provider_support.rs

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

relay/polkadot/src/weights/frame_system.rs

Lines changed: 35 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)