0.0
No commit activity in last 3 years
No release in over 3 years
Benchparser - benchmark output parser for multiple languages
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

Build Status Gem Version

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.