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

Issue 1396113002: Renable image benchmarking (Closed)

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

Description

Renable image benchmarking - Remove --images '' to renable image benchmarking - Add a flag to disable testing JPEG's buildTileIndex, since it also leaks memory - Do not run images on GPU - Do not run large interlaced images on 32 bit bots - When buildTileIndex is not being used in the subset benches, do not use it for BRD BUG=skia:3418 BUG=skia:4469 BUG=skia:4471 BUG=skia:4360 Committed: https://skia.googlesource.com/skia/+/860e8a67190e024b7375e52e270e6bd0a17af86e

Patch Set 1 #

Patch Set 2 : Printf debugging #

Patch Set 3 : More printf debugging #

Patch Set 4 : Rebase #

Patch Set 5 : Remove removed enum #

Patch Set 6 : Use new APIs for get and skip #

Patch Set 7 : Remove debugging, rebase #

Patch Set 8 : Disable jpg in SkImageDecoder by default #

Patch Set 9 : Disable BRD benches as well #

Patch Set 10 : More fixes #

Patch Set 11 : Add all important break statement #

Patch Set 12 : Disable GPU image and interlaced on 32 bit #

Total comments: 12

Patch Set 13 : Add fixmes in response to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -12 lines) Patch
M bench/nanobench.cpp View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +31 lines, -6 lines 0 comments Download
M tools/nanobench_flags.json View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +13 lines, -4 lines 0 comments Download
M tools/nanobench_flags.py View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
scroggo
Trying again. I have fixed (/worked around) some memory leaks in the test, which should ...
5 years, 2 months ago (2015-10-13 20:39:44 UTC) #1
scroggo
On 2015/10/13 20:39:44, scroggo wrote: > Trying again. I have fixed (/worked around) some memory ...
5 years, 2 months ago (2015-10-13 20:40:18 UTC) #2
scroggo
Patch set 8 disables jpeg (in SkImageDecoder buildTileIndex) by default. Maybe that will help...?
5 years, 2 months ago (2015-10-14 20:02:01 UTC) #3
scroggo
On 2015/10/14 20:02:01, scroggo wrote: > Patch set 8 disables jpeg (in SkImageDecoder buildTileIndex) by ...
5 years, 2 months ago (2015-10-14 20:17:16 UTC) #4
scroggo
5 years, 2 months ago (2015-10-14 21:38:19 UTC) #6
scroggo
PTAL
5 years, 2 months ago (2015-10-15 14:02:45 UTC) #8
mtklein
lgtm, but I'm mostly trusting nanobench.cpp changes do what you want them to do. https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.py ...
5 years, 2 months ago (2015-10-15 14:19:52 UTC) #9
msarett
lgtm https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.json File tools/nanobench_flags.json (right): https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.json#newcode24 tools/nanobench_flags.json:24: "--scales", This is autogenerated? Does this mean that ...
5 years, 2 months ago (2015-10-15 14:20:57 UTC) #10
scroggo
https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.json File tools/nanobench_flags.json (right): https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.json#newcode24 tools/nanobench_flags.json:24: "--scales", On 2015/10/15 14:20:57, msarett wrote: > This is ...
5 years, 2 months ago (2015-10-15 14:40:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1396113002/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1396113002/230001
5 years, 2 months ago (2015-10-15 14:41:05 UTC) #14
commit-bot: I haz the power
Committed patchset #13 (id:230001) as https://skia.googlesource.com/skia/+/860e8a67190e024b7375e52e270e6bd0a17af86e
5 years, 2 months ago (2015-10-15 14:51:31 UTC) #15
msarett
https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.py File tools/nanobench_flags.py (right): https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.py#newcode85 tools/nanobench_flags.py:85: if 'x86' in bot and not 'x86-64' in bot: ...
5 years, 2 months ago (2015-10-15 14:53:17 UTC) #16
mtklein
5 years, 2 months ago (2015-10-15 15:02:56 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.json
File tools/nanobench_flags.json (right):

https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.j...
tools/nanobench_flags.json:24: "--scales",
On 2015/10/15 14:40:47, scroggo wrote:
> On 2015/10/15 14:20:57, msarett wrote:
> > This is autogenerated?
> 
> Yes.
> 
> > 
> > Does this mean that there is only one non-GPU nanobench bot?
> 
> Mike can probably answer more about this file, but I think this is generated
> file is just a sampling of what will be seen on the bots, intended to have
good
> coverage. If you look at self_test() in nanobench_flags.py, it only lists 6
bots
> total (easier to see in the py file, but it translates here, as well), and I'm
> assuming we have more than that.

Exactly correct.  We use enough test bots to get 100% coverage of
nanobench_flags.py, and hopefully no more (but they don't hurt).

https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.py
File tools/nanobench_flags.py (right):

https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.p...
tools/nanobench_flags.py:83: # the 32-bit GCE bots run out of memory in DM when
running these large images

> Google Cloud Engine (I think?).
Yep.

https://codereview.chromium.org/1396113002/diff/20002/tools/nanobench_flags.p...
tools/nanobench_flags.py:86: match.append('~interlaced1.png')
On 2015/10/15 14:40:47, scroggo wrote:
> On 2015/10/15 14:19:52, mtklein wrote:
> > Just in case it's not clear, there's nothing stopping us from putting these
> > shared bad image lists in a third .py file that both dm_flags and
> > nanobench_flags import.  Not saying we have to, but if you find it handy,
they
> > can share code / data.
> 
> I considered doing that, although I'm not sure how much overlap there will be
in
> total. DM is very specific about disabling certain modes, certain files,
certain
> platforms. Maybe we'll need to do the same with nanobench, but until it
> obviously makes things more convenient, I think this will be simpler. Added a
> FIXME, anyway.

sgtm

Powered by Google App Engine
This is Rietveld 408576698