-
Notifications
You must be signed in to change notification settings - Fork 76
Add benchmark your pallet #1189
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
Conversation
nhussein11
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting read, thank you!
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request comprehensively rewrites the pallet benchmarking guide, transforming it from a general framework overview into a hands-on tutorial that builds on the pallet development series. The changes provide step-by-step instructions for benchmarking custom pallets, from creating benchmarking modules to integrating generated weights into production runtimes.
Key changes:
- Complete rewrite of the benchmark guide with practical, actionable steps for the custom counter pallet example
- Title updates for consistency: "Pallet Testing" β "Unit Test Pallets" and "Benchmarking FRAME Pallets" β "Benchmark Your Pallet"
- Addition of detailed explanations for each step, including weight trait definitions, runtime integration, and production deployment
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
benchmark-pallet.md |
Complete rewrite from conceptual overview to practical tutorial with code examples for benchmarking custom pallets |
pallet-testing.md |
Title updated to "Unit Test Pallets" for better clarity and consistency |
create-a-pallet.md |
Added reference to setup guide for Polkadot Omni Node and Chain Spec Builder |
.nav.yml |
Updated navigation title to match renamed "Unit Test Pallets" |
llms.txt, llms-full.jsonl, .ai/* |
Regenerated AI-ready documentation files with updated content |
π‘ Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.ai/pages/parachains-customize-runtime-pallet-development-benchmark-pallet.md
Show resolved
Hide resolved
dawnkelly09
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question for Bruno. This can be checked by Erin.
@dawnkelly09 Yep, this is in |
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
parachains/customize-runtime/pallet-development/benchmark-pallet.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Erin Shaben <eshaben@icloud.com>
* add harthdat get started * fix: llms * fix and formating * fix --------- Co-authored-by: 0xlukem <lucas.malizia27@gmail.com>
* Remove outdated warning reference from local development node documentation * fix: llms * fix: llms --------- Co-authored-by: Erin Shaben <eshaben@icloud.com>
* fix: get started ready * fix: remix deploy * Update troubleshooting guide for Remix IDE and comment out 'Verify a Contract' section in navigation * fix: images and names * fix: remove verify contract file * fix: llms * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: prerequisite * fix: llms * Grammarly things and reformat to FAQ style dropdowns for troubleshooting page * applies review feedback * Clean up formatting of titles and bullets * fix: feedback * fix: llms * fix: gifs lists wording * fix: llms * Remove outdated troubleshooting and verification guides for Remix IDE on Polkadot Hub. * fix errant merge conflict syntax, description length * applies review feedback * grammarly pass * minor fix and llms --------- Co-authored-by: Dawn Kelly <83190195+dawnkelly09@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: DAWN KELLY <dawnkelly09@gmail.com> Co-authored-by: Erin Shaben <eshaben@icloud.com>
* hide content for mvp launch * update llms config to skip chain interactions and reference sections * llms
π Description
Resolves #1085
π Review Preference
Choose one:
π€ AI-Ready Docs
If content changed, regenerate AI files:
python3 scripts/generate_llms.pyβ Checklist