-
Notifications
You must be signed in to change notification settings - Fork 9
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
Custom Blockchains > Benchmarking #121
Conversation
@nhussein11 @0xLucca Added some barebones content here, could you take a look and see what is missing / what is unclear? Thanks! |
I have very recently added a new reference doc on this: it is very short, but covers the fundamentals pretty well. |
@kianenigma Oh perfect, I have not used the omni_bencher yet, do you think it is ready to be implemented as the primary method here? |
Co-authored-by: 0xLucca <95830307+0xLucca@users.noreply.github.com>
I spent some time with For now, will stick to the "old" approach. It will not take much to replace with omni-bencher once everything is synced up. Edit: we should make a note for a follow up PR as per this: paritytech/polkadot-sdk-parachain-template#19 (comment) cc @kapetan3sid |
One major PR is missing before it can reach feature parity with the old one: paritytech/polkadot-sdk#5303 But for 99% of the teams, it is already enough; and it is more future proof. |
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.
LGTM besides those small details! thank you!!
|
||
```rust | ||
frame_benchmarking::define_benchmarks!( |
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.
https://paritytech.github.io/polkadot-sdk/master/frame_benchmarking/macro.define_benchmarks.html
Is this good enough? can you contribute back anything to this?
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.
Maybe an example + slightly clearer description of what that looks like syntactically to better illustrate what is going on, I can open a PR and do this if wanted
Co-authored-by: Nicolás Hussein <80422357+nhussein11@users.noreply.github.com>
@polkadot-developers/docs-content-team: I did some formatting and grammar work on this page. Two asks:
|
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.
Made grammar and formatting updates. Needs approval from content and then final look from Erin or another formatting/grammar reviewer
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.
Looks good! Just some minor formatting things 🙂
.snippets/code/develop/blockchains/custom-blockchains/benchmarking/benchmark-output.html
Outdated
Show resolved
Hide resolved
.snippets/code/develop/blockchains/custom-blockchains/benchmarking/benchmark-output.html
Outdated
Show resolved
Hide resolved
Co-authored-by: Erin Shaben <eshaben@icloud.com>
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.
LGTM!
Adds the Benchmarking page, which is based on:
Only relevant content was ported, the rest was written to reflect the latest in benchmarking.