Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Prev Previous commit
Next Next commit
Dont add Pov overhead when all is ignored
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
  • Loading branch information
ggwpez committed Mar 30, 2023
commit 04519cb0987900fde60bc5649df0c02196bb201d
2 changes: 1 addition & 1 deletion utils/frame/benchmarking-cli/src/pallet/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ pub(crate) fn process_storage_results(
},
};
// Add the additional trie layer overhead for every new prefix.
if *reads > 0 {
if *reads > 0 && !is_all_ignored {
prefix_result.proof_size += 15 * 33 * additional_trie_layers as u32;
}
storage_per_prefix.entry(prefix.clone()).or_default().push(prefix_result);
Expand Down