New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 627556 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Much slower rendering of large number of DOM elements in chromium 48 vs 47

Reported by chris.ma...@gmail.com, Jul 12 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36

Steps to reproduce the problem:
1. Run this html file in chromium 48 (I used 48.0.2564.82): https://gist.github.com/chrismangum/241942ab36e5594398d12829a912f27a. It generates and appends 50,000 lines of text into the DOM.
2. Perform a consistent resize operation. I resized the browser window dimensions from 764x980 to 1148x980 via a window manager hotkey.
3. Repeat the previous steps in chrome 47 (I used 47.0.2526.111).

What is the expected behavior?
I would expect rendering perfomance of 48 to be on par with 47. 

What went wrong?
48.0.2564.82 takes 8.35s to finish rendering after the resize operation. 47.0.2526.111 takes 1.88s to finish rendering (see attached screenshots of timelines). Seems like a huge performance hit between the two versions.

I tested other versions past 48, going all the way to 51.0.2704.106 (4.9165s), and nothing matches chrome 47 in rendering performance.

Did this work before? Yes 47.0.2526.111

Chrome version: 48.0.2564.82  Channel: stable
OS Version: 4.6.3-1
Flash Version: 

I am currently working an a node-webkit application that relies heavily on DOM performance. Are there any chromium flags that will allow versions past chromium 47 to have similar rendering performance?
 
48.0.2564.82.png
41.5 KB View Download
47.0.2526.111.png
39.2 KB View Download
Here are similar tests on a slower machine, OS X 10.11.5:

47.0.2526.80: 5.16s
48.0.2564.103: 17.5s
47.0.2526.80.png
56.2 KB View Download
48.0.2564.103.png
50.1 KB View Download
Cc: brajkumar@chromium.org
Labels: Needs-Feedback
Tested this issue on Windows 7 using chrome version M47-47.0.2526.111 by following steps mentioned below.

1. Navigated to the attached file index.html
2. Performed consistent resizing operation of the browser
3. Observed some rendering in loading the page back to normal.

Attaching screen-cast for reference, Could you please let us know is this is the issue you are talking about? If yes, I am able to repro on chrome 47.0.2526.111 as well. 
Recording #23.mp4
2.2 MB View Download
Thank you for the quick response.

I recorded the tests I did comparing 47 and 48. Notice 48 takes much longer to redraw the screen after the resize.
47.0.2526.111.mp4
4.1 MB View Download
48.0.2564.82.mp4
5.1 MB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 15 2016

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Are there any updates for this issue? Please let me know if you need any more information from me. Thanks.
Labels: -Needs-Review Needs-Feedback
Owner: ----
Could you please confirm are you seeing this issue on latest chrome latest stable M52-52.0.2743.82? and please let us know on which Linux flavor you are using.

Comment 7 by kdw...@gmail.com, Aug 1 2016

Hi brajkumar,

Adding one more data point in addition to what is reported above.  I'm using Mac OS X 10.11.6 running Google Chrome (Version 52.0.2743.82 64-bit) and seeing the same issue.

Kevin
Here is the same test on 52.0.2743.82. I am using Arch Linux (64 bit), kernel version 4.6.4-1.
52.0.2743.82.png
45.6 KB View Download
version.png
56.2 KB View Download
Components: Blink>MemoryAllocator Blink>HTML
Components: -Blink>HTML Blink>Layout
Labels: OS-Mac
FWIW you can "run" the gist with this URL:

https://rawgit.com/chrismangum/241942ab36e5594398d12829a912f27a/raw/36e3f188a84e811d611cba4d6b489f559ef7aa2c/index.html

I see this odd resize-repaint tearing on Linux in 52.0.2743.82 (Official Build) (64-bit).

First blush, this looks like a layout regression.
Project Member

Comment 11 by sheriffbot@chromium.org, Aug 15 2016

Labels: -Needs-Feedback Needs-Review
Owner: brajkumar@chromium.org
Thank you for providing more feedback. Adding requester "brajkumar@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Cc: cbiesin...@chromium.org drott@chromium.org e...@chromium.org
Components: -Blink>MemoryAllocator
Labels: -Type-Bug Type-Bug-Regression
Owner: kojii@chromium.org
Status: Assigned (was: Unconfirmed)
For bisect purposes, range from comment 3: 352221 .. 359700

You are probably looking for a change made after 354213 (known good), but no later than 354220 (first known bad).
CHANGELOG URL:
  https://chromium.googlesource.com/chromium/src/+log/dc2a659b0ad54c3dcb632b876e40a71fa03019e9..e4471ed4dce8f2fc53e3e7f54aa8c4e18b93ea8c

Very likely Levi's change:
https://chromium.googlesource.com/chromium/src/+/585d07fa7ccde4980d159236e3023d1c0fb16f80

As that's linebreaking, assigning this to Koji for now.

Comment 13 by kojii@chromium.org, Aug 15 2016

Labels: -Needs-Review Needs-Feedback
I've made several fixes to break-all and break-word since the Levi's CL. Currently on my machine:

Canary 54.0.2826.0: 6655ms
Firefox: 4454ms
Edge: 4145ms

If you change "Xx" to "Xx ":

Canary 54.0.2826.0: 3545ms
Firefox: 6109ms
Edge: 4152ms

So we're faster than Edge/Firefox for words with spaces, while slower for a long word without spaces. This is a result of our optimizations for what we believe common cases are.

Could you confirm that having a 72 chars text without spaces and 50,000 div is a test case and it is not something you expect Chrome to optimize for?

Do you have more real use cases where Chrome is slower?

Comment 14 by kojii@chromium.org, Aug 29 2016

Status: WontFix (was: Assigned)
Closing as there's no further feedback for 2 weeks, and our performance is similar to Firefox/Edge for the provided cases.

Please feel free to add comments if there were any, and we'd be happy to investigate further.

Sign in to add a comment