Skip to main content
Security & testing

hardhat-gas-reporter

Debugging & inspection

Hardhat · Gas optimization · Testing

hardhat-gas-reporter is a Hardhat plugin that reports gas used by each function call and deployment while the test suite runs, with optional fiat cost estimates. Hardhat users add it when they need to see the gas impact of a change in the test output.

Related resources