You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forge snapshot currently exports the median and mean gas usage for fuzz tests
this makes using forge snapshot for gas optimizing near impossible, as the numbers for fuzz tests will vary wildly even if no actual change to the contract's gas usage was made (due to the random nature of the inputs)
imo we should not show fuzz tests in the snapshots by default, and only show them if --snapshot-fuzz-tests is passed as a flag or a similar config option is set
Additional context
alternatively replace forge snapshot with #887 (my preferred choice)
The text was updated successfully, but these errors were encountered:
Component
Forge
Describe the feature you would like
forge snapshot
currently exports the median and mean gas usage for fuzz teststhis makes using
forge snapshot
for gas optimizing near impossible, as the numbers for fuzz tests will vary wildly even if no actual change to the contract's gas usage was made (due to the random nature of the inputs)imo we should not show fuzz tests in the snapshots by default, and only show them if
--snapshot-fuzz-tests
is passed as a flag or a similar config option is setAdditional context
alternatively replace
forge snapshot
with #887 (my preferred choice)The text was updated successfully, but these errors were encountered: