-
Notifications
You must be signed in to change notification settings - Fork 11
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(benchmark): benchmarking pallets [2/4] #698
feat(benchmark): benchmarking pallets [2/4] #698
Conversation
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.
Awesome!
A thing to note and maybe think about is that weight also needs to be adjusted given the size of an input. For example if a user calls burn
with a huge description, the weight should grow or shrink based on the size of the input.
But maybe we can keep this for future improvements.
I don t see how to set an adaptive weight for a given extrinsic depending on its input size. |
See https://github.com/paritytech/substrate/blob/655b81cf3ce607b87a293b67d14662ed433a3863/frame/system/src/lib.rs#LL419C48-L419C55 for example |
Benchmarking pallets:
Solves part of