Questions tagged [benchmarking]
The benchmarking tag has no usage guidance.
31
questions
7
votes
1
answer
65
views
+100
Performance tuning of Substrate node
I was recently wondering what kind of performance tuning options can be specified while building a Substrate node. Motivation for doing this is based on the benchmark I ran on machines that utilize ...
2
votes
0
answers
38
views
ink! contract extrinsics only take 10-11% block weights when stress test
I have an ink! contract project and I'm doing stress test to benchmark the performance of this ink! contract project in a production chain.
My stress test includes these steps:
Deploy ink! projects
...
5
votes
1
answer
74
views
Benchmark session pallet fails without pallet_staking
my lovely Substrate-Heros,
at the moment I try to benchmark the FRAME pallets of our custom runtime. Unfortunately, I ran into an error while benchmarking the session pallet. I copied the ...
5
votes
1
answer
54
views
Benchmark FRAME pallets
Hello Substrate Experts,
at the moment I try to figure out how to benchmark FRAME pallets for our runtime and I have basically three points that are not 100% clear to me.
Based on my understanding it'...
1
vote
2
answers
37
views
Benchmarking Mock
We’re trying to do the exact thing as referenced in How to mock trait in benchmarking, and we have implemented the struct + trait we need in our mocks, however, the benchmarks are calling the runtime ...
2
votes
1
answer
37
views
What is the possible minimum block time?
Is there a way to determine/calculate what the minimum block time would be? If not, what could we consider before lowering the block time, and how to monitor the side effects of small block time?
I ...
0
votes
0
answers
26
views
How to fix "DepositFailed" on orml_currencies while benchmarking?
I try to benchmark one extrinsic. I use the MultiReservableCurrency of orml_currencies.
GetNativeCurrencyId is T::BaseAsset::get().
orml_currencies is T::Currencies.
Consider the following in ...
4
votes
0
answers
27
views
Single node performance
I've a couple of questions:
I'm running a the node-template on a machine that has 8 cores and 64GB of RAM and its using an SSD. I have some pallets working there and I'm using the python client to ...
0
votes
0
answers
19
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 ...
2
votes
1
answer
19
views
Do benchmarks consider cached reads?
When running benchmarks do the result consider that multiple reads to the same value per block are cached as mentioned in the documentation referenced below?
If caching is not considered in the ...
1
vote
1
answer
34
views
Error: Input("InsufficientBalance") when running benchmark
Trying to benchmark an extrinsic, but I keep getting error:
./target/release/rmrk-substrate benchmark --pallet pallet-rmrk-core --extrinsic 'create_collection'
Error: Input("InsufficientBalance&...
2
votes
1
answer
29
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
14
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?
0
votes
1
answer
27
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 ...
1
vote
1
answer
34
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 ...
4
votes
1
answer
44
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 ...
1
vote
1
answer
26
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::...
1
vote
1
answer
50
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=* --...
1
vote
2
answers
56
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
...
2
votes
1
answer
73
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 {
...
1
vote
0
answers
16
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/...
2
votes
1
answer
34
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 ...
3
votes
1
answer
117
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: ...
1
vote
1
answer
30
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 ...
4
votes
2
answers
49
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
56
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 ...
0
votes
0
answers
11
views
Cannot compile pallet-collective with features=runtime-benchmarks [duplicate]
As you can see in this image, fn successful_origin does exist in the pallet-collective file and yet the error message shows a different function body. The file you see above in the screenshot is from ...
9
votes
3
answers
94
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 ...
4
votes
1
answer
39
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
83
views
Missing `successful_origin` in implementation when running runtime-benchmarks
With a fresh substrate-parachain-template
I ran cargo build --features runtime-benchmarks
I get error from a deep dependency in pallet_society, which doesnt seem relevant to the parachain-template's ...
1
vote
1
answer
39
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 ...