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

Issue 6278050: code review 6278050: go.image/tiff: add a benchmark for the encoder (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by bsiegert
Modified:
11 years, 11 months ago
Reviewers:
CC:
nigeltao, minux1, golang-dev
Visibility:
Public.

Description

go.image/tiff: add a benchmark for the encoder The idea is to see whether it is worthwhile to implement special cases. On my Mac Book Pro: BenchmarkEncode 1000 1689656 ns/op 36.69 MB/s

Patch Set 1 #

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

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

Total comments: 8

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

Total comments: 4

Patch Set 5 : diff -r 715494631546 https://code.google.com/p/go.image #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -7 lines) Patch
M tiff/writer_test.go View 1 2 3 4 3 chunks +26 lines, -7 lines 0 comments Download

Messages

Total messages: 9
bsiegert
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go.image
11 years, 11 months ago (2012-06-04 17:06:32 UTC) #1
minux1
http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go File tiff/writer_test.go (right): http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go#newcode56 tiff/writer_test.go:56: b.StartTimer() you can use b.ResetTimer() instead of StopTimer+StartTimer. http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go#newcode58 ...
11 years, 11 months ago (2012-06-04 18:09:51 UTC) #2
nigeltao
http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go File tiff/writer_test.go (right): http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go#newcode59 tiff/writer_test.go:59: err = Encode(out, img) Use ioutil.Discard instead of out. ...
11 years, 11 months ago (2012-06-05 01:12:55 UTC) #3
bsiegert
Hello nigeltao@golang.org, minux.ma@gmail.com (cc: golang-dev@googlegroups.com), Please take another look.
11 years, 11 months ago (2012-06-05 17:43:48 UTC) #4
bsiegert
http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go File tiff/writer_test.go (right): http://codereview.appspot.com/6278050/diff/5001/tiff/writer_test.go#newcode56 tiff/writer_test.go:56: b.StartTimer() On 2012/06/04 18:09:51, minux wrote: > you can ...
11 years, 11 months ago (2012-06-05 17:44:57 UTC) #5
nigeltao
http://codereview.appspot.com/6278050/diff/10001/tiff/writer_test.go File tiff/writer_test.go (right): http://codereview.appspot.com/6278050/diff/10001/tiff/writer_test.go#newcode31 tiff/writer_test.go:31: img, err := openImage(testdataDir + filename) Drop the "testdataDir". ...
11 years, 11 months ago (2012-06-06 00:04:03 UTC) #6
bsiegert
All done, PTAL. Funny that the tests still passed, "../testdata/../testdata" is the same directory. http://codereview.appspot.com/6278050/diff/10001/tiff/writer_test.go ...
11 years, 11 months ago (2012-06-06 21:02:52 UTC) #7
nigeltao
LGTM.
11 years, 11 months ago (2012-06-06 23:36:38 UTC) #8
nigeltao
11 years, 11 months ago (2012-06-06 23:41:47 UTC) #9
*** Submitted as
http://code.google.com/p/go/source/detail?r=37300243245c&repo=image ***

go.image/tiff: add a benchmark for the encoder

The idea is to see whether it is worthwhile to implement special cases.

On my Mac Book Pro:

BenchmarkEncode	    1000	   1689656 ns/op	  36.69 MB/s

R=nigeltao, minux.ma
CC=golang-dev
http://codereview.appspot.com/6278050

Committer: Nigel Tao <nigeltao@golang.org>
Sign in to reply to this message.

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