Skip to content
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

Benchmark XCM weights in a better way #989

Open
dmoka opened this issue Jan 14, 2025 · 1 comment · May be fixed by #995
Open

Benchmark XCM weights in a better way #989

dmoka opened this issue Jan 14, 2025 · 1 comment · May be fixed by #995
Assignees

Comments

@dmoka
Copy link
Contributor

dmoka commented Jan 14, 2025

image

Link1:

type Weigher = FixedWeightBounds<BaseXcmWeight, RuntimeCall, MaxInstructions>;

LInk2:

pub const BaseXcmWeight: XcmWeight = XcmWeight::from_parts(100_000_000, 0);

Most parachain uses FixedWeightBounds, but many system chains use WeightInfoBounds

It seems like we should also utilize WeightInfoBounds to have more representative weights

@dmoka
Copy link
Contributor Author

dmoka commented Jan 14, 2025

You can use pallet-xcm-benchmarks. You need to configure it in your runtime and then run benchmarks. You'll end up with these files. The generic and fungible ones are autogenerated and the mod.rs you just copy and paste, it references the correct ones

@dmoka dmoka self-assigned this Jan 15, 2025
@dmoka dmoka linked a pull request Jan 22, 2025 that will close this issue
5 tasks
@dmoka dmoka linked a pull request Jan 22, 2025 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants