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

Issue 918673002: Adding new benchmark to test image decoding performance. (Closed)

Created:
5 years, 10 months ago by msarett
Modified:
5 years, 4 months ago
Reviewers:
reed, djsollen, caryclark, scroggo, _cary, mtklein
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Adding new benchmark to test image decoding performance. BUG=skia: Committed: https://skia.googlesource.com/skia/+/95f192d19938b98a45dd1fa4112d965f60d10516

Patch Set 1 #

Total comments: 26

Patch Set 2 : Image decode benchmarking code (revision 2) #

Total comments: 19

Patch Set 3 : Finer grained benchmarking and subset decode benchmarking #

Patch Set 4 : Missed a few minor comments (sorry!) #

Total comments: 11

Patch Set 5 : Fail less loudly, subset error message only printed once. #

Total comments: 2

Patch Set 6 : Better version of fine-graining #

Patch Set 7 : Build tile failing is not an error #

Total comments: 4

Patch Set 8 : Duplicate stream before calling bTI #

Total comments: 1

Patch Set 9 : Removed unused variable #

Patch Set 10 : Added include #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -147 lines) Patch
D bench/DecodeBench.cpp View 1 1 chunk +0 lines, -50 lines 0 comments Download
A bench/DecodingBench.h View 1 2 3 4 5 1 chunk +35 lines, -0 lines 0 comments Download
A bench/DecodingBench.cpp View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A bench/DecodingSubsetBench.h View 1 2 3 4 5 6 7 1 chunk +37 lines, -0 lines 0 comments Download
A bench/DecodingSubsetBench.cpp View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
D bench/ImageDecodeBench.cpp View 1 1 chunk +0 lines, -93 lines 0 comments Download
M bench/nanobench.cpp View 1 2 3 4 5 6 7 8 9 7 chunks +104 lines, -1 line 0 comments Download
M dm/DM.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M gyp/bench.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 2 3 4 2 chunks +0 lines, -2 lines 0 comments Download
M gyp/iOSShell.gyp View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M tools/flags/SkCommonFlags.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M tools/flags/SkCommonFlags.cpp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (9 generated)
msarett
Performance Benchmark for Image Decoding - Runs a benchmark to test the decode performance for ...
5 years, 10 months ago (2015-02-11 18:41:42 UTC) #2
mtklein
https://codereview.chromium.org/918673002/diff/1/bench/SKDBench.cpp File bench/SKDBench.cpp (right): https://codereview.chromium.org/918673002/diff/1/bench/SKDBench.cpp#newcode28 bench/SKDBench.cpp:28: return backend == kNonRendering_Backend; Seems like we might want ...
5 years, 10 months ago (2015-02-11 19:15:37 UTC) #3
scroggo
https://codereview.chromium.org/918673002/diff/1/bench/SKDBench.cpp File bench/SKDBench.cpp (right): https://codereview.chromium.org/918673002/diff/1/bench/SKDBench.cpp#newcode19 bench/SKDBench.cpp:19: , fColorType(colorType) { I don't think we've made it ...
5 years, 10 months ago (2015-02-11 19:38:10 UTC) #4
msarett
I made the edits suggested by mtklein and scroggo. I think there are some significant ...
5 years, 10 months ago (2015-02-11 21:57:01 UTC) #5
mtklein
lgtm Please make sure Leon's happy with it too! https://codereview.chromium.org/918673002/diff/20001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/20001/bench/nanobench.cpp#newcode35 bench/nanobench.cpp:35: ...
5 years, 10 months ago (2015-02-12 00:29:35 UTC) #6
scroggo
https://codereview.chromium.org/918673002/diff/20001/bench/DecodingBench.cpp File bench/DecodingBench.cpp (right): https://codereview.chromium.org/918673002/diff/20001/bench/DecodingBench.cpp#newcode26 bench/DecodingBench.cpp:26: case kN32_SkColorType: Skia coding style dictates this should be ...
5 years, 10 months ago (2015-02-12 14:19:02 UTC) #7
mtklein
https://codereview.chromium.org/918673002/diff/20001/bench/DecodingBench.cpp File bench/DecodingBench.cpp (right): https://codereview.chromium.org/918673002/diff/20001/bench/DecodingBench.cpp#newcode55 bench/DecodingBench.cpp:55: } On 2015/02/12 14:19:02, scroggo wrote: > Didn't Mike ...
5 years, 10 months ago (2015-02-12 14:41:38 UTC) #8
scroggo
Adding Cary for insight into iOSShell.gyp. https://codereview.chromium.org/918673002/diff/20001/gyp/bench.gyp File gyp/bench.gyp (right): https://codereview.chromium.org/918673002/diff/20001/gyp/bench.gyp#newcode12 gyp/bench.gyp:12: '../bench/DecodingBench.cpp', On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 15:00:18 UTC) #10
_cary
https://codereview.chromium.org/918673002/diff/20001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/20001/bench/nanobench.cpp#newcode498 bench/nanobench.cpp:498: { kN32_SkColorType, kRGB_565_SkColorType, kAlpha_8_SkColorType }; make this const https://codereview.chromium.org/918673002/diff/20001/bench/nanobench.cpp#newcode597 ...
5 years, 10 months ago (2015-02-12 15:18:05 UTC) #12
msarett
Patch 4 Includes: Edits from suggestions in patch 2. Finer grained benchmarking of the decode ...
5 years, 10 months ago (2015-02-12 18:52:56 UTC) #14
msarett
https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp#newcode632 bench/nanobench.cpp:632: SkDebugf("Subset decoding is not supported for %s\n", Forgot to ...
5 years, 10 months ago (2015-02-12 18:57:06 UTC) #15
mtklein
https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp#newcode632 bench/nanobench.cpp:632: SkDebugf("Subset decoding is not supported for %s\n", On 2015/02/12 ...
5 years, 10 months ago (2015-02-12 19:28:56 UTC) #16
msarett
Fail less loudly, subset error message only printed once. https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/60001/bench/nanobench.cpp#newcode632 bench/nanobench.cpp:632: ...
5 years, 10 months ago (2015-02-12 19:42:51 UTC) #17
scroggo
https://codereview.chromium.org/918673002/diff/60001/bench/DecodingBench.cpp File bench/DecodingBench.cpp (right): https://codereview.chromium.org/918673002/diff/60001/bench/DecodingBench.cpp#newcode52 bench/DecodingBench.cpp:52: SkAutoTDelete<SkStreamRewindable> stream( I was thinking more like what DM ...
5 years, 10 months ago (2015-02-12 19:53:29 UTC) #18
msarett
Feels like we are getting closer. I think the big outstanding question is the possible ...
5 years, 10 months ago (2015-02-12 22:05:46 UTC) #19
scroggo
On 2015/02/12 22:05:46, msarett wrote: > It is true that we have similar code in ...
5 years, 10 months ago (2015-02-13 13:41:31 UTC) #20
msarett
Fixed comments from scroggo https://codereview.chromium.org/918673002/diff/120001/bench/DecodingSubsetBench.cpp File bench/DecodingSubsetBench.cpp (right): https://codereview.chromium.org/918673002/diff/120001/bench/DecodingSubsetBench.cpp#newcode62 bench/DecodingSubsetBench.cpp:62: fDecoder->buildTileIndex(fStream, &w, &h); On 2015/02/13 ...
5 years, 10 months ago (2015-02-13 14:20:02 UTC) #21
scroggo
lgtm https://codereview.chromium.org/918673002/diff/140001/bench/nanobench.cpp File bench/nanobench.cpp (right): https://codereview.chromium.org/918673002/diff/140001/bench/nanobench.cpp#newcode593 bench/nanobench.cpp:593: SkString file; This variable is unused.
5 years, 10 months ago (2015-02-13 14:33:56 UTC) #22
scroggo
On 2015/02/13 14:33:56, scroggo wrote: > lgtm > > https://codereview.chromium.org/918673002/diff/140001/bench/nanobench.cpp > File bench/nanobench.cpp (right): > ...
5 years, 10 months ago (2015-02-13 15:18:43 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918673002/160001
5 years, 10 months ago (2015-02-13 15:20:48 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu13.10-GCE-NoGPU-x86_64-Debug-Trybot/builds/2101) Test-Ubuntu13.10-GCE-NoGPU-x86_64-Release-Shared-Trybot on client.skia (JOB_FAILED, ...
5 years, 10 months ago (2015-02-13 15:22:40 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/918673002/180001
5 years, 10 months ago (2015-02-13 15:33:48 UTC) #31
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 17:05:45 UTC) #32
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://skia.googlesource.com/skia/+/95f192d19938b98a45dd1fa4112d965f60d10516

Powered by Google App Engine
This is Rietveld 408576698