Bug 1701989 - Add a talos benchmark to measure the pageload performance with multiple cross origin iframes r=sparky,perftest-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D114124
This commit is contained in:
Sean Feng 2021-05-04 23:17:08 +00:00
parent 4fa3851cb4
commit 4feed6d4c7
7 changed files with 88 additions and 1 deletions

View File

@ -546,6 +546,26 @@ cpstartup
0;content-process-startup;877;737;687;688;802;697;794;685;694;688;794;669;699;684;690;849;687;873;694;689
cross_origin_pageload
=====================
- contact: :sefeng, :jesup
- measuring: The time it takes to load a page which has 20 cross origin iframes
- source:
`cross_origin_pageload <https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/tests/cross_origin_pageload>`__
- type: `Page load`_
- bug: `bug
1701989 <https://bugzilla.mozilla.org/show_bug.cgi?id=1701989>`__
- data: 10 cycles of the entire benchmark
- **Lower is better**
- unit: ms
**Example Data**
.. code-block:: none
0;/index.html;194.42;154.12;141.38;145.88;136.92;147.64;152.54;138.02;145.5;143.62
.. _damp:
damp

View File

@ -546,6 +546,26 @@ cpstartup
0;content-process-startup;877;737;687;688;802;697;794;685;694;688;794;669;699;684;690;849;687;873;694;689
cross_origin_pageload
=====================
- contact: :sefeng, :jesup
- measuring: The time it takes to load a page which has 20 cross origin iframes
- source:
`cross_origin_pageload <https://dxr.mozilla.org/mozilla-central/source/testing/talos/talos/tests/cross_origin_pageload>`__
- type: `Page load`_
- bug: `bug
1701989 <https://bugzilla.mozilla.org/show_bug.cgi?id=1701989>`__
- data: 10 cycles of the entire benchmark
- **Lower is better**
- unit: ms
**Example Data**
.. code-block:: none
0;/index.html;194.42;154.12;141.38;145.88;136.92;147.64;152.54;138.02;145.5;143.62
.. _damp:
damp

View File

@ -14,7 +14,7 @@
},
"other": {
"_comment": "Bug 1220362 - Disabled startup_about_home_paint_cached for high frequency intermittents",
"tests": ["a11yr", "ts_paint", "twinopen", "sessionrestore", "sessionrestore_no_auto_restore", "tabpaint", "cpstartup", "startup_about_home_paint", "pdfpaint"]
"tests": ["a11yr", "ts_paint", "twinopen", "sessionrestore", "sessionrestore_no_auto_restore", "tabpaint", "cpstartup", "startup_about_home_paint", "pdfpaint", "cross_origin_pageload"]
},
"sessionrestore-many-windows": {
"tests": ["sessionrestore_many_windows"]

View File

@ -500,6 +500,21 @@ class tabswitch(PageloaderTest):
unit = "ms"
@register_test()
class cross_origin_pageload(PageloaderTest):
"""
Tests the amount of time it takes to load a page which
has 20 cross origin iframes
"""
extensions = ["${talos}/pageloader"]
tpmanifest = "${talos}/tests/cross_origin_pageload/cross_origin_pageload.manifest"
tppagecycles = 10
timeout = 100
tploadnocache = True
unit = "ms"
@register_test()
class tart(PageloaderTest):
"""

View File

@ -0,0 +1 @@
% http://localhost/tests/cross_origin_pageload/index.html

View File

@ -0,0 +1 @@
Hello World

View File

@ -0,0 +1,30 @@
<html>
<body>
<iframe src="http://test:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://mochi.test:8888/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://mochi.xorigin-test:8888/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.org:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://www.example.com:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.net:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://www.itisatrap.org:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://xn--exmple-cua.test:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://xn--exaple-kqf.test:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://itisatracker.org:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://trackertest.org:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://fpdownload2.macromedia.com:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://w3c-test.org:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.tw:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.cn:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.co.jp:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.fi:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.in:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://example.lk:80/tests/cross_origin_pageload/iframe.html"></iframe>
<iframe src="http://httpsfirst.com:80/tests/cross_origin_pageload/iframe.html"></iframe>
<script>
window.onload = function(event) {
if (window.tpRecordTime) window.tpRecordTime(event.timeStamp);
}
</script>
</body>
</html>