go-nitro
go-nitro copied to clipboard
Record gas history in a convenient-to-consume format
The gas metrics scripts are great. Relatively low friction for good data recording on metrics we care about.
A missing piece is being able to easily view what these metrics look like over time.
Proposed:
- add
./nitro-protocol/gas-results/gasResults.csvwith headingscommit,date,deployInfrastructureContracts.satp.NitroAdjudicator,directlyFundAChannelWithETHFirst.satp,directlyFundAChannelWithETHSecond.satp,etc etc(each result from gasResults.json) - append current results to it when running
exportBenchmarkResults.ts - generate an updated graph or set of graphs from it using something like https://github.com/mcastorina/graph-cli (keep this graphic committed)
- add a CI check that
gasResults.csv:last_line:first_token == current commit hash(or otherwise do this check inside a test somewhere and fail)