Open Bug 706250 Opened 13 years ago Updated 2 years ago

Many short unresponsive periods when loading The Daily What

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
All
defect

Tracking

()

People

(Reporter: mcote, Unassigned)

References

()

Details

(Whiteboard: [Snappy:P2])

Attachments

(1 file)

The Daily What is a blog with lots of images, videos, and ads from various sources.  It always felt a bit slow to load for me, so I made a very simple peptest, which confirms that there are many periods where the unresponsiveness goes above 50 ms while the page is loading:

PEP TEST-START | test_dailyWhat.js
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 103 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 199 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 112 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 204 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 105 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 57 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 79 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 194 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 202 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 68 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 182 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 63 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 84 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 118 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 51 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 55 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 67 ms
PEP WARNING    | test_dailyWhat.js | open_page | unresponsive time: 215 ms
PEP TEST-UNEXPECTED-FAIL | test_dailyWhat.js | fail threshold: 0.0 | metric: 322.362
PEP TEST-END   | test_dailyWhat.js | finished in: 9426 ms

This was on 64-bit Ubuntu 11.10 on a MacBook Pro.  I have confirmed that this also occurs in 32-bit Firefox on a 64-bit Windows 7 machine (one unresponsive period was over 3 seconds in length).

Attached is the peptest that simply loads the page and looks for unresponsiveness.  To run the test, see https://wiki.mozilla.org/Auto-tools/Projects/peptest#Running_Tests.
What does "unresponsive time: N ms" mean in this context?  That we went N ms without servicing the event loop?
Yup, that's what it means.  It uses ted's EventTracer code: http://blog.mozilla.com/ted/2011/06/27/measuring-ui-responsiveness/

Peptest specifically notes when the event loop was stuck for more than 50 ms during particular actions, as per the requirements of Project Snappy.
Ok, the next question here then is what we're doing during those intervals.  Can this tool tell us that, or do we need to dig in with other tools?
Not yet, I think we'll be able to use the work done on bug 580055 but it is currently blocked.
This could be a good testcase, but it sounds like we'd need somebody to run a profiler, or wait until we have better profiling tools, to analyze what is going on here.
Whiteboard: [snappy] → [Snappy:P2]
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046

Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5.

If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: