Skip to content

A tool to transform the output of go benchmarks for the scriggo site

License

Notifications You must be signed in to change notification settings

open2b/bench2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A tool to transform the output of go benchmarks for the scriggo site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages