XCM Benchmarks for Generic Instructions (#3940)
* initial stuff
* quick fixes
* move to individual tests
* dont need these
* Update benchmarking.rs
* add to westend
* make benchmarks execute
* fix compile
* add post_execute
* ClaimAsset benchmark working
* subscribe and unsubscribe benchmarks
* benchmark for initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fix spell check
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* update worst case for query_holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* move verification logic below
* introduce worst case holding to initiate reserve withdraw
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* feedback
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* Revert "cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs"
This reverts commit 277903944be620dc57d83b9bcf3b462d2fb73ab5.
* fix benchmark template
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* use response::version
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* refactor worst case holding
* cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=pallet_xcm_benchmarks::generic --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --template=./xcm/pallet-xcm-benchmarks/template.hbs --output=./runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
* fmt
* one more todo needs to be labeled
* change option to result with benchmark error
* fmt and fix import
Co-authored-by:
Parity Bot <admin@parity.io>
Showing
- polkadot/bridges/bin/rialto/runtime/src/lib.rs 0 additions, 1 deletionpolkadot/bridges/bin/rialto/runtime/src/lib.rs
- polkadot/runtime/polkadot/src/lib.rs 0 additions, 1 deletionpolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo/src/lib.rs 0 additions, 1 deletionpolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 36 additions, 3 deletionspolkadot/runtime/westend/src/lib.rs
- polkadot/runtime/westend/src/weights/xcm/mod.rs 17 additions, 16 deletionspolkadot/runtime/westend/src/weights/xcm/mod.rs
- polkadot/runtime/westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs 122 additions, 63 deletions.../westend/src/weights/xcm/pallet_xcm_benchmarks_generic.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs 13 additions, 13 deletions...ot/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs 5 additions, 1 deletionpolkadot/xcm/pallet-xcm-benchmarks/src/fungible/mock.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/generic/benchmarking.rs 318 additions, 0 deletions...dot/xcm/pallet-xcm-benchmarks/src/generic/benchmarking.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/generic/mock.rs 171 additions, 0 deletionspolkadot/xcm/pallet-xcm-benchmarks/src/generic/mock.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/generic/mod.rs 39 additions, 0 deletionspolkadot/xcm/pallet-xcm-benchmarks/src/generic/mod.rs
- polkadot/xcm/pallet-xcm-benchmarks/src/lib.rs 11 additions, 9 deletionspolkadot/xcm/pallet-xcm-benchmarks/src/lib.rs
- polkadot/xcm/pallet-xcm-benchmarks/template.hbs 15 additions, 15 deletionspolkadot/xcm/pallet-xcm-benchmarks/template.hbs
- polkadot/xcm/src/v2/traits.rs 0 additions, 1 deletionpolkadot/xcm/src/v2/traits.rs
Please register or sign in to comment