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

Issue 20997003: move intensive computing/rendering from bench constructor to onPreDraw. (Closed)

Created:
7 years, 4 months ago by yunchao
Modified:
7 years, 4 months ago
Visibility:
Public.

Description

When skia run bench cases to test performance, it will run constructors for all cases one by one, then getName to skip unnecessary cases according to command line parameters, so these constructors should be lightweight enough to avoid redundant computing. Unfortunately, some constructors contain intensive computing/rendering. They are very heavy, maybe much heavier than need-to-run bench case itself. And these redundant computation will be run every time you run bench, even you just test a single simple case. Moreover, it will mislead the real hotspot/bottleneck of the case itself. For example, run a lightweight case, say, region_intersectsrgn_16, the hot spots are gles operation, SuperBlitter, SkRTree... introduced by irrelevant cases' constructors. These redundant computation will mislead performance tuning. So we can move these intensive computation to onPreDraw() of these case. They will be executed only if this case should be run. Committed: http://code.google.com/p/skia/source/detail?r=10486

Patch Set 1 #

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -66 lines) Patch
M bench/BitmapRectBench.cpp View 1 2 3 chunks +20 lines, -17 lines 0 comments Download
M bench/RTreeBench.cpp View 1 2 6 chunks +22 lines, -19 lines 0 comments Download
M bench/RepeatTileBench.cpp View 1 2 3 chunks +39 lines, -30 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yunchao
7 years, 4 months ago (2013-07-29 10:02:55 UTC) #1
robertphillips
lgtm + nits (most of them aren't yours at all but it would be nice ...
7 years, 4 months ago (2013-07-29 11:57:10 UTC) #2
tomhudson
Before we land this I wanted to dig through history, but it looks like git ...
7 years, 4 months ago (2013-07-29 12:33:24 UTC) #3
yunchao
On 2013/07/29 11:57:10, robertphillips wrote: > lgtm + nits (most of them aren't yours at ...
7 years, 4 months ago (2013-07-30 03:11:20 UTC) #4
yunchao
On 2013/07/29 12:33:24, tomhudson wrote: > Before we land this I wanted to dig through ...
7 years, 4 months ago (2013-07-30 03:26:12 UTC) #5
tomhudson
On 2013/07/30 03:26:12, yunchao wrote: > It is a good design, we should place > ...
7 years, 4 months ago (2013-07-30 07:16:06 UTC) #6
yunchao
On 2013/07/30 07:16:06, tomhudson wrote: > On 2013/07/30 03:26:12, yunchao wrote: > > > It ...
7 years, 4 months ago (2013-08-01 02:18:15 UTC) #7
reed1
lgtm
7 years, 4 months ago (2013-08-01 14:27:23 UTC) #8
robertphillips
lgtm
7 years, 4 months ago (2013-08-01 14:39:26 UTC) #9
yunchao
On 2013/08/01 14:39:26, robertphillips wrote: > lgtm Hi, robertphillips or other reviewers, could you help ...
7 years, 4 months ago (2013-08-01 15:34:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/yunchao.he@intel.com/20997003/12001
7 years, 4 months ago (2013-08-01 15:36:24 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-01 15:58:11 UTC) #12
Message was sent while issue was closed.
Change committed as 10486

Powered by Google App Engine
This is Rietveld 408576698