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

Fix: data preservers benchmarks #783

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
1 change: 1 addition & 0 deletions solo-chains/runtime/dancelight/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2101,6 +2101,7 @@ mod benches {
[pallet_external_validators_rewards, ExternalValidatorsRewards]
[pallet_external_validator_slashes, ExternalValidatorSlashes]
[pallet_invulnerables, TanssiInvulnerables]
[pallet_data_preservers, DataPreservers]
// XCM
[pallet_xcm, PalletXcmExtrinsicsBenchmark::<Runtime>]
[pallet_xcm_benchmarks::fungible, pallet_xcm_benchmarks::fungible::Pallet::<Runtime>]
Expand Down
11 changes: 10 additions & 1 deletion tools/dev-benchmark-pallet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -e
cd "$(dirname "$0")/.."

# mkdir just in case as the benchmarking fails if they don't exist
mkdir -p tmp/dancebox_weights tmp/flashbox_weights tmp/simple_template_weights tmp/frontier_template_weights
mkdir -p tmp/dancebox_weights tmp/flashbox_weights tmp/simple_template_weights tmp/frontier_template_weights tmp/dancelight_weights

# Empty directories
rm -rf tmp/*_weights/*
Expand Down Expand Up @@ -79,6 +79,15 @@ TEMPLATE_PATH=benchmarking/frame-weight-runtime-template.hbs \
tools/benchmarking.sh "$PALLET" "*" --check
cp -v tmp/flashbox_weights/$PALLET.rs runtime/flashbox/src/weights/$PALLET.rs

# Dancelight weights
BINARY=target/release/tanssi-relay \
TEMPLATE_PATH=benchmarking/frame-weight-runtime-template.hbs \
CHAIN=dancelight-dev \
OUTPUT_PATH=tmp/dancelight_weights \
tools/benchmarking.sh "$PALLET" "*" --check
cp -v tmp/dancelight_weights/$PALLET.rs solo-chains/runtime/dancelight/src/weights/$PALLET.rs


# Probably don't need to add weights to templates, change false to true if the pallet is also included in the templates
if false; then
# Simple template weights
Expand Down
Loading