-
Notifications
You must be signed in to change notification settings - Fork 146
test: init benchmark infra #110
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
Merged
Merged
Changes from 42 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
507014b
Initial planning
elfedy 77f8dfa
no fast runtime
elfedy 44b3e33
use frame-omni-bencher
elfedy 49b14ed
use runtime specific directory structure for scripts
elfedy 6890769
benchmarks config
elfedy fa797a3
some script fixes
elfedy cf52d03
Autodetect pallets and do not segment them
elfedy bbfb7e8
Fix pallet_datahaven_native_transfer benchmarks
elfedy 04b4c97
remove pallet_session from benchmarks
elfedy f2d5eaf
make claude task folder
elfedy 9b76ec1
fix snowbridge_pallet_system benchmark
elfedy 25b0a41
fix system-v2 benchmark
elfedy d0981c4
Update ethereum-client fixtures
elfedy 6511873
Set fixture address as EthereumGatewayAddress in benchmarks
elfedy 5782755
fix pallet_inbound_queue benchmark
elfedy a72f3e7
update plan
elfedy bb7a690
Comment out failing pallets and leave TODOs
elfedy 1975cca
Add WeightInfo to pallet configs
elfedy 40f9f68
Add some missing pallets (testnet only)
elfedy 816b926
Merge branch 'main' into test/benchmark-init
elfedy 1744012
update pallet system v2 benchmarks
elfedy f1bb468
Add missing method to snowbridge_pallet_inbound_queue_v2 benchmark
elfedy 8a8ad58
Add outbound_queue_v2 benchmark config for other runtimes
elfedy 8e51937
Use a low existential deposit for benchmarks
elfedy 422b28c
use generated weights in all runtimes
elfedy 1ff9950
cargo fmt
elfedy e8f4f52
Remove frame_benchmarking weights
elfedy d92d370
Remove claude task
elfedy b1b5b28
use correct trait type for frame_system weight
elfedy bdef2d4
fix native transfer benchmark for real
elfedy 0dcb9e7
Implement custom weight to fee implementation
elfedy 7970f40
add transaction_payment fix to stagenet/mainnet
elfedy e85cfe9
Add note about runtime-benchmarks existential deposit
elfedy 33580e5
generate papi metadata
elfedy 1091a06
remove unused import
elfedy 2730a59
Merge branch 'main' into test/benchmark-init
elfedy e4d10ea
Add a comment for system pallets
elfedy 1263431
fix benchmark script
elfedy 7dabde5
Merge branch 'fixing-benchmarks' into test/benchmark-init
elfedy 5238cfc
Add benchmarking section to operator README
elfedy 4005a99
Merge branch 'main' into test/benchmark-init
ahmadkaouk e5abba1
Merge branch 'main' into test/benchmark-init
TDemeco 669c0ab
update polkadot stable2412 to the lastest
undercover-cactus 32d30fc
update README instruction for benchmark
undercover-cactus 9f64e18
reactivate IAmOnline pallet
undercover-cactus 6ec23f8
try to implement benchmark_helper function
undercover-cactus db97297
fix: :bug: update `pallet-identity` benchmark helper function
TDemeco c13142e
use types defined by config
undercover-cactus 679328a
Merge branch 'main' into test/benchmark-init
undercover-cactus 87dab64
new weights generated
undercover-cactus 3759f9c
Missing sp-io lib in stagenet and mainnet runtime
undercover-cactus 94a7465
regenerate metadata again
undercover-cactus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| {{header}} | ||
|
|
||
| //! Autogenerated weights for `{{pallet}}` | ||
| //! | ||
| //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION {{version}} | ||
| //! DATE: {{date}}, STEPS: `{{cmd.steps}}`, REPEAT: `{{cmd.repeat}}`, LOW RANGE: `{{cmd.lowest_range_values}}`, HIGH RANGE: `{{cmd.highest_range_values}}` | ||
| //! WORST CASE MAP SIZE: `{{cmd.worst_case_map_values}}` | ||
| //! HOSTNAME: `{{hostname}}`, CPU: `{{cpuname}}` | ||
| //! WASM-EXECUTION: {{cmd.wasm_execution}}, CHAIN: {{cmd.chain}}, DB CACHE: {{cmd.db_cache}} | ||
|
|
||
| // Executed Command: | ||
| {{#each args as |arg|}} | ||
| // {{arg}} | ||
| {{/each}} | ||
|
|
||
| #![cfg_attr(rustfmt, rustfmt_skip)] | ||
| #![allow(unused_parens)] | ||
| #![allow(unused_imports)] | ||
|
|
||
| use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; | ||
| use sp_std::marker::PhantomData; | ||
|
|
||
| /// Weights for `{{pallet}}`. | ||
| pub struct WeightInfo<T>(PhantomData<T>); | ||
| {{#if (eq pallet "frame_system_extensions")}} | ||
| impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for WeightInfo<T> { | ||
| {{else}} | ||
| impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> { | ||
| {{/if}} | ||
| {{#each benchmarks as |benchmark|}} | ||
| {{#each benchmark.comments as |comment|}} | ||
| /// {{comment}} | ||
| {{/each}} | ||
| {{#each benchmark.component_ranges as |range|}} | ||
| /// The range of component `{{range.name}}` is `[{{range.min}}, {{range.max}}]`. | ||
| {{/each}} | ||
| fn {{benchmark.name~}} | ||
| ( | ||
| {{~#each benchmark.components as |c| ~}} | ||
| {{~#if (not c.is_used)}}_{{/if}}{{c.name}}: u32, {{/each~}} | ||
| ) -> Weight { | ||
| // Proof Size summary in bytes: | ||
| // Measured: `{{benchmark.base_recorded_proof_size}}{{#each benchmark.component_recorded_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}` | ||
| // Estimated: `{{benchmark.base_calculated_proof_size}}{{#each benchmark.component_calculated_proof_size as |cp|}} + {{cp.name}} * ({{cp.slope}} ±{{underscore cp.error}}){{/each}}` | ||
| // Minimum execution time: {{underscore benchmark.min_execution_time}}_000 picoseconds. | ||
| Weight::from_parts({{underscore benchmark.base_weight}}, {{benchmark.base_calculated_proof_size}}) | ||
| {{#each benchmark.component_weight as |cw|}} | ||
| // Standard Error: {{underscore cw.error}} | ||
| .saturating_add(Weight::from_parts({{underscore cw.slope}}, 0).saturating_mul({{cw.name}}.into())) | ||
| {{/each}} | ||
| {{#if (ne benchmark.base_reads "0")}} | ||
| .saturating_add(T::DbWeight::get().reads({{benchmark.base_reads}}_u64)) | ||
| {{/if}} | ||
| {{#each benchmark.component_reads as |cr|}} | ||
| .saturating_add(T::DbWeight::get().reads(({{cr.slope}}_u64).saturating_mul({{cr.name}}.into()))) | ||
| {{/each}} | ||
| {{#if (ne benchmark.base_writes "0")}} | ||
| .saturating_add(T::DbWeight::get().writes({{benchmark.base_writes}}_u64)) | ||
| {{/if}} | ||
| {{#each benchmark.component_writes as |cw|}} | ||
| .saturating_add(T::DbWeight::get().writes(({{cw.slope}}_u64).saturating_mul({{cw.name}}.into()))) | ||
| {{/each}} | ||
| {{#each benchmark.component_calculated_proof_size as |cp|}} | ||
| .saturating_add(Weight::from_parts(0, {{cp.slope}}).saturating_mul({{cp.name}}.into())) | ||
| {{/each}} | ||
| {{#if (and (eq ../pallet "pallet_proxy") (eq benchmark.name "proxy"))}} | ||
| // 1 DB read that happen when filtering the proxy call transaction | ||
| .saturating_add(T::DbWeight::get().reads(1)) | ||
| {{/if}} | ||
| {{#if (and (eq ../pallet "pallet_precompile_benchmarks") (eq benchmark.name "p256_verify"))}} | ||
| // TODO: Remove this multiplication once we are comfortable with the weight estimation | ||
| // Double the weight just to mitigate the possibility of having a signature that | ||
| // takes longer to verify | ||
| .saturating_mul(1u64) | ||
| {{/if}} | ||
| } | ||
| {{/each}} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.