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

feat: enhance benchmarking experience via command pop benchmark parachain #276

Open
chungquantin opened this issue Aug 5, 2024 · 0 comments

Comments

@chungquantin
Copy link

Current state of benchmarking experience, it takes manage steps to build > generate weights.

cargo build --profile=production --features runtime-benchmarks

./target/production/node-template benchmark pallet \
    --chain dev \
    --execution=wasm \
    --wasm-execution=compiled \
    --pallet "*" \
    --extrinsic "*" \
    --steps 50 \
    --repeat 20 \
    --output pallets/all-weight.rs

pop-cli can definitely simplify this process with one command pop benchmark parachain

> pop benchmark parachain

Building a production profile...

> Select chain environment
[ ] dev
[ ] ...

----

> Select pallet to benchmark 

"List out all the custom pallets in the workspace to select for benchmark"

[ ] pallet-template-1
[ ] pallet-template-2
[ ] all pallets

----

> Select pallet extrinsic to benchmark

"List out extrinsics of the selected pallets" 

[ ] pallet-template-1::extrinsics
[ ] pallet-template-2::extrinsics
[ ] all extrinsics

----

> Steps

"Input steps here"

----

> Repeat

"Input repeat here"

----

> Output

"Enter path to output the generated weight file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant