Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(637)

Issue 4441078: code review 4441078: go/printer: added simple performance benchmark (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by gri
Modified:
14 years ago
Reviewers:
CC:
r, dave_cheney.net, bradfitzgoog, bradfitz, golang-dev
Visibility:
Public.

Description

go/printer: added simple performance benchmark

Patch Set 1 #

Patch Set 2 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Patch Set 5 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 6 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Patch Set 7 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Total comments: 1

Patch Set 8 : diff -r b1734b25f062 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2314 lines, -0 lines) Patch
A src/pkg/go/printer/performance_test.go View 1 2 3 4 5 6 7 1 chunk +62 lines, -0 lines 0 comments Download
A src/pkg/go/printer/testdata/parser.go View 1 2 1 chunk +2252 lines, -0 lines 0 comments Download

Messages

Total messages: 9
gri
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-04-28 22:52:15 UTC) #1
dave_cheney.net
Hi Robert, Could you use the newly created ioutil.Discard Writer in place of the bytes.Buffer? ...
14 years ago (2011-04-28 23:01:21 UTC) #2
bradfitzgoog
The nodes.go file should probably be copied into a "testdata" directory so numbers are comparable ...
14 years ago (2011-04-28 23:01:40 UTC) #3
gri
done and done; also using a larger file now. PTAL. - gri On Thu, Apr ...
14 years ago (2011-04-28 23:16:01 UTC) #4
bradfitz
LGTM
14 years ago (2011-04-28 23:27:03 UTC) #5
r
LGTM but can drop error check http://codereview.appspot.com/4441078/diff/10001/src/pkg/go/printer/performance_test.go File src/pkg/go/printer/performance_test.go (right): http://codereview.appspot.com/4441078/diff/10001/src/pkg/go/printer/performance_test.go#newcode33 src/pkg/go/printer/performance_test.go:33: if err := ...
14 years ago (2011-04-28 23:40:52 UTC) #6
gri
Apologies for the spam, but PTAL. Several corrections: - parse comments - print with same ...
14 years ago (2011-04-29 00:02:56 UTC) #7
r
LGTM http://codereview.appspot.com/4441078/diff/3005/src/pkg/go/printer/performance_test.go File src/pkg/go/printer/performance_test.go (right): http://codereview.appspot.com/4441078/diff/3005/src/pkg/go/printer/performance_test.go#newcode47 src/pkg/go/printer/performance_test.go:47: if bytes.Compare(buf.Bytes(), src) != 0 { use bytes.Equal
14 years ago (2011-04-29 00:04:52 UTC) #8
gri
14 years ago (2011-04-29 00:06:37 UTC) #9
*** Submitted as http://code.google.com/p/go/source/detail?r=a11092559c78 ***

go/printer: added simple performance benchmark

R=r, dfc, bradfitzwork, bradfitz
CC=golang-dev
http://codereview.appspot.com/4441078
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b