Questions tagged [benchmarking]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
Nathan's user avatar
  • 464
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?
Pawan Bisht's user avatar
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 ...
fbielejec's user avatar
  • 331
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 ...
chexware's user avatar
  • 325
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 ...
Bernardo Rodrigues's user avatar
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::...
boundless-forest's user avatar
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=* --...
Kanthan's user avatar
  • 37
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 ...
Ben2077's user avatar
  • 21
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 { ...
Jerry Ren's user avatar
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/...
Jerry Ren's user avatar
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 ...
Purple_Turtle's user avatar
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: ...
Purple_Turtle's user avatar
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 ...
Boris Ivanov's user avatar
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 ...
Boris Ivanov's user avatar
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 ...
Purple_Turtle's user avatar
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 ...
Purple_Turtle's user avatar
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. ...
Oliver Tale-Yazdi's user avatar
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 ...
Decentration's user avatar
  • 1,356
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 ...
Dylan Verstraete's user avatar

1 2
3