Fix and modify pallet-funding benchmarks post-simplification
Why?
Our benchmarks were overtly complicated, a result of the old logic.
How?
Fix syntax for new instantiator functions
Simplify setup
Delete old logic branches (e.g. no longer "unchanged" outcome for evaluator, no more benchmark for that)
When 2 logic branches only had a small difference (e.g. 1 storage read/write), we now benchmark the worst case.
Testing?
cargo test --features runtime-benchmarksjust dry-run-benchmarks
Keep in mind you need to do a cargo clean for it to work (dunno why)
Anything Else?
Had to delete the runtime weights since the weight struct looks different. The runtime now uses the default () from the new weight file I generated in the pallet.
Soon we will generate the real pallet/runtime benchmarks in AWS
What?
Why?
How?
Testing?
cargo test --features runtime-benchmarks
just dry-run-benchmarks
Keep in mind you need to do a cargo clean for it to work (dunno why)Anything Else?
Had to delete the runtime weights since the weight struct looks different. The runtime now uses the default
()
from the new weight file I generated in the pallet.Soon we will generate the real pallet/runtime benchmarks in AWS