Benchparser
Benchparser is a parser for multiple benchmark output formats
Installation
gem 'benchparser'
Usage
Golang benchmark standard output
goos: darwin
goarch: amd64
pkg: github.com/drish/parser
BenchmarkFib1-8 1000000000 2.48 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/drish/parser 9.960s
require 'benchparser'
parsed = Bp.parse(:go, data)
parsed.language # go
parsed.configs[:goos] # darwin
parsed.configs[:pkg] # darwin
parsed.functions.count # 1
parsed.functions.first[:iterations] # 1000000000
parsed.functions.first[:ns_op] # 2.48
parsed.functions.first[:bytes_op] # 0
parsed.functions.first[:allocs_op] # 0
TODO
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/drish/benchparser.