const NsPerOp … const MBPerS … const AllocedBytesPerOp … const AllocsPerOp … type Benchmark … // ParseLine extracts a Benchmark from a single line of testing.B // output. func ParseLine(line string) (*Benchmark, error) { … } func (b *Benchmark) parseMeasurement(quant string, unit string) { … } func (b *Benchmark) String() string { … } type Set … // ParseSet extracts a Set from testing.B output. // ParseSet preserves the order of benchmarks that have identical // names. func ParseSet(r io.Reader) (Set, error) { … }