Hardhat 3's built-in gas statistics feature has been released! Give it a try npx hardhat test --gas-stats