Skip to content

cloud1992/solidity-gas-consumption

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The objective of this repository is to compare gas consumption of different approaches to accomplishing the same task, aiming to enhance efficiency when writing Solidity code.

You need to install Foundry: https://book.getfoundry.sh/

Test

Each case study will have a contract with different functions and we will use a test script to compare gas.

To run any test in particular you can execute:

$ forge test --match-test test-name -vv

To run all test

$ forge test -vv

Result will depend on compiler version!!!

About

Study of gas consuption in solidity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published