Closed Bug 784512 Opened 12 years ago Closed 11 years ago

Per input: reports of slowness is up about 100% in Firefox 15 vs 14

Categories

(Firefox :: General, defect)

15 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME
Tracking Status
firefox15 + ---

People

(Reporter: cww, Unassigned)

Details

Attachments

(5 files)

Running a statistical analysis of word frequencies in input, we have twice as much feedback mentioning slow|slowly|speed|forever in 15 relative to 14.

Attached is the actual comments. A lot of people seem to mention games (Facebook/zynga poker in particular) but there are also a number of people mentioning that loading pages/videos is slow.
Adding qawanted (for Zynga Poker and FB games) and also pinging the metrics team (page loads) to get some testing around this.
Keywords: qawanted
Is this problem specific to Mac or was the platform field just autofilled?
I reviewed the feedback (attached). The themes seem to be:
- slow downloads
- slow page loads
- frequent crashes
- flash issues
- high ram usage
- slow start-up
- slow games/videos
- slow search
- mentions of a number of sites including facebook, twitter, tumblr, and more
- slower than previous versions
It would be best use of time to start testing win 7 as most of the user comments in the attachment are from windows users.
Thanks everyone. I'll look into this today. If I don't find any leads I'll hand it off to Softvision overnight to do some testing. Note that we've had two Flash testdays in the last month and have been dogfooding Flash 11.4 for a couple of weeks with no internal reports of performance degradation. 

It might be useful to do some outreach and asking for dogfooding/feedback from a broader audience in parallel to QA investigating this issue. In fact, it would probably be prudent given how close we are to release.
QA Contact: anthony.s.hughes
I've put a call out to all QA employees to solicit for help here. It would be great if other teams could follow suit. The wider net we cast, the more likely we are to find something.
I accidentally switched my Windows 7 VM into Unity mode received a plugin hang/crash while playing Zynga Poker on Facebook. I was using Firefox 15.0b6 and Flash 11.4.402.265. As of yet I've not been able to reproduce, but here are the reports:

bp-5fb7669a-9ac5-4dee-b793-b7dc22120822
bp-34dc8d61-6c80-41cf-8f23-e16d32120822
I *may* have found a test, though this might just be exaggerated by my VM.

Steps:
1. Clear your caches
2. Log in to Facebook
3. Search for and load "Zynga Slingo"
4. In the Zynga apps bar at the top, select "The Ville"
> The Ville opens in a new tab
5. Scroll with touchpad up and down repeatedly

Result:
Firefox 14.0.1 - scrolling is fluid
Firefox 15.0b6 - scrolling is choppy

Can someone please try if they can reproduce this?
OS: Mac OS X → All
Hardware: x86 → All
Comment 8 might be a red herring, I retested 14.0.1 and it gets choppy scrolling as well.
I'm definitely seeing some minor hangs for a few seconds, particularly when a Flash game is loading and activities like scrolling, switching tabs, closing tabs, opening tabs, quitting Firefox. However, these hangs seem no worse in Firefox 15.0b6 then in 14.0.1.

Unfortunately, I have to get back to working on QA sign-off for 15.0b6. Hopefully someone else can jump in here and help out.
I have some telemetry data.

HTTP_COMPLETE_LOAD_NET:

Median has gone from 274ms to 311ms

HTTP_PAGE_COMPLETE_LOAD:

