mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
650160e36a
commit
74a1a8ae5f
2 changed files with 58 additions and 6 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue