Commit b7cbfe6a authored by Francesc Campoy's avatar Francesc Campoy

testing: document -test.bench flag

Fixes #4080.

R=rsc, adg
CC=golang-dev
https://golang.org/cl/6553068
parent 54af7528
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
// func BenchmarkXxx(*testing.B) // func BenchmarkXxx(*testing.B)
// are considered benchmarks, and are executed by the "go test" command when // are considered benchmarks, and are executed by the "go test" command when
// the -test.bench flag is provided. Benchmarks are run sequentially. // the -test.bench flag is provided. Benchmarks are run sequentially.
//
// For a description of the testing flags, see
// http://golang.org/cmd/go/#Description_of_testing_flags.
// //
// A sample benchmark function looks like this: // A sample benchmark function looks like this:
// func BenchmarkHello(b *testing.B) { // func BenchmarkHello(b *testing.B) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment