1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:44:50 -07:00

testing: use -bench flag and fix flags doc link

R=golang-dev, r, kr
CC=golang-dev
https://golang.org/cl/10263043
This commit is contained in:
Dan Peterson 2013-06-17 07:32:28 -07:00 committed by Brad Fitzpatrick
parent 7099af9213
commit 563d09cd14

View File

@ -23,10 +23,10 @@
// Functions of the form // Functions of the form
// 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. // its -bench flag is provided. Benchmarks are run sequentially.
// //
// For a description of the testing flags, see // For a description of the testing flags, see
// http://golang.org/cmd/go/#Description_of_testing_flags. // http://golang.org/cmd/go/#hdr-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) {