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

Issue 200253002: Make canvas perf tests run less than 6 sec. (Closed)

Created:
6 years, 9 months ago by dshwang
Modified:
6 years, 9 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make canvas perf tests run less than 6 sec. Perf tests in PerformanceTests/Canvas usually run 6 times; 1 for warm-up, 5 for data. Currently, upload-canvas-2d-to-texture.html takes ~72 sec on Intel Ivy Bridge. If we have Android perf bot, this perf test takes huge time. upload-canvas-2d-to-texture.html calls glTexImage2d() 1000 times per one run. Ivy Bridge without Accelerated 2D Canvas can call glTexImage2d() ~85 times/sec, so one run takes 12 sec, and 6 runs take 72 sec. This CL limits 1 sec per one run for all canvas perf tests. To apply common logic to 6 tests, this CL introduces canvas_runner.js, which is a wrapper of PerformanceTests/resources/runner.js. canvas_runner.js makes sure that one run takes less than 1 sec. The algorithm is min(1 sec, time to call api 1000 times). This CL effects test results slightly, because now upload-canvas-2d-to-texture.html takes 6 sec, instead of 72 sec. BUG=242244 NOTRY=true Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170288

Patch Set 1 #

Patch Set 2 : Improve more #

Total comments: 3

Patch Set 3 : Introduce canvas_runner.js to remove duplicated code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -136 lines) Patch
M PerformanceTests/Canvas/draw-dynamic-canvas-2d-to-hw-accelerated-canvas-2d.html View 1 2 2 chunks +12 lines, -23 lines 0 comments Download
M PerformanceTests/Canvas/draw-dynamic-webgl-to-hw-accelerated-canvas-2d.html View 1 2 2 chunks +13 lines, -24 lines 0 comments Download
M PerformanceTests/Canvas/draw-static-canvas-2d-to-hw-accelerated-canvas-2d.html View 1 2 2 chunks +11 lines, -22 lines 0 comments Download
M PerformanceTests/Canvas/draw-static-webgl-to-hw-accelerated-canvas-2d.html View 1 2 2 chunks +12 lines, -23 lines 0 comments Download
A PerformanceTests/Canvas/resources/canvas_runner.js View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M PerformanceTests/Canvas/upload-canvas-2d-to-texture.html View 1 2 3 chunks +19 lines, -22 lines 0 comments Download
M PerformanceTests/Canvas/upload-webgl-to-texture.html View 1 2 3 chunks +18 lines, -22 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
dshwang
It's follow-up CL of junj@'s http://crrev.com/19607004
6 years, 9 months ago (2014-03-14 11:58:03 UTC) #1
dshwang
Currently, two tests set 100, and four tests set 1000. draw-dynamic-canvas-2d-to-hw-accelerated-canvas-2d.html:var MEASURE_DRAW_TIMES = 1000; draw-dynamic-webgl-to-hw-accelerated-canvas-2d.html:var ...
6 years, 9 months ago (2014-03-14 12:02:31 UTC) #2
Ken Russell (switch to Gerrit)
Reducing the number of iterations will increase the noise of the benchmark. Have you measured ...
6 years, 9 months ago (2014-03-15 00:01:48 UTC) #3
dshwang
On 2014/03/15 00:01:48, Ken Russell wrote: > Reducing the number of iterations will increase the ...
6 years, 9 months ago (2014-03-15 18:47:16 UTC) #4
Ken Russell (switch to Gerrit)
+tonyg as I don't know how these performance tests are run or on what machines. ...
6 years, 9 months ago (2014-03-17 06:03:24 UTC) #5
dshwang
On 2014/03/17 06:03:24, Ken Russell wrote: > +tonyg as I don't know how these performance ...
6 years, 9 months ago (2014-03-17 16:29:45 UTC) #6
Ken Russell (switch to Gerrit)
On 2014/03/17 16:29:45, dshwang wrote: > On 2014/03/17 06:03:24, Ken Russell wrote: > > > ...
6 years, 9 months ago (2014-03-17 16:42:17 UTC) #7
dshwang
On 2014/03/17 16:42:17, Ken Russell wrote: > Where does the hook happen? I looked through ...
6 years, 9 months ago (2014-03-17 19:10:58 UTC) #8
dshwang
Hi, I introduce canvas_runner.js to remove duplicated code. Could you review again?
6 years, 9 months ago (2014-03-25 20:31:05 UTC) #9
Ken Russell (switch to Gerrit)
That's very nice. Thank you for doing this cleanup and such a thorough job. LGTM
6 years, 9 months ago (2014-03-27 18:02:38 UTC) #10
dshwang
On 2014/03/27 18:02:38, Ken Russell wrote: > That's very nice. Thank you for doing this ...
6 years, 9 months ago (2014-03-27 18:25:04 UTC) #11
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 9 months ago (2014-03-27 18:25:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/200253002/40001
6 years, 9 months ago (2014-03-27 18:25:30 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 19:37:56 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 19:37:57 UTC) #15
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 9 months ago (2014-03-27 19:38:53 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/200253002/40001
6 years, 9 months ago (2014-03-27 19:38:58 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 21:36:21 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 21:36:21 UTC) #19
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 9 months ago (2014-03-27 21:52:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/200253002/40001
6 years, 9 months ago (2014-03-27 21:52:16 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-27 23:02:38 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_dbg
6 years, 9 months ago (2014-03-27 23:02:38 UTC) #23
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 9 months ago (2014-03-28 06:53:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/200253002/40001
6 years, 9 months ago (2014-03-28 06:54:04 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 06:54:24 UTC) #26
Message was sent while issue was closed.
Change committed as 170288

Powered by Google App Engine
This is Rietveld 408576698