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

Issue 7038052: Add initial framework for performance tests that measure frame rate. (Closed)

Created:
9 years, 7 months ago by darin (slow to review)
Modified:
9 years, 7 months ago
Reviewers:
cmp, brettw, nduca
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add initial framework for performance tests that measure frame rate. Add the "blank page" test, which just scrolls a page with a very large body. The actual frame rate measurement is based on the webkitRequestAnimationFrame callback. The framework records how frequently that API generates a callback. If it generates a callback at 60 FPS, then we know nothing is slowing us down. This of course assumes that webkitRequestAnimationFrame is well implemented. The advantage of this test framework over one that directly reads a framerate from Chromium is that this one works outside of the test harness. You can just navigate your browser to the test file and run the test manually. R=brettw,nduca Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86568

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -10 lines) Patch
M chrome/chrome_tests.gypi View 1 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/test/data/perf/frame_rate/blank/test.html View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/test/data/perf/frame_rate/head.js View 1 2 1 chunk +100 lines, -0 lines 0 comments Download
A chrome/test/perf/frame_rate/frame_rate_tests.cc View 1 1 chunk +110 lines, -0 lines 0 comments Download
M chrome/test/ui/javascript_test_util.cc View 2 chunks +21 lines, -9 lines 0 comments Download
M chrome/test/ui/ui_perf_test.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
darin (slow to review)
9 years, 7 months ago (2011-05-20 22:59:06 UTC) #1
cmp
nice, some general comments http://codereview.chromium.org/7038052/diff/1/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): http://codereview.chromium.org/7038052/diff/1/chrome/chrome_tests.gypi#newcode2873 chrome/chrome_tests.gypi:2873: 'target_name': 'frame_rate_tests', Adding another UIPerfTest ...
9 years, 7 months ago (2011-05-21 02:22:19 UTC) #2
darin (slow to review)
On Fri, May 20, 2011 at 7:22 PM, <cmp@chromium.org> wrote: > nice, some general comments ...
9 years, 7 months ago (2011-05-21 04:26:53 UTC) #3
darin (slow to review)
On Fri, May 20, 2011 at 9:26 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
9 years, 7 months ago (2011-05-21 04:41:48 UTC) #4
darin (slow to review)
On Fri, May 20, 2011 at 9:26 PM, Darin Fisher <darin@chromium.org> wrote: > > > ...
9 years, 7 months ago (2011-05-21 05:20:54 UTC) #5
nduca
Psyched to see this moving along. Thanks Darin. Needless to say, LGTM. http://codereview.chromium.org/7038052/diff/1/chrome/test/data/perf/frame_rate/head.js File chrome/test/data/perf/frame_rate/head.js ...
9 years, 7 months ago (2011-05-22 04:33:41 UTC) #6
cmp
On 2011/05/21 04:26:53, darin wrote: > pyauto is one approach. Another approach is to reduce ...
9 years, 7 months ago (2011-05-23 23:56:50 UTC) #7
darin (slow to review)
On Sat, May 21, 2011 at 9:33 PM, <nduca@chromium.org> wrote: > Psyched to see this ...
9 years, 7 months ago (2011-05-24 05:32:08 UTC) #8
nduca
> I was thinking that each page could have a custom <script> block to override ...
9 years, 7 months ago (2011-05-24 05:59:20 UTC) #9
brettw
LGTM, I didn't look at the JS. http://codereview.chromium.org/7038052/diff/1/chrome/test/perf/frame_rate/frame_rate_tests.cc File chrome/test/perf/frame_rate/frame_rate_tests.cc (right): http://codereview.chromium.org/7038052/diff/1/chrome/test/perf/frame_rate/frame_rate_tests.cc#newcode28 chrome/test/perf/frame_rate/frame_rate_tests.cc:28: // Make ...
9 years, 7 months ago (2011-05-24 16:39:40 UTC) #10
darin (slow to review)
On Tue, May 24, 2011 at 9:39 AM, <brettw@chromium.org> wrote: > LGTM, I didn't look ...
9 years, 7 months ago (2011-05-24 18:28:50 UTC) #11
darin (slow to review)
9 years, 7 months ago (2011-05-24 19:18:53 UTC) #12
The latest version includes a couple of changes:

1- Executable renamed to performance_ui_tests.exe, with the intention of merging
in all other such UI tests.

2- Support for mozRequestAnimationFrame, so that FF4 can also be tested.

Powered by Google App Engine
This is Rietveld 408576698