Questions tagged [benchmarking]
The benchmarking tag has no usage guidance.
119
questions
2
votes
1
answer
47
views
benchmark: "let i in x...y" notation - How to set i as u128?
I'm trying to use the "let i in x..y" notation while benchmarking, and ran into a problem:
the line let i in 10_000_000_000 .. 100_000_000_000 throw an error, as i is a u32, and my numbers ...
0
votes
1
answer
67
views
Range in benchmarking
What if we don't provide range inside benchmark and provide 10 in steps while running benchmark?
Is there any default range provided by framework or is there anything else will happen in this case?
1
vote
3
answers
108
views
Setting static parameter types in benchmarks
There is very little information to be found on static parameter types. All I could find is a docstring that says: In testing, StaticArgument can be altered later: StaticArgument::set(8).
I need to ...
3
votes
1
answer
98
views
Using another pallet calls for FRAME-based benchmarking
I need to mint an NFT and create metaverse for our auction pallet benchmarking. Both of these are handled by external pallet functionality and wondered if there is a FRAME-base benchmarking solution ...
5
votes
2
answers
152
views
Hardware: Benchmark Standard vs Ecosystem Nodes
During the last Substrate Builders Program Office Hours, the Mangata team raised awareness around some potential confusion around the Substrate Benchmarking System and how it is being applied in the ...
3
votes
1
answer
72
views
How to read the benchmark result?
A benchmark test for function with a param like this:
runner_execute {
let x in 1..10000000;
...
let gas_limit_call = x as u64;
}: {
...
let call_runner_results = T::Runner::...
2
votes
1
answer
85
views
Error getting benchmark list: Other: Exported method Benchmark_benchmark_metadata is not found
While trying to run benchmark with the following command, I am getting errors:
target/debug/imbue-collator benchmark --chain=pukimak.json --steps=100 --repeat=200 --pallet=proposals --extrinsic=* --...
2
votes
2
answers
62
views
How to reference the function with udf type parameters from another pallet in benchmarking
Pallet token:
#[pallet::config]
pub trait Config: frame_system::Config + pallet_balances::Config {
type TokenId: Member
+ Parameter
+ AtLeast32BitUnsigned
...
3
votes
1
answer
167
views
How to mock trait in benchmarking
Can you tell me how to mock a trait in benchmarking?
We have a pallet which takes NFTTrait as one of the configs. See below.
#[pallet::config]
pub trait Config: frame_system::Config {
...
2
votes
0
answers
30
views
pallet-society issue to build runtime-benchmarks [duplicate]
When build runtime-benchmarks, we start to having issue with pallet-society. See the error details below
error[E0046]: not all trait items implemented, missing: `successful_origin`
--> /Users/...
4
votes
1
answer
60
views
Benchmarking generates files with possibly missing or unnecessary trait impls
After building my node (tag monthly-10-2021) with --features runtime-benchmarks and/or --all-features, I tried to run benchmarks for the pallets and then use them for WeightInfo on various pallet ...
5
votes
1
answer
163
views
Unable to run election provider multiphase benchmark
I am trying to benchmark pallet_election_provider_multi_phase and after quite some time of normal running I get this error which halts the benchmark:
Running Benchmark: ...
2
votes
1
answer
43
views
How blockchain used in benchmarking of pallet? [closed]
I am implementing benchmarking and just wonder how its working.
For testing we mocking runtime.
Does it mean that data not really written into blockchain, but rather in some mock structure...?
What ...
8
votes
2
answers
200
views
Logging in benchmarking mode
I am implementing benchmark to calculate weight in my pallet and need to print some data
I was trying to use if_std println! but got nothing.
What the best way to make printouts for debugging ...
3
votes
1
answer
94
views
Error running benchmarks on substrate node
Hello guys I've been trying to benchmark my runtime but I keep stumbling on this error, so far I've tested it with balances, collective and babe, and I get the same error message. Most likely it's ...
10
votes
3
answers
282
views
How to generate `WeightInfo` for pallets?
Some pallets configure this field like so : type WeightInfo = pallet_pallet_name::weights::SubstrateWeight<Runtime>;
However I've seen some runtimes in which they have an extra WeightInfo module ...
6
votes
1
answer
112
views
How do I get weight for my pallet?
I developed a pallet with one extrinsic:
#[pallet::weight(0)]
pub fn sum(_: OriginFor<T>, values: Vec<u64>) {
// Sum up `values`
}
The Extrinsic accepts a vector and uses it. ...
3
votes
1
answer
151
views
Missing `successful_origin` in implementation when running runtime-benchmarks
With a fresh substrate-parachain-template
I ran cargo build --features runtime-benchmarks
I got errors from a deep dependency in pallet_society, which doesn't seem relevant to the parachain-template's ...
2
votes
1
answer
102
views
Error building node with benchmarking features
I get the following stacktrace while trying to build my node binary with benchmarking features.
Build command: cargo build --release --features runtime-benchmarks
error[E0046]: not all trait items ...