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 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.benchmemoption.

Installation

$ go install github /open2b/bench2json

Usage

  • -hprints the help

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

    Eg: -i=Scriggo,Yaegi

  • -pfilter the benchmarks by program name

Usage example:

$ gotest-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