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 going to happen for all of the pallets:
./target/release/substrate benchmark --chain test.json --execution=wasm --wasm-execution=compiled --pallet pallet_babe --extrinsic='*' --steps 50 --repeat 20 --output weights/
2022-03-18 16:01:02 [0] đź’¸ generated 0 npos voters, 0 from validators and 0 nominators
2022-03-18 16:01:02 [0] đź’¸ generated 0 npos voters, 0 from validators and 0 nominators
Error: Input("Error getting benchmark list: Other(\"Exported method Benchmark_benchmark_metadata is not found\")")
Ideally, I would like to generate WeightInfo
for all my pallets at one go, not one by one, which is what the answers on this question state. So my understanding is I need to run this command one by one for each pallet that I've included in my runtime only if I can get this to work.
--features=runtime-benchmarks
?