-
Notifications
You must be signed in to change notification settings - Fork 1k
Benchmark Barrier for Accurate Weighting on Early Rejection #9808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
/cmd prdoc --audience runtime_dev --bump patch |
…time_dev --bump patch'
/cmd bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend |
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has started 🚀 See logs here |
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has failed ❌! See logs here |
} | ||
|
||
#[benchmark] | ||
fn barrier_check() -> Result<(), BenchmarkError> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@raymondkfcheung This will generate fn barrier_check
in the weight file pallet_xcm_benchmarks_generic.rs
, where and how do we want to use it then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'll replace xcm_weight
at below code in XcmExecutor::execute()
:
return Outcome::Incomplete {
used: xcm_weight, // Weight consumed before the error
error: InstructionError { index: 0, error: XcmError::Barrier }, // The error that occurred
};
/cmd bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend |
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has started 🚀 See logs here |
/cmd bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend |
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has started 🚀 See logs here |
…t_xcm_benchmarks::generic --runtime asset-hub-westend'
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
…-benchmark-barriers
All GitHub workflows were cancelled due to failure one of the required jobs. |
/cmd bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend |
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has started 🚀 See logs here |
…t_xcm_benchmarks::generic --runtime asset-hub-westend'
Command "bench --pallet pallet_xcm_benchmarks::generic --runtime asset-hub-westend" has finished ✅ See logs here Subweight results:
Command output:✅ Successful benchmarks of runtimes/pallets: |
This PR improves the weight accounting for XCMs that are rejected early by
Barrier
.Addresses #7965