bign8 / gobench

Go Test output parsing to usable JSON data-points

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoBench

License MIT Build Status codecov Go Report Card GoDoc GitHub release

Converts go unit test files to usable and trackable format.

Usage

go test -bench=. -benchmem -run=# ./... | gobench
# or
go test -bench=. -benchmem -run=# ./... | tee test.out
gobench -in test.out

Notes

  • The -race parameter slows down benchmarks substantially.
  • If tests have been run via a previous command, they can be skipped using the -run flag with an invalid name token such at -run=#.
    go test -bench=. -benchmem -run=# ./...
    

About

Go Test output parsing to usable JSON data-points

License:MIT License


Languages

Language:Go 69.3%Language:HTML 22.8%Language:CSS 3.7%Language:JavaScript 3.4%Language:Shell 0.8%