Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 from page_sets import page_cycler_story | |
| 6 from telemetry.page import cache_temperature as cache_temperature_module | |
| 7 from telemetry.page import shared_page_state | |
| 8 from telemetry import story | |
| 9 | |
| 10 | |
| 11 class LoadingMobileStorySet(story.StorySet): | |
| 12 | |
| 13 """ A collection of tests to measure loading performance of mobile sites. | |
| 14 | |
| 15 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh t3ogeF9yLNFCI/edit | |
| 16 """ | |
| 17 | |
| 18 def __init__(self, cache_temperatures=None): | |
| 19 super(LoadingMobileStorySet, self).__init__( | |
| 20 archive_data_file='data/loading_mobile.json', | |
| 21 cloud_storage_bucket=story.PARTNER_BUCKET) | |
| 22 | |
| 23 if cache_temperatures is None: | |
| 24 cache_temperatures = [cache_temperature_module.ANY] | |
| 25 | |
| 26 self.AddStories(['global'], [ | |
| 27 'https://www.google.com/search?q=flower#q=flower+delivery', | |
| 28 'https://www.youtube.com/watch?v=MU3YuvNRhVY', | |
| 29 # pylint: disable=line-too-long | |
| 30 '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', | |
| 31 'https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10', | |
| 32 # pylint: disable=line-too-long | |
| 33 'https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone.ht ml', | |
|
nednguyen
2016/10/03 14:42:22
This page had "connection is not private" on my lo
Kunihiko Sakamoto
2016/10/07 07:21:37
I couldn't resolve this :-(
Filed crbug.com/653775
| |
| 34 'https://www.google.co.id/#q=pengiriman+bunga', | |
| 35 'https://m.facebook.com/?soft=messages', | |
| 36 # pylint: disable=line-too-long | |
| 37 'http://g1.globo.com/politica/noticia/2016/02/maioria-do-stf-autoriza-fisc o-obter-dados-bancarios-sem-decisao-judicial.html', | |
| 38 # pylint: disable=line-too-long | |
| 39 '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', | |
| 40 # pylint: disable=line-too-long | |
| 41 'http://news.yahoo.com/were-top-10-most-visited-us-national-parks-10532372 7.html', | |
|
nednguyen
2016/10/03 14:42:23
the yahoo page's recording look a bit broken :-/
Kunihiko Sakamoto
2016/10/07 07:21:36
Re-recorded.
| |
| 42 'https://en.m.wikipedia.org/wiki/Solo_Foods', | |
| 43 # pylint: disable=line-too-long | |
| 44 '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', | |
| 45 # pylint: disable=line-too-long | |
| 46 'http://m.detik.com/finance/read/2016/02/19/151843/3146351/1034/ekspor-tam bang-mentah-mau-dibuka-lagi-kalau-sudah-bangun-smelter-bagaimana', | |
|
nednguyen
2016/10/03 14:42:23
m.detik.com also seems a bit broken
Kunihiko Sakamoto
2016/10/07 07:21:37
This was because some stylesheets were blocked by
| |
| 47 'http://www.amazon.com/gp/aw/s/ref=is_s/189-8585431-1246432?k=shoes', | |
| 48 # pylint: disable=line-too-long | |
| 49 'http://m.tribunnews.com/superskor/2016/08/03/ribuan-polisi-dikerahkan-men gawal-bonek', | |
| 50 'http://xw.qq.com/news/20160803025029/NEW2016080302502901', | |
| 51 # pylint: disable=line-too-long | |
| 52 'http://m.kaskus.co.id/thread/57a03a3214088d91068b4567/inilah-akibat-bersi kap-overprotektif-terhadap-anak/?ref=homelanding&med=hot_thread', | |
| 53 'http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames', | |
| 54 'https://mobile.twitter.com/scottjehl/status/760618697727803394', | |
| 55 'http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/', | |
| 56 # pylint: disable=line-too-long | |
| 57 'http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.html #5310a118c3;promoted', | |
| 58 # pylint: disable=line-too-long | |
| 59 'http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subAc tion=excep&excpType=EC', | |
| 60 ], cache_temperatures) | |
| 61 | |
| 62 self.AddStories(['pwa'], [ | |
| 63 # pylint: disable=line-too-long | |
| 64 'https://www.flipkart.com/oricum-black-347-canvas-shoes/p/itmeeydsghphdwh9 ?pid=SHOEEYDSZ7KFHCFN&lid=LSTSHOEEYDSZ7KFHCFN9FHUEA', | |
|
nednguyen
2016/10/03 14:42:22
flipkart somehow just show a giant blank area in t
Kunihiko Sakamoto
2016/10/07 07:21:37
The item was no longer available, changed to anoth
| |
| 65 'https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1', | |
| 66 'https://airhorner.com', | |
|
nednguyen
2016/10/03 14:42:22
airhoner shows "this site can't provide a secure c
Kunihiko Sakamoto
2016/10/07 07:21:37
Disabled for now.
| |
| 67 'https://guitar-tuner.appspot.com', | |
| 68 'https://busrouter.sg', | |
|
nednguyen
2016/10/03 14:42:23
busrouter shows "this site can't provide a secure
Kunihiko Sakamoto
2016/10/07 07:21:36
Disabled for now.
| |
| 69 'https://andreasbovens.github.io/inbox-attack/', | |
| 70 'https://voice-memos.appspot.com', | |
| 71 'https://wiki-offline.jakearchibald.com/', | |
|
nednguyen
2016/10/03 14:42:22
wiki-offline shows "this site can't provide a secu
Kunihiko Sakamoto
2016/10/07 07:21:37
Disabled for now.
| |
| 72 'https://dev.opera.com/', | |
| 73 'https://www.pokedex.org/', | |
| 74 'https://2048-opera-pwa.surge.sh/', | |
| 75 'https://jakearchibald.github.io/trained-to-thrill/', | |
| 76 'https://townwork.net', | |
| 77 'https://flipboard.com/', | |
|
nednguyen
2016/10/03 14:42:22
Should we use a flipboard leaf page instead? THe l
Kunihiko Sakamoto
2016/10/07 07:21:37
Changed to use a topic page.
| |
| 78 ], cache_temperatures) | |
| 79 | |
| 80 self.AddStories(['tough_ttfmp'], [ | |
| 81 'http://www.localmoxie.com', | |
| 82 'http://www.dawn.com', | |
| 83 'http://www.thairath.co.th', | |
| 84 'http://www.hashocean.com', | |
| 85 'http://www.163.com', | |
| 86 ], cache_temperatures) | |
| 87 | |
| 88 self.AddStories(['easy_ttfmp'], [ | |
| 89 'http://www.slideshare.net', | |
| 90 'http://www.bradesco.com.br', | |
| 91 'http://www.gsshop.com', | |
| 92 'http://www.sbs.co.kr', | |
| 93 'http://www.futura-sciences.com', | |
| 94 ], cache_temperatures) | |
| 95 | |
| 96 self.AddStories(['tough_tti'], [ | |
| 97 'http://www.thestar.com.my', | |
| 98 'http://www.58pic.com', | |
| 99 'http://www.hongkiat.com', | |
| 100 'http://www.ebs.in', | |
| 101 'http://www.ibicn.com', | |
| 102 ], cache_temperatures) | |
| 103 | |
| 104 self.AddStories(['easy_tti'], [ | |
| 105 'http://www.dramaq.com.tw', | |
|
nednguyen
2016/10/03 14:42:22
dramaq shows 404 not found
Kunihiko Sakamoto
2016/10/07 07:21:36
After re-recording on Android, these look good.
| |
| 106 'http://www.locanto.in', | |
|
nednguyen
2016/10/03 14:42:22
same for locanto
| |
| 107 'http://www.francetvinfo.fr', | |
|
nednguyen
2016/10/03 14:42:22
same here
| |
| 108 'http://www.gfk.com', | |
| 109 'http://www.mlsmatrix.com' | |
| 110 ], cache_temperatures) | |
| 111 | |
| 112 def AddStories(self, labels, urls, cache_temperatures): | |
| 113 for url in urls: | |
| 114 for temp in cache_temperatures: | |
| 115 self.AddStory(page_cycler_story.PageCyclerStory(url, self, | |
| 116 shared_page_state_class=shared_page_state.SharedMobilePageState, | |
| 117 cache_temperature=temp, labels=labels)) | |
| OLD | NEW |