Go to file
David Lazar 981a3bf009 build: return correct iteration count
Fixes golang/go#19034.

Change-Id: Idfb9d764bb4d8362c9837f6d177f0829a72e1365
Reviewed-on: https://go-review.googlesource.com/37238
Run-TryBot: David Lazar <lazard@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
2017-02-20 03:59:32 +00:00
build build: return correct iteration count 2017-02-20 03:59:32 +00:00
driver driver: report benchmem in benchmark name 2017-01-31 18:59:17 +00:00
garbage driver: report benchmem in benchmark name 2017-01-31 18:59:17 +00:00
http all: report in standard benchmark format 2017-01-31 18:59:13 +00:00
json all: report in standard benchmark format 2017-01-31 18:59:13 +00:00
.gitignore convert .hgignore to .gitignore. 2014-12-08 18:08:11 +11:00
AUTHORS
CONTRIBUTING.md doc: add CONTRIBUTING.md 2015-02-18 23:41:36 +00:00
CONTRIBUTORS
LICENSE LICENSE: add 2012-03-17 15:20:58 +11:00
PATENTS go.empty: add PATENTS file to the subrepo. 2012-04-16 11:24:04 +10:00
README all: bring README up-to-date 2017-01-31 19:43:42 +00:00
codereview.cfg benchmarks: add codereview.cfg 2015-03-18 17:04:32 +00:00

README

This subrepository holds macro-benchmarks used for Go performance
development and monitoring.

Each benchmark is compiled into a separate binary. To build and
install them all in the current directory, execute:

	$ GOBIN=$PWD go get golang.org/x/benchmarks/...

To run a benchmark, simply execute its binary.

Each binary has a number of flags to control benchmark duration, etc.
Run with '-help' to get the full list of flags.

When the benchmarking finishes, the binary prints results in the
standard Go benchmark format [1]:

	$ garbage
	BenchmarkGarbage/benchmem-MB=64-4     2000	   6443223 ns/op	   6008832 GC-bytes-from-system	    230521 STW-ns/GC	     15329 STW-ns/op	   2780501 allocated-bytes/op	     68636 allocs/op	 119041368 bytes-from-system	 104202240 heap-bytes-from-system	   8109400 other-bytes-from-system	 112427008 peak-RSS-bytes	 121511936 peak-VM-bytes	    720896 stack-bytes-from-system	  25194000 user+sys-ns/op

This format can be processed by tools like benchstat
(https://golang.org/x/perf/cmd/benchstat) and benchplot
(https://godoc.org/github.com/aclements/go-misc/benchplot).

To submit changes to this repository, see http://golang.org/doc/contribute.html.

[1] https://github.com/golang/proposal/blob/master/design/14313-benchmark-format.md