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(ismp-grandpa): add benchmarking support #353

Merged

Conversation

sylvaincormier
Copy link
Contributor

@sylvaincormier sylvaincormier commented Dec 15, 2024

Description

This PR implements benchmarking support for ismp-grandpa, addressing issue #350. The implementation includes:

  • Added WeightInfo trait and default weight implementation
  • Added benchmarking feature flag and dependencies
  • Configured benchmarking in Gargantua and Nexus runtimes
  • Implemented placeholder weight values for pallet extrinsics

Changes include

  • Benchmarking infrastructure setup
  • Runtime integration for Gargantua and Nexus
  • Weight implementations

Related issues

Closes #350

@sylvaincormier sylvaincormier marked this pull request as draft December 15, 2024 19:31
@sylvaincormier sylvaincormier force-pushed the feat/benchmark-ismp-grandpa branch from 8507b80 to 15664bb Compare December 15, 2024 20:26
@sylvaincormier sylvaincormier marked this pull request as ready for review December 15, 2024 20:27
@sylvaincormier sylvaincormier force-pushed the feat/benchmark-ismp-grandpa branch 2 times, most recently from b92289b to 549c119 Compare December 18, 2024 01:42
…ions

- Add runtime benchmarking support for ismp-grandpa and integrate `frame-benchmarking`.
- Parameterize WeightInfo methods to scale costs according to the number of state machines.
- Update pallet calls to use parameterized weights for add/remove extrinsics.
- Incorporate empirical benchmark results for more accurate weight calculations.
- Cleanup and remove outdated files.
@sylvaincormier sylvaincormier force-pushed the feat/benchmark-ismp-grandpa branch from 2df1dff to 2954a32 Compare December 18, 2024 02:36
Copy link
Member

@seunlanlege seunlanlege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will clean up the rest on my other branch

@seunlanlege seunlanlege merged commit 0382d9f into polytope-labs:main Dec 18, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

Benchmark ismp-grandpa
2 participants