go-nitro icon indicating copy to clipboard operation
go-nitro copied to clipboard

Record gas history in a convenient-to-consume format

Open NiloCK opened this issue 2 years ago • 0 comments

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.csv with headings commit,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)

NiloCK avatar Jan 26 '23 15:01 NiloCK