Median has gone from 245ms - 291ms
(In reply to [:Cww] from comment #11)
> I have some telemetry data.
> 
> HTTP_COMPLETE_LOAD_NET:
> 
> Median has gone from 274ms to 311ms
> 
> HTTP_PAGE_COMPLETE_LOAD:
> 
> Median has gone from 245ms - 291ms

In addition to the higher median, from the histograms it does look like there are more values right of median in ff15 than 14.
Additionally HTML_FOREGROUND_REFLOW_MS is slower in 15, as is HTML_BACKGROUND_REFLOW_MS.
Looks like we improved memory usage on extreme end, but our normal memory usage went up. This may explain why pageloading is slower.
(In reply to Taras Glek (:taras) from comment #13)
> Created attachment 654419 [details]
> memory_resident regression
> 
> Looks like we improved memory usage on extreme end, but our normal memory
> usage went up. This may explain why pageloading is slower.

Looks like MEMORY_JS_GC_HEAP went up..however GC_MS is down in 15. No idea what's causing this, but ff15 does indeed seem slower at loading pages and is using more memory.
PAGE_FAULTS_HARD are about 1% more common in firefox 15. This means that on mac/linux we are swapping more often. The windows low memory notifications became more common too(but there the difference is <0.0003%..ie noise)

HTTP_PAGE_CACHE_READ_TIME got a few percent worse too.
Ubuntu 12.04.
Used about:telemetry add-on to gather some memory data on my system. Used the same profile and loaded the same pages (facebook games- bejeweled blitz and war commander and 3 youtube videos).
Didn't spot any noticeable difference between the builds while loading the same sites - there was an expected lag when loading a few games and videos in different tabs, but no noticeable difference.
There are a few items in memory with some differences between builds. I'll leave it to someone who knows them better to interpret them.
(In reply to Anthony Hughes, Mozilla QA (:ashughes) from comment #8)
> I *may* have found a test, though this might just be exaggerated by my VM.
> 
> Steps:
> 1. Clear your caches
> 2. Log in to Facebook
> 3. Search for and load "Zynga Slingo"
> 4. In the Zynga apps bar at the top, select "The Ville"
> > The Ville opens in a new tab
> 5. Scroll with touchpad up and down repeatedly
> 
> Result:
> Firefox 14.0.1 - scrolling is fluid
> Firefox 15.0b6 - scrolling is choppy
> 
> Can someone please try if they can reproduce this?

Scrolling looks a little bit choppy to me both on FF 14.0.1 and 15b6.
Tested on Win 7 x64
Is there anything that indicates which Flash version?  I have seen a performance downgrade from Flash 10.3 to 11.3 on multiple machines.
I was comparing 14 and 15 on the same time periods so there shouldn't be a difference in the flash version.
I only met one performance issue I don't seem to reproduce on Firefox 14 nor Firefox 15 pre-beta 5. This issue is intermittent though, so I can't be sure of this.

I only reproduced it on Firefox 15 beta 6 on Ubuntu 12.04 64-bit:

STR:
1. Load http://www.imdb.com/trailers in the browser.
2. Start playing a video.
3. Click on the progress bar to skip forward in the video (it doesn't matter if the video got loaded to the point you skip to or not).
Actual Results: Firefox freezes for 5 to 20 seconds - intermittent issue.
(In reply to Ioana Budnar [QA] from comment #22)
...
> I only reproduced it on Firefox 15 beta 6 on Ubuntu 12.04 64-bit:
...

Adobe Flash stopped support for Linux from Flash 11.2, so I was using Flash 11.2.
The about:telemetry data obtained with the followins steps on Windows 7 32-bit SP1 and Flash 11.4:
1. Open Firefox  14.0.1 
2. Install about:telemetry add-on
3. Log in to facebook and play 2 games (Bejeweled Blitz, The Sims Social)
4. Play 3 youtube videos
5. Open about:telemetry and observe memory results
6. Repeat steps 2-5 for Firefox 15b6.

There are differences between the results for Fx 14.0.1 and Fx 15 beta 6, but they should be interpreted by someone that knows more exactly what they mean.
10:22 <@khuey> taras: but if you're seeing memory regressions in 15, it's probably compartment-per-global fallout
10:23 < taras> khuey: so nothing that would be related to pageload speed
10:23 < taras> other than the usual more memory = more thrashing
10:24 <@khuey> not that I can think of
10:24 <@khuey> unless compartment creation is really slow or something

Sounds like the memory regression is likely not a factor in this, however it would be good to get metrics to confirm that slower pageload times are not strongly correlated with higher memory usage.
Would also be good to get an idea of how related cache perf is to slower pageload perf.
I have noticed frequent (but not constant) huge pauses and hangs that seem to be related to Flash 11.3.300 in Nightly on Windows 7. Killing the FlashPlayer process makes things much snappier for me, but since every page uses Flash, the problem comes just ends up occuring again after browsing for a while.
Hi Brian, I've noticed a lot of jank with Flash. You can access a profile at Bug 772763 - Opening plugins stream blocks the browser for 70ms per stream (2 seconds with multiple videos):

https://bugzilla.mozilla.org/show_bug.cgi?id=772763
(In reply to [:Cww] from comment #0)
> Running a statistical analysis of word frequencies in input, we have twice
> as much feedback mentioning slow|slowly|speed|forever in 15 relative to 14.
What do you mean by relative? Did you normalize the two stats by the number of inputs per version? Indeed, 14.0.1 has about 500 inputs per day while 15.0 has about 2300 inputs per day.
In addition, 77% of inputs are about issues in 14.0.1 (probably related to Flash) while only 61% in 15.0 Beta.
yes, I normalized on total amount of "issues" reported as well as checked against historical numbers. (This isn't my first rodeo, so to speak).
I don't know if my issue is related or not, but I have seen a very specific performance regression between 14.0.1 and 15.0.1.  I have a loop which creates several hundred DOM elements in a box, and then adds the box to the DOM.  Prior to FF15. this would take a few ms for populate the box and around 100ms to add it to the DOM.  Starting with FF15 it takes around 100ms to populate the box and about the same to add it to the DOM.  By inlining a function call that creates each element, performance returned to pre-15 levels.

This is all tested on Linux.  The regression shows in 15.0.1, 16.0a1-3, and unfortunately later versions including nightly will not run at all for unrelated reasons.
Ian - Yours sounds like a very specific issue that may or may not be related to this bug. Do you have a small, reproducible test case that you can attach to a new bug for your issue? Can you please file a new bug?
Currently my testcase is embedded in a rather complex addon.  In looking to simplify it, I've discovered that the slowdown only occurs when the function called from the loop is in a javascript code module.  More specifically, it only occurs when a piece of DOM-related data is passed to the function.  Even more specifically, it only occurs when the DOM-related data is operated on, for example by setting an attribute.

The size of the slowdown is apparently not related to the quantity or size of the input parameters, nor to the amount of work performed on them.  Setting one attribute on one element produces the same effect as passing in several elements as well as a local document pointer, then performing several operations on them.
Please pardon my slightly O/T example:
I can file a new bug if you prefer. 

Slowdown seems worse now in FFOX17 vs ffox15, 
but it only gets really bad at amazon.com.
Open 50 tabs and idle CPU use pegs at 100%
-> everything gets VERY slow.
JS compartments start at up to 6M/page,
(e.g. the lightning deals page)
growing overnight to about 25M/page avg. while idle,
always crashing when it hits 2.5G VM on 32bit debian linux.
(Wanted: an option to freeze all JS for all tabs but the viewed one)
Flash is not installed.
(In reply to Charles Evans from comment #33)
> Slowdown seems worse now in FFOX17 vs ffox15, 
This bug is about Fx 15 vs Fx 14. In addition, it's a generic one. If after following steps in https://support.mozilla.org/kb/troubleshoot-and-diagnose-firefox-problems you still experience that issue, you can file a new bug.
Removing the QAwanted keyword since QA already answered this request for help. Please re-add it if you need anything else related to this bug investigated.
Keywords: qawanted
At this point we may just want to resolve this WONTFIX (or WORKSFORME if input in this regard has died down).
Concur. This feels like a rather unactionable bug.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: