Questions tagged [benchmarking]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
33 views

Benchmarks not getting skipped with Err(BenchmarkError::Skip)

I am using the pallet_xcm_benchmarks, in the config for pallet_xcm_benchmarks::generic, I have used impl pallet_xcm_benchmarks::generic::Config for Runtime { fn worst_case_asset_exchange() -> ...
hooda's user avatar
  • 51
5 votes
2 answers
109 views

Runtime api not available just after client creation? Exported method is not found

I am trying to incorporate benchmark overhead command to our parachain. The issue i have is that runtime api methods are not available right away after client is created. https://github.com/mangata-...
Mateusz Nowakowski's user avatar
3 votes
0 answers
101 views

Cannot create a runtime on benchmark run

Using polkadot-v0.9.19 branch I've created benchmarks for a pallet, added it into runtime, compiled. On run of any of created benchmarks getting this error: Error: Service(Client(RuntimeApiError(...
Ivan Temchenko's user avatar
2 votes
1 answer
80 views

Is there any benchmarking tool for parachain collator node performance?

Like there is e.g. polkadot benchmark machine --chain kusama --verify-duration 60 for the relaychain, is there something similar for the parachains? If not maybe some custom tool for measuring ...
Curu's user avatar
  • 93
1 vote
0 answers
15 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) ?
SailorSnoW's user avatar
1 vote
0 answers
20 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 ...
CocDap's user avatar
  • 616
1 vote
0 answers
41 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 ...
Xavier's user avatar
  • 395
1 vote
1 answer
33 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 ...
Xavier's user avatar
  • 395
1 vote
0 answers
71 views

Error when trying to use an account in Benchmarks expected associated type, found enum `RawOrigin`

I have the following account initialisation on benchmarking.rs file. The following configuration works on mock.rs and test.rs files but getting errors in benchmarking pub(crate) fn test_pub(n: u8) -&...
not 0x12's user avatar
  • 343
1 vote
0 answers
73 views

Function or associated item cannot be called upon benchmarking

I’m trying to run benchmarks on the latest commit in this PR https://github.com/InvArch/InvArch-Node/pull/87 The pallet library pallet library is separate so the runtime depends on this latest commit ...
Kresna's user avatar
  • 71
0 votes
1 answer
25 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 ...
Benjamin Gallois's user avatar
0 votes
0 answers
19 views

How does the benchmarking code add_benchmarks! work on the runtime?

I am trying to understand the runtime-benchmarks gated code on the runtime/src/lib.rs and I realize that we need to "list" and "add" benchmarks that we want to perform : https://...
b0zero's user avatar
  • 501
0 votes
0 answers
44 views

Error: Input Runtime benchmarking wasn't enabled when building the node

I'm following along this benchmark docs to run benchmarking on my Substrate node (dependencies on branch = "polkadot-v0.9.25") with the command cargo build --release --features runtime-...
Kresna's user avatar
  • 71
0 votes
0 answers
23 views

Use sightglass for wasmtime benchmarking

Did anyone ever successfully use sightglass for benchmarking of Substrate in wasmtime? I'm trying to build the following sightglass benchmarking suite / Dockerfile: RUN echo 'APT::Install-Suggests &...
Achim's user avatar
  • 575
0 votes
0 answers
19 views

How can I get time in ms for executing pallet calls?

I'm trying to measure the time a pallet call takes, in milliseconds. So I can compare for different setups the call 'impact', for example use different numbers of collators, and gather useful data to ...
Alexandre Ribeiro's user avatar