Erik's Security Blog Practicing Constant Vigilance

Comparing gas estimations

Many tools exist to estimate the gas consumed by a contract or piece of code. The question is, do all of these tools provide the same gas estimates when given the same code? Or are there differences?

Hardhat

Truffle

http://pitchandrolls.com/2020/01/13/solidity-how-to-estimate-gas-costs/

Remix

Brownie