-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
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.
Looks like a good starting point. Please add an issue to follow up on some things here.
Perhaps a TODO on top of the zstd to perhaps have the API support generating a compressed proof, so we dont assume how compression happens here?
I don't think an extrinsic has a base storage proof size. So to calculate the impact to PoV (storage proof + block size) we add:
By default, (2) can be zero, and (1) can be as small as 2 bytes and a signature. |
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
/// Median: 5_328_139 | ||
/// Std-Dev: 41749.5 | ||
/// Statistics in nanoseconds: | ||
/// Min, Max: 337_266, 439_477 |
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.
Somehow the block weights reduced a lot. This is also on master. It was fixed in Polkadot by this #12232 but not here?!
PS: I dienered Polkadot and the weights there are as expected. Not sure why just Substrate is reduced.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
fn template_rustfmt_works() { | ||
if std::env::var("BENCHMARK_OVERHEAD_RUSTFMT").is_err() { |
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.
Not sure how to handle this or if we want it.
It is pretty useful though since it is easy to mess up the template which then results in downstream fmt failure.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
Closes paritytech/polkadot-sdk#384
Adds the Storage proof size to the the overhead weight template.
New rendered
extrinsic_weights.rs
looks like this:... and
block_weights.rs
:Further changes:
calc_ref_time
{{header}}
HBS variable as it introduces an empty newline at the top of the rendered file when there is no header. Any header will be prepended directly.Open points
rustfmt
to a rendered template and checks that it would not modify it. I am fine with not merging it if that is too hacky.