ethereum / solidity-examples

Loose collection of Solidity example code
MIT License
534 stars 161 forks source link

Create the perf framework. #36

Closed androlo closed 6 years ago

androlo commented 7 years ago

Framework uses solc to compile, and ethvm (cpp-ethereum) to test gas usage of library code. Gas usage is calculated by running functions through a special test contract that extends STLPerf to make them all uniform. The functions are then executed in the vm, and the gas usage returned.

Next step - store all the results in a versiond JSON file, and add a tool to create and view diffs.

androlo commented 6 years ago

run evm. have to review but the bulk is in place, and it works.