Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Go
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Stiemerling
Go
Commits
b7cbfe6a
Commit
b7cbfe6a
authored
12 years ago
by
Francesc Campoy
Browse files
Options
Downloads
Patches
Plain Diff
testing: document -test.bench flag
Fixes #4080. R=rsc, adg CC=golang-dev
https://golang.org/cl/6553068
parent
54af7528
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pkg/testing/testing.go
+3
-0
3 additions, 0 deletions
src/pkg/testing/testing.go
with
3 additions
and
0 deletions
src/pkg/testing/testing.go
+
3
−
0
View file @
b7cbfe6a
...
@@ -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) {
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment