https://github.com/evilsocket/gobench
A simple bash script that does its best to automate and visualize differential benchmarking for Go projects.
https://github.com/evilsocket/gobench
Last synced: 5 months ago
JSON representation
A simple bash script that does its best to automate and visualize differential benchmarking for Go projects.
- Host: GitHub
- URL: https://github.com/evilsocket/gobench
- Owner: evilsocket
- License: gpl-3.0
- Created: 2018-04-23T17:04:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-23T17:11:51.000Z (almost 8 years ago)
- Last Synced: 2024-12-30T21:41:38.950Z (about 1 year ago)
- Language: Shell
- Size: 103 KB
- Stars: 20
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
GoBench is a simple bash script that does its best to automate and visualize differential benchmarking for Go projects.

### prepare it ...
make sure you have `git`, `go` and `benchcmp` (`go get golang.org/x/tools/cmd/benchcmp`).
### install it ...
just put the `gobench.sh` file in `/usr/local/bin` or whatever it's in your `$PATH` and make it executable:
```shell
curl -s https://raw.githubusercontent.com/evilsocket/gobench/master/gobench.sh -O /usr/local/bin/gobench
chmod +x /usr/local/bin/gobench
```
### run it ...
just `cd` into a git repository with local changes you want to benchmark against the `master` branch and run `gobench`. If you only want to
run specific benchmarks instead of the entire suite, you can use the first parameter as the `-bench` filter, for instance `gobench Something` will only run benchmarks with the string `Something` in their declaration.