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

Issue 675983004: Allow performance tests to test full rendering performance (Closed)

Created:
6 years, 1 month ago by Xianzhu
Modified:
6 years, 1 month ago
CC:
blink-reviews
Project:
blink
Visibility:
Public.

Description

Allow performance tests to test full rendering performance Before we did paint invalidation after layout and compositing update, blink performance tests reflected the whole document cycle performance including almost everything from style recalc to invalidation. A simple 'element.offsetTop' could trigger such a cycle. After change of compositing update and RACUN, the layout triggered by 'element.offsetTop' no longer included cost of compositing update and paint invalidation, causing incomplete performance coverage of the performance tests. Add PerfTestRunner.layoutOrFullyRender() which force a layout or a full rendering (including style recalc, layout, compositing update and paint invalidation, not including painting) according to global variable window.fullRenderingMeasurement, and change the original 'element.offsetTop' statements in the performance tests to PerfTestRunner.layoutOrFullyRender() calls. Chromium side change https://codereview.chromium.org/681493002/ is needed to expose internals API for blink_perf tests. With the change, full rendering performance will be tested in new test suites named like blink_perf.*_full_rendering. BUG=426599 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185484

Patch Set 1 #

Patch Set 2 : Call PerfTestRunner.forceFullLayout from tests #

Patch Set 3 : #

Patch Set 4 : Restore an unnecessary change about blank line #

Patch Set 5 : virtual suite #

Patch Set 6 : s/forceFullLayout/forceLayout/g #

Total comments: 2

Patch Set 7 : PerfTestRunner.layoutOrFullyRender() #

Total comments: 3

Patch Set 8 : layoutOrFullyRender -> forceLayoutOrFullFrame #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -91 lines) Patch
M PerformanceTests/Interactive/SelectAll.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Interactive/resources/window-resize.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/ArabicLineLayout.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/Shapes/MultipleShapes.html View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/Shapes/resources/shapes.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/SimpleTextPathLineLayout.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/auto-grid-lots-of-data.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/chapter-reflow.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/chapter-reflow-once.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/chapter-reflow-once-random.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/Layout/chapter-reflow-thrice.html View 1 2 3 4 5 6 7 1 chunk +6 lines, -6 lines 0 comments Download
M PerformanceTests/Layout/chapter-reflow-twice.html View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M PerformanceTests/Layout/fixed-grid-lots-of-data.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/flexbox-column-nowrap.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/flexbox-column-wrap.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/flexbox-lots-of-data.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/Layout/flexbox-row-nowrap.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/flexbox-row-wrap.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M PerformanceTests/Layout/flexbox-with-stretch-layout.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M PerformanceTests/Layout/hindi-line-layout.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/layers_overlap_2d.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/Layout/layers_overlap_3d.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/Layout/line-layout.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/line-layout-line-height.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M PerformanceTests/Layout/resources/character_fallback_test.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/Layout/resources/floats.js View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/Layout/resources/large-table-with-collapsed-borders.js View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/Layout/subtree-detaching.html View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M PerformanceTests/SVG/SvgCubics.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/SVG/SvgNestedUse.html View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M PerformanceTests/ShadowDOM/ChangingClassName.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/ShadowDOM/ChangingClassNameShadowDOM.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/ShadowDOM/ChangingSelect.html View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M PerformanceTests/ShadowDOM/ChangingSelectWithoutShadow.html View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M PerformanceTests/ShadowDOM/ContentReprojection.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/DistributionWithMultipleShadowRoots.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/MultipleInsertionPoints.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/ShadowReprojection.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/SmallDistributionWithLayout.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/shadow-style-share.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/shadow-style-share-attr-selectors.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/shadow-style-share-media-query.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/ShadowDOM/shadow-style-share-with-distribution.html View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M PerformanceTests/resources/runner.js View 1 2 3 4 5 6 7 2 chunks +22 lines, -6 lines 0 comments Download

Messages

