bench2json

command module
v0.0.0-...-9547042 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL