Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 723 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 723 Bytes

bench2json

bench2json is a tool to transform the output of Go benchmarks to a JSON ready to be embedded on the scriggo.com site.

Benchmark names are expected to respect the following format:

Benchmark[INTERPRETER NAME]/[PROGRAM NAME].[FILE EXTENSION]-[PROC NUM]

the benchmarks are expected to be run with the -test.benchmem option.

Installation

$ go install github.com/open2b/bench2json

Usage

  • -h prints the help

  • -i filter the benchmarks by interpreter, accepted values are Scriggo, Yaegi, Tengo, GoLua, GopherLua and Goja.

    Eg: -i=Scriggo,Yaegi

  • -p filter the benchmarks by program name

Usage example:

$ go test -bench=. -test.benchmem | bench2json