Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(476)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 10263043: code review 10263043: testing: use -bench flag and fix flags doc link

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by dpiddy
Modified:
12 years, 5 months ago
Reviewers:
r
CC:
golang-dev, r, kr
Visibility:
Public.
testing: use -bench flag and fix flags doc link

Patch Set 1 : diff -r 4068527655f3 https://code.google.com/p/go/ #

Patch Set 2 : diff -r 4068527655f3 https://code.google.com/p/go/ #

Total comments: 3

Patch Set 3 : diff -r 71375a634b9a https://code.google.com/p/go/ #

Patch Set 4 : diff -r 71375a634b9a https://code.google.com/p/go/ #

Created: 12 years, 7 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/pkg/testing/testing.go View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
Total messages: 12
|
dpiddy
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 7 months ago (2013年06月14日 17:58:19 UTC) #1
Hello golang-dev@googlegroups.com,
I'd like you to review this change to
https://code.google.com/p/go/ 
Sign in to reply to this message.
r
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#newcode26 src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are run ...
12 years, 7 months ago (2013年06月14日 18:10:37 UTC) #2
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go
File src/pkg/testing/testing.go (right):
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#...
src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are
run sequentially.
the flag is called test.bench.
Sign in to reply to this message.
dpiddy
On 2013年06月14日 18:10:37, r wrote: > the flag is called test.bench. I think I understand ...
12 years, 7 months ago (2013年06月14日 19:11:37 UTC) #3
On 2013年06月14日 18:10:37, r wrote:
> the flag is called test.bench.
I think I understand now how flags to `go test` are passed to the testing binary
and that's what would make `go test -test.bench .` work. If it helps, two things
that led to me thinking this snippet was incorrect were:
* `go test -test.bench` spitting out the `go help` output since I didn't have a
regex
* `go help testflag` listing `-bench` directly
Happy to remove that change if there's nothing salvageable, or add some more
description if it would be helpful. There are example benchmark functions,
perhaps adding an example run of `go test` would be good?
Sign in to reply to this message.
r
From this package's point of view, the flag is called test.bench. You can see the ...
12 years, 7 months ago (2013年06月14日 19:26:46 UTC) #4
From this package's point of view, the flag is called test.bench. You can see
the declaration. The go test command provides a convenient shortcut by letting
you drop the "test.", but it's a property of go test, not of this package.
Sign in to reply to this message.
kr
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#newcode26 src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are run ...
12 years, 7 months ago (2013年06月14日 20:14:32 UTC) #5
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go
File src/pkg/testing/testing.go (right):
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#...
src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are
run sequentially.
s/the -bench/its -bench/
Sign in to reply to this message.
r
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go File src/pkg/testing/testing.go (right): https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#newcode26 src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are run ...
12 years, 7 months ago (2013年06月14日 20:20:21 UTC) #6
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go
File src/pkg/testing/testing.go (right):
https://codereview.appspot.com/10263043/diff/5001/src/pkg/testing/testing.go#...
src/pkg/testing/testing.go:26: // the -bench flag is provided. Benchmarks are
run sequentially.
On 2013年06月14日 20:14:32, kr wrote:
> s/the -bench/its -bench/
nice solution. +1
Sign in to reply to this message.
dpiddy
Hello golang-dev@googlegroups.com, r@golang.org, kr@xph.us (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2013年06月14日 20:24:29 UTC) #7
Sign in to reply to this message.
r
LGTM
12 years, 7 months ago (2013年06月14日 20:25:29 UTC) #8
LGTM
Sign in to reply to this message.
r
Please sign the CLA as explained in http://golang.org/doc/contribute.html#copyright
12 years, 7 months ago (2013年06月14日 20:28:52 UTC) #9
Please sign the CLA as explained in
http://golang.org/doc/contribute.html#copyright 
Sign in to reply to this message.
dpiddy
On 2013年06月14日 20:28:52, r wrote: > Please sign the CLA as explained in > http://golang.org/doc/contribute.html#copyright ...
12 years, 6 months ago (2013年06月17日 13:27:18 UTC) #10
On 2013年06月14日 20:28:52, r wrote:
> Please sign the CLA as explained in
> http://golang.org/doc/contribute.html#copyright
Just in case it needs stating: I did that.
Sign in to reply to this message.
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=f321ae0dd9c9 *** testing: use -bench flag and fix flags doc link R=golang-dev, ...
12 years, 6 months ago (2013年06月17日 14:32:35 UTC) #11
*** Submitted as https://code.google.com/p/go/source/detail?r=f321ae0dd9c9 ***
testing: use -bench flag and fix flags doc link
R=golang-dev, r, kr
CC=golang-dev
https://codereview.appspot.com/10263043
Committer: Brad Fitzpatrick <bradfitz@golang.org>
Sign in to reply to this message.
remyoudompheng
R=close
12 years, 5 months ago (2013年07月20日 20:03:22 UTC) #12
R=close
Sign in to reply to this message.
|
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /