testing: add memory allocation stats to benchmark

R=rsc, nigeltao, dave, bradfitz, r, rogpeppe
CC=golang-dev
https://golang.org/cl/6497084
This commit is contained in:
Eric Roshan-Eisner 2012-09-24 15:03:16 -04:00 committed by Russ Cox
parent 650160e36a
commit 74a1a8ae5f
2 changed files with 58 additions and 6 deletions

View file

@ -13,7 +13,7 @@
// Functions of the form
// func BenchmarkXxx(*testing.B)
// are considered benchmarks, and are executed by the "go test" command when
// the -test.bench flag is provided.
// the -test.bench flag is provided. Benchmarks are run sequentially.
//
// A sample benchmark function looks like this:
// func BenchmarkHello(b *testing.B) {