You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`benchparse` is a lightweight tool for processing the raw output of golang benchmark runs into useful csvs.
4
+
5
+
The expected workflow:
6
+
```sh
7
+
go test -bench=. -count=2 -run=^a > all-benchmark-outputs.out
8
+
benchparse all-benchmark-outputs.out out.csv
9
+
```
10
+
11
+
Three derivative values useful for analysis are generated from the benchmark raw outputs: gas cost, effective runtime and time / 1000. Gas cost is derived from constants kept in this package reflecting current network gas pricing. time/1000 gives the benchmark runtime of one operation since each benchmark value is taken from 1000 iterations of a benchmark. Effective runtime is the sum of one operation's benchmark runtime and the expected runtime of the gets and puts geneated by that operation when persisting to disk. Get and put runtime estimations are just gas cost / 10 since 10 gas correspond to 1 nanosecond.
0 commit comments