cgewecke / hardhat-gas-reporter

Gas Usage Analytics for Hardhat
MIT License
411 stars 57 forks source link

Add options for measuring `eth_call` gas usage #191

Closed cgewecke closed 7 months ago

cgewecke commented 7 months ago

170

Options

Misc:

cgewecke commented 7 months ago

Markdown

Methods

Symbol Meaning
Execution gas for this method does not include intrinsic gas overhead
Cost was non-zero but below the precision setting for the currency display (see options)
Min Max L2 Avg (Exec) L1 Avg (Data) Calls chf avg
VariableCosts
       addToMap 45,059 135,939 101,859 2,742 4 0.47993
     callEmptyFn - - 211 - 1 0.00006
     callPureFnReturn - - 713 - 1 0.00021
     callViewFn - - 2,887 - 1 0.00087
       methodThatThrows - - 43,727 2,064 1 0.35130
       otherContractMethod - - 49,939 1,916 1 0.32895
       removeFromMap 25,047 36,231 29,241 2,598 4 0.43468
       sendPayment - - 33,312 2,456 1 0.41241
       transferPayment - - 33,302 2,456 1 0.41241
Wallet
     getBalance - - 317 - 1 0.00009

Deployments

Min Max L2 Avg (Exec) L1 Avg (Data) Block % chf avg
VariableCosts - - 781,011 51,201 2.6 % 8.62796
Wallet - - 213,658 13,421 0.7 % 2.26407

Solidity and Network Config

Settings Value
Solidity: version 0.8.24
Solidity: optimized false
Solidity: runs 200
Solidity: viaIR false
Block Limit 30,000,000
L1 Base Fee 79 gwei
L2 Gas Price 0.09878 gwei
Token Price 3033.95 chf/eth
Network optimism
cgewecke commented 7 months ago

Terminal

Screen Shot 2024-03-02 at 11 52 59 AM