| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from page_sets import page_cycler_story | 5 from page_sets import page_cycler_story |
| 6 from telemetry.page import cache_temperature as cache_temperature_module | 6 from telemetry.page import cache_temperature as cache_temperature_module |
| 7 from telemetry.page import shared_page_state | 7 from telemetry.page import shared_page_state |
| 8 from telemetry.page import traffic_setting as traffic_setting_module | 8 from telemetry.page import traffic_setting as traffic_setting_module |
| 9 from telemetry import story | 9 from telemetry import story |
| 10 | 10 |
| 11 | 11 |
| 12 class LoadingMobileStorySet(story.StorySet): | 12 class LoadingMobileStorySet(story.StorySet): |
| 13 | 13 |
| 14 """ A collection of tests to measure loading performance of mobile sites. | 14 """ A collection of tests to measure loading performance of mobile sites. |
| 15 | 15 |
| 16 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh
t3ogeF9yLNFCI/edit | 16 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh
t3ogeF9yLNFCI/edit |
| 17 """ | 17 """ |
| 18 | 18 |
| 19 def __init__(self, cache_temperatures=None, traffic_settings=None): | 19 def __init__(self, cache_temperatures=None, traffic_settings=None): |
| 20 super(LoadingMobileStorySet, self).__init__( | 20 super(LoadingMobileStorySet, self).__init__( |
| 21 archive_data_file='data/loading_mobile.json', | 21 archive_data_file='data/loading_mobile.json', |
| 22 cloud_storage_bucket=story.PARTNER_BUCKET) | 22 cloud_storage_bucket=story.PARTNER_BUCKET, |
| 23 verify_names=True) |
| 23 | 24 |
| 24 if cache_temperatures is None: | 25 if cache_temperatures is None: |
| 25 cache_temperatures = [cache_temperature_module.ANY] | 26 cache_temperatures = [cache_temperature_module.ANY] |
| 26 | 27 |
| 27 if traffic_settings is None: | 28 if traffic_settings is None: |
| 28 traffic_settings = [traffic_setting_module.NONE] | 29 traffic_settings = [traffic_setting_module.NONE] |
| 29 | 30 |
| 30 self.AddStories(['global'], [ | 31 self.AddStories(['global'], [ |
| 31 'https://www.google.com/search?q=flower#q=flower+delivery', | 32 ('https://www.google.com/search?q=flower#q=flower+delivery', |
| 32 'https://www.youtube.com/watch?v=MU3YuvNRhVY', | 33 'GoogleRedirectToGoogleJapan'), |
| 34 ('https://www.youtube.com/watch?v=MU3YuvNRhVY', 'Youtube'), |
| 33 # pylint: disable=line-too-long | 35 # pylint: disable=line-too-long |
| 34 'https://www.google.co.in/search?q=%E0%A4%AB%E0%A5%82%E0%A4%B2&rct=j#q=%E0
%A4%AB%E0%A5%82%E0%A4%B2+%E0%A4%B5%E0%A4%BF%E0%A4%A4%E0%A4%B0%E0%A4%A3', | 36 ('https://www.google.co.in/search?q=%E0%A4%AB%E0%A5%82%E0%A4%B2&rct=j#q=%E
0%A4%AB%E0%A5%82%E0%A4%B2+%E0%A4%B5%E0%A4%BF%E0%A4%A4%E0%A4%B0%E0%A4%A3', |
| 35 'https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10', | 37 'GoogleIndia'), |
| 38 ('https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10', |
| 39 'GoogleBrazil'), |
| 36 # Disabled because of crbug.com/653775 | 40 # Disabled because of crbug.com/653775 |
| 37 # pylint: disable=line-too-long | 41 # pylint: disable=line-too-long |
| 38 # 'https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone.
html', | 42 # ('https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone
.html', |
| 39 'https://www.google.co.id/#q=pengiriman+bunga', | 43 # 'Blogspot'), |
| 40 'https://m.facebook.com/?soft=messages', | 44 ('https://www.google.co.id/#q=pengiriman+bunga', 'GoogleIndonesia'), |
| 45 ('https://m.facebook.com/?soft=messages', 'Facebook'), |
| 41 # Disabled because of crbug.com/656861 | 46 # Disabled because of crbug.com/656861 |
| 42 # pylint: disable=line-too-long | 47 # pylint: disable=line-too-long |
| 43 # 'http://g1.globo.com/politica/noticia/2016/02/maioria-do-stf-autoriza-fi
sco-obter-dados-bancarios-sem-decisao-judicial.html', | 48 # ('http://g1.globo.com/politica/noticia/2016/02/maioria-do-stf-autoriza-f
isco-obter-dados-bancarios-sem-decisao-judicial.html', |
| 49 # 'G1'), |
| 44 # pylint: disable=line-too-long | 50 # pylint: disable=line-too-long |
| 45 'https://m.baidu.com/s?word=%E9%B2%9C%E8%8A%B1%E9%80%9F%E9%80%92&oq=%E9%B2
%9C%E8%8A%B1', | 51 ('https://m.baidu.com/s?word=%E9%B2%9C%E8%8A%B1%E9%80%9F%E9%80%92&oq=%E9%B
2%9C%E8%8A%B1', |
| 52 'Baidu'), |
| 46 # pylint: disable=line-too-long | 53 # pylint: disable=line-too-long |
| 47 'http://news.yahoo.com/were-top-10-most-visited-us-national-parks-10532372
7.html', | 54 ('http://news.yahoo.com/were-top-10-most-visited-us-national-parks-1053237
27.html', |
| 48 'https://en.m.wikipedia.org/wiki/Solo_Foods', | 55 'YahooNews'), |
| 56 ('https://en.m.wikipedia.org/wiki/Solo_Foods', 'Wikipedia'), |
| 49 # pylint: disable=line-too-long | 57 # pylint: disable=line-too-long |
| 50 'http://noticias.bol.uol.com.br/ultimas-noticias/brasil/2016/08/03/tufao-n
ida-nao-deixa-vitimas-mas-prejuizos-de-us-43-milhoes.htm', | 58 ('http://noticias.bol.uol.com.br/ultimas-noticias/brasil/2016/08/03/tufao-
nida-nao-deixa-vitimas-mas-prejuizos-de-us-43-milhoes.htm', |
| 59 'BOLNoticias'), |
| 51 # Disabled because of crbug.com/653775 | 60 # Disabled because of crbug.com/653775 |
| 52 # pylint: disable=line-too-long | 61 # pylint: disable=line-too-long |
| 53 # 'http://m.detik.com/finance/read/2016/02/19/151843/3146351/1034/ekspor-t
ambang-mentah-mau-dibuka-lagi-kalau-sudah-bangun-smelter-bagaimana', | 62 # ('http://m.detik.com/finance/read/2016/02/19/151843/3146351/1034/ekspor-
tambang-mentah-mau-dibuka-lagi-kalau-sudah-bangun-smelter-bagaimana', |
| 54 'http://www.amazon.com/gp/aw/s/ref=is_s/189-8585431-1246432?k=shoes', | 63 # 'Detik'), |
| 64 ('http://www.amazon.com/gp/aw/s/ref=is_s/189-8585431-1246432?k=shoes', |
| 65 'Amazon'), |
| 55 # pylint: disable=line-too-long | 66 # pylint: disable=line-too-long |
| 56 'http://m.tribunnews.com/superskor/2016/08/03/ribuan-polisi-dikerahkan-men
gawal-bonek', | 67 ('http://m.tribunnews.com/superskor/2016/08/03/ribuan-polisi-dikerahkan-me
ngawal-bonek', |
| 57 'http://xw.qq.com/news/20160803025029/NEW2016080302502901', | 68 'TribunNews'), |
| 69 ('http://xw.qq.com/news/20160803025029/NEW2016080302502901', 'QQNews'), |
| 58 # pylint: disable=line-too-long | 70 # pylint: disable=line-too-long |
| 59 'http://m.kaskus.co.id/thread/57a03a3214088d91068b4567/inilah-akibat-bersi
kap-overprotektif-terhadap-anak/?ref=homelanding&med=hot_thread', | 71 ('http://m.kaskus.co.id/thread/57a03a3214088d91068b4567/inilah-akibat-bers
ikap-overprotektif-terhadap-anak/?ref=homelanding&med=hot_thread', |
| 60 'http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames', | 72 'Kaskus'), |
| 61 'https://mobile.twitter.com/scottjehl/status/760618697727803394', | 73 ('http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames', |
| 62 'http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/', | 74 'Dailymotion'), |
| 75 ('https://mobile.twitter.com/scottjehl/status/760618697727803394', |
| 76 'Twitter'), |
| 77 ('http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/', |
| 78 'KapanLagi'), |
| 63 # pylint: disable=line-too-long | 79 # pylint: disable=line-too-long |
| 64 'http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.html
#5310a118c3;promoted', | 80 ('http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.htm
l#5310a118c3;promoted', |
| 81 'OLX'), |
| 65 # pylint: disable=line-too-long | 82 # pylint: disable=line-too-long |
| 66 'http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subAc
tion=excep&excpType=EC', | 83 ('http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subA
ction=excep&excpType=EC', |
| 84 'EnquiryIndianRail'), |
| 67 ], cache_temperatures, traffic_settings) | 85 ], cache_temperatures, traffic_settings) |
| 68 | 86 |
| 69 self.AddStories(['pwa'], [ | 87 self.AddStories(['pwa'], [ |
| 70 # pylint: disable=line-too-long | 88 # pylint: disable=line-too-long |
| 71 'https://www.flipkart.com/big-wing-casuals/p/itmemeageyfn6m9z?lid=LSTSHOEM
EAGURG2PHPW18FTBN&pid=SHOEMEAGURG2PHPW', | 89 ('https://www.flipkart.com/big-wing-casuals/p/itmemeageyfn6m9z?lid=LSTSHOE
MEAGURG2PHPW18FTBN&pid=SHOEMEAGURG2PHPW', |
| 72 'https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1', | 90 'FlipKart'), |
| 91 ('https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1', |
| 92 'Suumo'), |
| 73 # Disabled because of crbug.com/653775 | 93 # Disabled because of crbug.com/653775 |
| 74 # 'https://airhorner.com', | 94 # 'https://airhorner.com', 'AirHorner'), |
| 75 'https://guitar-tuner.appspot.com', | 95 ('https://guitar-tuner.appspot.com', 'GuitarTuner'), |
| 76 # Disabled because of crbug.com/653775 | 96 # Disabled because of crbug.com/653775 |
| 77 # 'https://busrouter.sg', | 97 # ('https://busrouter.sg', 'BusRouter'), |
| 78 'https://andreasbovens.github.io/inbox-attack/', | 98 ('https://andreasbovens.github.io/inbox-attack/', |
| 79 'https://voice-memos.appspot.com', | 99 'InboxAttack'), |
| 100 ('https://voice-memos.appspot.com', 'VoiceMemos'), |
| 80 # Disabled because of crbug.com/653775 | 101 # Disabled because of crbug.com/653775 |
| 81 # 'https://wiki-offline.jakearchibald.com/', | 102 # ('https://wiki-offline.jakearchibald.com/', |
| 82 'https://dev.opera.com/', | 103 # 'WikiOffline'), |
| 83 'https://www.pokedex.org/', | 104 ('https://dev.opera.com/', 'DevOpera'), |
| 84 'https://2048-opera-pwa.surge.sh/', | 105 ('https://www.pokedex.org/', 'Pokedex'), |
| 85 'https://jakearchibald.github.io/trained-to-thrill/', | 106 ('https://2048-opera-pwa.surge.sh/', '2048'), |
| 86 'https://townwork.net', | 107 ('https://jakearchibald.github.io/trained-to-thrill/', |
| 87 'https://flipboard.com/topic/yoga', | 108 'TrainedToThrill'), |
| 109 ('https://townwork.net', 'TownWork'), |
| 110 ('https://flipboard.com/topic/yoga', 'FlipBoard'), |
| 88 ], cache_temperatures, traffic_settings) | 111 ], cache_temperatures, traffic_settings) |
| 89 | 112 |
| 90 self.AddStories(['tough_ttfmp'], [ | 113 self.AddStories(['tough_ttfmp'], [ |
| 91 'http://www.localmoxie.com', | 114 ('http://www.localmoxie.com', 'LocalMoxie'), |
| 92 'http://www.dawn.com', | 115 ('http://www.dawn.com', 'Dawn'), |
| 93 'http://www.thairath.co.th', | 116 ('http://www.thairath.co.th', 'Thairath'), |
| 94 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 | 117 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 95 # 'http://www.hashocean.com', | 118 # ('http://www.hashocean.com', 'HashOcean'), |
| 96 # 'http://www.163.com', | 119 # ('http://www.163.com', '163'), |
| 97 ], cache_temperatures, traffic_settings) | 120 ], cache_temperatures, traffic_settings) |
| 98 | 121 |
| 99 self.AddStories(['easy_ttfmp'], [ | 122 self.AddStories(['easy_ttfmp'], [ |
| 100 'http://www.slideshare.net', | 123 ('http://www.slideshare.net', 'SlideShare'), |
| 101 'http://www.bradesco.com.br', | 124 ('http://www.bradesco.com.br', 'Bradesco'), |
| 102 'http://www.gsshop.com', | 125 ('http://www.gsshop.com', 'GSShop'), |
| 103 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 | 126 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 104 # 'http://www.sbs.co.kr', | 127 # ('http://www.sbs.co.kr', 'SBS'), |
| 105 # 'http://www.futura-sciences.com', | 128 # ('http://www.futura-sciences.com', 'FuturaSciences'), |
| 106 ], cache_temperatures, traffic_settings) | 129 ], cache_temperatures, traffic_settings) |
| 107 | 130 |
| 108 self.AddStories(['tough_tti'], [ | 131 self.AddStories(['tough_tti'], [ |
| 109 'http://www.thestar.com.my', | 132 ('http://www.thestar.com.my', 'TheStar'), |
| 110 'http://www.58pic.com', | 133 ('http://www.58pic.com', '58Pic'), |
| 111 'http://www.hongkiat.com', | 134 ('http://www.hongkiat.com', 'Hongkiat'), |
| 112 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 | 135 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 113 # 'http://www.ebs.in', | 136 # ('http://www.ebs.in', 'EBS'), |
| 114 # 'http://www.ibicn.com', | 137 # ('http://www.ibicn.com', 'IBI'), |
| 115 ], cache_temperatures, traffic_settings) | 138 ], cache_temperatures, traffic_settings) |
| 116 | 139 |
| 117 self.AddStories(['easy_tti'], [ | 140 self.AddStories(['easy_tti'], [ |
| 118 'http://www.dramaq.com.tw', | 141 ('http://www.dramaq.com.tw', 'Dramaq'), |
| 119 'http://www.locanto.in', | 142 ('http://www.locanto.in', 'Locanto'), |
| 120 'http://www.francetvinfo.fr', | 143 ('http://www.francetvinfo.fr', 'FranceTVInfo'), |
| 121 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 | 144 # Disabled to avoid Nexus5X bot timeout crbug.com/702175 |
| 122 # 'http://www.gfk.com', | 145 # ('http://www.gfk.com', 'GFK'), |
| 123 # 'http://www.mlsmatrix.com' | 146 # ('http://www.mlsmatrix.com' 'MLSMatrix'), |
| 124 ], cache_temperatures, traffic_settings) | 147 ], cache_temperatures, traffic_settings) |
| 125 | 148 |
| 126 def AddStories(self, tags, urls, cache_temperatures, traffic_settings): | 149 def AddStories(self, tags, urls, cache_temperatures, traffic_settings): |
| 127 for url in urls: | 150 for url, name in urls: |
| 128 for temp in cache_temperatures: | 151 for temp in cache_temperatures: |
| 129 for traffic in traffic_settings: | 152 for traffic in traffic_settings: |
| 130 self.AddStory(page_cycler_story.PageCyclerStory(url, self, | 153 self.AddStory(page_cycler_story.PageCyclerStory(url, self, name=name, |
| 131 shared_page_state_class=shared_page_state.SharedMobilePageState, | 154 shared_page_state_class=shared_page_state.SharedMobilePageState, |
| 132 cache_temperature=temp, traffic_setting=traffic, tags=tags)) | 155 cache_temperature=temp, traffic_setting=traffic, tags=tags)) |
| OLD | NEW |