Questions tagged [benchmarking]
The benchmarking tag has no usage guidance.
124
questions
0
votes
0
answers
17
views
Did not find benchmarking metadata, Other: Exported method Benchmark_benchmark_metadata is not found
I am trying to benchmark Frame pallets for my runtime and am unsure what to add before actually benchmarking them. I am on an very old substrate release branch. With my current setup even when I try ...
0
votes
1
answer
24
views
Error when building a substrate node template with multiple balances pallet instances configured
Im getting the following Substrate Error when configuring more than 1 balances
note: multiple `impl`s satisfying `RuntimeCall: From<BalancesCall<_, _>>` found in the `my_node` crate:
...
0
votes
1
answer
22
views
Failing to run benchmarks
I'm failing to execute benchmarks on my machine while others can on the same branch, while using the same command.
I'm getting the error:
Error: Input("No benchmarks found which match your input.&...
0
votes
1
answer
24
views
Dynamic function weights
Are dynamic weights possible to implement?
When running benchmarks, the weights are returned. But there are parameters that are updateable while the blockchain is running and within on_initialize the ...
1
vote
1
answer
40
views
Best practices for generating and importing pallet weights
As far as I understand, weights for a runtime's pallets can be generated in two ways:
Altogether by using this script provided by the polkadot-sdk, with the output typically stored in the runtime ...
1
vote
1
answer
56
views
Exported method Benchmark_benchmark_metadata is not found
Upon upgrading dependencies from polkadot-v1.0.0 to polkadot-v1.3.0, we encounnter this error when we try to run benchmarks:
cargo build --release --features runtime-benchmarks
./target/release/...
0
votes
0
answers
25
views
Whitelisted keys when benchmarking extrinsic calls
There are a few storage keys that are always whitelisted before each benchmarking pallet extrinsic call (:transaction_level, :extrinsic_index, and :intrablock_entropy), apart from the whitelisted keys ...
1
vote
0
answers
31
views
Get weights data from a benchmarked pallet
Is there a way to get some informations for an already benchmarked pallet on the weights like the minimum and maximum weights that can be used for a function (worst case/best case) ?
0
votes
1
answer
39
views
Weight consumed inside the on_idle hook?
The documentation of the on_idle hook states that "Any implementation should always respect _remaining_weight and never consume (and therefore return) more than this amount."
In the ...
1
vote
0
answers
27
views
Run benchmark fail test in pallet-evm
test_benchmarks fail
Repo: https://github.com/paritytech/frontier
Command: cargo t -p pallet-evm --features runtime-benchmarks
Issue:
failures:
---- benchmarking::benchmark_tests::test_benchmarks ...
2
votes
1
answer
36
views
Witness data for Benchmarking
I have been looking into the hrmp pallets where some of the extrinsics needs to have a witness data variable provided as a parameter.
Example:
/// Total number of opening channels must be provided as ...
3
votes
2
answers
64
views
How to use bounded_vec macro in benchmarking.rs
I was using substrate-node-template, and created some benchmarking functions.
I was able to use bounded_vec macro in tests.rs but, can't able to use it in the benchmarking.rs file
my code
#![cfg(...
1
vote
0
answers
56
views
Error when trying to run benchmarks on runtime but no in test benchmarks
i´m writing benchmarks for a pallet that manages sending tokens from assets pallet from one account to other.
I have written the benchmarks and run it with no problem using the command:
cargo test -p ...
2
votes
1
answer
78
views
Testing benchmarks with V2
Im writing benchmarks for a pallet using benchmarking version 2. And it seems I cant call Pallet::<Test>::test_benchmarks_"extrinsic_name" inside of a test anymore.
Is it no longer ...
1
vote
1
answer
43
views
Weight for an extrinsic that schedule another call in the future?
I have an extrinsic for a poll that will end in the future. I used scheduller pallet to make the end of the poll execute. The end of the poll is then made by a root call.
Should I add the weight of ...