Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Issue 1160953002: Subset decoding benchmarks (Closed)

Created:
5 years, 6 months ago by msarett
Modified:
5 years, 6 months ago
Reviewers:
scroggo, emmaleer
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Subset decoding benchmarks It was my goal to create benchmarks that could measure all of the use cases that we have identified. I think single subsets, translating, and scaling are the important ones. It might be a good idea to discuss the document in greater detail as well. I just wanted to share this to aid the discussion. https://docs.google.com/a/google.com/document/d/1OxW96GDMAlw6dnzNXmiNX-F9oDBBlGXzSsgd0DMIkbI/edit?usp=sharing BUG=skia: Committed: https://skia.googlesource.com/skia/+/b23e6aa6767816ac4bc6c191e78ef62d6e765671

Patch Set 1 #

Total comments: 22

Patch Set 2 : Separate subclass for each benchmark #

Total comments: 28

Patch Set 3 : Run new subset benchmarks from nanobench #

Total comments: 14

Patch Set 4 : Added bench/subset directory #

Patch Set 5 : Tested for multiple images and multiple color types on both codec and image decoder #

Total comments: 10

Patch Set 6 : Misc fixes #

Total comments: 2

Patch Set 7 : Extra check for webp subsets #

Total comments: 4

Patch Set 8 : Added FIXME #

Unified diffs Side-by-side diffs Delta from patch set Stats (+792 lines, -160 lines) Patch
D bench/DecodingSubsetBench.h View 1 2 3 4 1 chunk +0 lines, -37 lines 0 comments Download
D bench/DecodingSubsetBench.cpp View 1 2 3 4 1 chunk +0 lines, -73 lines 0 comments Download
M bench/nanobench.cpp View 1 2 3 4 5 6 7 7 chunks +121 lines, -50 lines 0 comments Download
A bench/subset/SubsetBenchPriv.h View 1 2 3 4 1 chunk +35 lines, -0 lines 0 comments Download
A bench/subset/SubsetDivisorBench.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A bench/subset/SubsetDivisorBench.cpp View 1 2 3 4 5 6 1 chunk +129 lines, -0 lines 0 comments Download
A bench/subset/SubsetSingleBench.h View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A bench/subset/SubsetSingleBench.cpp View 1 2 3 4 5 6 1 chunk +94 lines, -0 lines 0 comments Download
A bench/subset/SubsetTranslateBench.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A bench/subset/SubsetTranslateBench.cpp View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
A bench/subset/SubsetZoomBench.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A bench/subset/SubsetZoomBench.cpp View 1 2 3 4 5 6 1 chunk +117 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (5 generated)
msarett
5 years, 6 months ago (2015-05-28 18:16:06 UTC) #2
scroggo
Oh, shoot, I thought I had sent this last night... I have some comments inline, ...
5 years, 6 months ago (2015-05-29 15:36:03 UTC) #4
msarett
I created a separate subclass for each benchmark. It looks like bench.gypi has been changed ...
5 years, 6 months ago (2015-06-01 14:03:25 UTC) #5
scroggo
On 2015/06/01 14:03:25, msarett wrote: > I created a separate subclass for each benchmark. Thanks! ...
5 years, 6 months ago (2015-06-01 17:25:15 UTC) #6
msarett
Just as you said, I felt it was useful to keep Codec and ImageDecoder in ...
5 years, 6 months ago (2015-06-01 20:37:02 UTC) #7
scroggo
FYI: I reviewed patch set 3, assuming that the code is unchanged in patch set ...
5 years, 6 months ago (2015-06-02 13:45:57 UTC) #8
msarett
Patch Set 4 contained a few changes to the include dirs in gyp/bench.gypi, but otherwise ...
5 years, 6 months ago (2015-06-02 17:14:11 UTC) #9
scroggo
https://codereview.chromium.org/1160953002/diff/100001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1160953002/diff/100001/bench/nanobench.cpp#newcode507 bench/nanobench.cpp:507: SkScanlineDecoder* scanlineDecoder = codec->getScanlineDecoder(info); If colortype is Index8, this ...
5 years, 6 months ago (2015-06-04 13:50:05 UTC) #10
msarett
Meant to publish this Friday: This isn't ready to go yet. It is currently failing ...
5 years, 6 months ago (2015-06-08 16:28:33 UTC) #12
msarett
Meant to publish this Friday: This isn't ready to go yet. It is currently failing ...
5 years, 6 months ago (2015-06-08 16:28:37 UTC) #13
scroggo
On 2015/06/08 16:28:37, msarett wrote: > Meant to publish this Friday: > > This isn't ...
5 years, 6 months ago (2015-06-08 18:06:43 UTC) #14
msarett
This check will avoid crashes for now. I filed a bug for webp subset decodes ...
5 years, 6 months ago (2015-06-08 23:40:48 UTC) #15
scroggo
lgtm https://codereview.chromium.org/1160953002/diff/160001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1160953002/diff/160001/bench/nanobench.cpp#newcode526 bench/nanobench.cpp:526: if (SkImageDecoder::kWEBP_Format == decoder->getFormat() && How is this ...
5 years, 6 months ago (2015-06-09 12:58:14 UTC) #16
msarett
https://codereview.chromium.org/1160953002/diff/160001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/1160953002/diff/160001/bench/nanobench.cpp#newcode526 bench/nanobench.cpp:526: if (SkImageDecoder::kWEBP_Format == decoder->getFormat() && On 2015/06/09 12:58:13, scroggo ...
5 years, 6 months ago (2015-06-09 20:49:54 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160953002/180001
5 years, 6 months ago (2015-06-09 20:50:20 UTC) #20
commit-bot: I haz the power
5 years, 6 months ago (2015-06-09 20:56:14 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 (id:180001) as
https://skia.googlesource.com/skia/+/b23e6aa6767816ac4bc6c191e78ef62d6e765671

Powered by Google App Engine
This is Rietveld 408576698