78 - Gas Costs
Gas costs for different instructions are different depending on their computational/storage load on the client. Examples are:
- STOP, INVALID and REVERT are 0 gas
- Most arithmetic, logic and stack operations are 3-5 gas
- CALL*, BALANCE, and EXT* are 2,600 gas
- MLOAD/MSTORE/MSTORE8 are 3 gas
- SLOAD is 2,100 gas and SSTORE is 20,000 gas to set a storage slot from 0 to non-0 and 5,000 gas otherwise
- CREATE is 32,000 gas and SELFDESTRUCT is 5,000 gas
- Diff Instructions -> Diff costs
- Depends on computational/storage load