Total messages: 30 (4 generated)
Xianzhu
6 years, 1 month ago (2014-10-24 22:09:52 UTC) #2
leviw_travelin_and_unemployed
We weren't forcing layouts in this loop prior. Shouldn't we just replace calls to offsetTop ...
6 years, 1 month ago (2014-10-24 22:48:12 UTC) #3
Xianzhu
On 2014/10/24 22:48:12, leviw wrote: > We weren't forcing layouts in this loop prior. Shouldn't ...
6 years, 1 month ago (2014-10-27 16:59:57 UTC) #4
tonyg
I defer to Levi, Elliot, Julien, et al on the review, but would suggest a ...
6 years, 1 month ago (2014-10-27 17:35:34 UTC) #5
Xianzhu
On 2014/10/27 17:35:34, tonyg wrote: > I defer to Levi, Elliot, Julien, et al on ...
6 years, 1 month ago (2014-10-27 17:43:46 UTC) #6
Julien - ping for review
This change is going in the wrong direction. Now we will have different numbers if ...
6 years, 1 month ago (2014-10-28 16:37:10 UTC) #7
Xianzhu
On 2014/10/28 16:37:10, Julien Chaffraix - PST wrote: > This change is going in the ...
6 years, 1 month ago (2014-10-28 16:46:52 UTC) #8
Julien - ping for review
On 2014/10/28 at 16:46:52, wangxianzhu wrote: > On 2014/10/28 16:37:10, Julien Chaffraix - PST wrote: ...
6 years, 1 month ago (2014-10-28 17:26:38 UTC) #9
Xianzhu
On 2014/10/28 17:26:38, Julien Chaffraix - PST wrote: > On 2014/10/28 at 16:46:52, wangxianzhu wrote: ...
6 years, 1 month ago (2014-10-28 17:44:34 UTC) #10
leviw_travelin_and_unemployed
On 2014/10/28 at 17:26:38, jchaffraix wrote: > That's one way, an even better one: a ...
6 years, 1 month ago (2014-10-28 17:45:04 UTC) #11
Xianzhu
https://codereview.chromium.org/681493002 is the chromium side change for virtual suite.
6 years, 1 month ago (2014-10-28 17:52:57 UTC) #12
Xianzhu
PTAL. Patch Set 5 is the blink side change for virtual suite. There is just ...
6 years, 1 month ago (2014-10-28 17:58:54 UTC) #13
Xianzhu
ping...
6 years, 1 month ago (2014-10-29 22:19:04 UTC) #14
leviw_travelin_and_unemployed
https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js File PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js#newcode142 PerformanceTests/resources/runner.js:142: // Forcing full layout is only fully feasible when ...
6 years, 1 month ago (2014-10-30 20:33:53 UTC) #15
Xianzhu
https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js File PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js#newcode142 PerformanceTests/resources/runner.js:142: // Forcing full layout is only fully feasible when ...
6 years, 1 month ago (2014-10-30 21:29:12 UTC) #16
leviw_travelin_and_unemployed
On 2014/10/30 at 21:29:12, wangxianzhu wrote: > https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js > File PerformanceTests/resources/runner.js (right): > > https://codereview.chromium.org/675983004/diff/100001/PerformanceTests/resources/runner.js#newcode142 ...
6 years, 1 month ago (2014-10-31 20:42:49 UTC) #17
Xianzhu
On 2014/10/31 20:42:49, leviw wrote: > > The notion of layout as running the entire ...
6 years, 1 month ago (2014-10-31 22:12:59 UTC) #18
Xianzhu
Any feedback to #18?
6 years, 1 month ago (2014-11-12 18:59:17 UTC) #19
Xianzhu
On 2014/11/12 18:59:17, Xianzhu wrote: > Any feedback to #18? Any comments?
6 years, 1 month ago (2014-11-17 18:23:23 UTC) #20
Xianzhu
On 2014/11/17 18:23:23, Xianzhu wrote: > On 2014/11/12 18:59:17, Xianzhu wrote: > > Any feedback ...
6 years, 1 month ago (2014-11-17 18:37:32 UTC) #21
Julien - ping for review
lgtm https://codereview.chromium.org/675983004/diff/120001/PerformanceTests/ShadowDOM/ChangingSelect.html File PerformanceTests/ShadowDOM/ChangingSelect.html (left): https://codereview.chromium.org/675983004/diff/120001/PerformanceTests/ShadowDOM/ChangingSelect.html#oldcode47 PerformanceTests/ShadowDOM/ChangingSelect.html:47: nonSelected.offsetLeft; It's bit concerning that if people are ...
6 years, 1 month ago (2014-11-17 19:05:47 UTC) #22
Xianzhu
https://codereview.chromium.org/675983004/diff/120001/PerformanceTests/resources/runner.js File PerformanceTests/resources/runner.js (right): https://codereview.chromium.org/675983004/diff/120001/PerformanceTests/resources/runner.js#newcode143 PerformanceTests/resources/runner.js:143: PerfTestRunner.layoutOrFullyRender = function(doc) { On 2014/11/17 19:05:46, Julien Chaffraix ...
6 years, 1 month ago (2014-11-17 20:44:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/675983004/140001
6 years, 1 month ago (2014-11-17 20:45:00 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/36909)
6 years, 1 month ago (2014-11-17 22:56:50 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/675983004/140001
6 years, 1 month ago (2014-11-17 23:32:47 UTC) #29
commit-bot: I haz the power
6 years, 1 month ago (2014-11-18 01:47:21 UTC) #30
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185484

Powered by Google App Engine
This is Rietveld 408576698