Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: tools/perf/page_sets/loading_mobile.py

Issue 2363343003: Add loading mobile story set (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 telemetry.page import cache_temperature as cache_temperature_module
6 from telemetry.page import page as page_module
7 from telemetry.page import shared_page_state
8 from telemetry import story
9
10
11 class LoadingMobilePage(page_module.Page):
kouhei (in TOK) 2016/09/26 22:09:17 Please use PageCyclerStory
Kunihiko Sakamoto 2016/09/27 08:24:25 Done.
12
13 def __init__(self, url, page_set, labels=None, cache_temperature=None):
14 super(LoadingMobilePage, self).__init__(
15 url=url, page_set=page_set, labels=labels,
16 shared_page_state_class=shared_page_state.SharedMobilePageState,
17 cache_temperature=cache_temperature)
18
19
20 class LoadingMobileStorySet(story.StorySet):
21
22 """ A collection of tests to measure loading performance of mobile sites.
23
24 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh t3ogeF9yLNFCI/edit
25 """
26
27 def __init__(self, cache_temperatures=None):
28 super(LoadingMobileStorySet, self).__init__(
29 archive_data_file='data/loading_mobile.json',
30 cloud_storage_bucket=story.PARTNER_BUCKET)
31
32 if cache_temperatures is None:
33 cache_temperatures = [cache_temperature_module.ANY]
34
35 self.AddStories('global', [
36 'https://www.google.com/search?q=flower#q=flower+delivery',
37 'https://www.youtube.com/watch?v=MU3YuvNRhVY',
38 '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',
39 'https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10',
40 'https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone.ht ml',
41 'https://www.google.co.id/#q=pengiriman+bunga',
42 # Rquires logging in
43 # 'https://m.facebook.com/?soft=messages',
44 'http://g1.globo.com/politica/noticia/2016/02/maioria-do-stf-autoriza-fisc o-obter-dados-bancarios-sem-decisao-judicial.html',
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',
46 'http://news.yahoo.com/were-top-10-most-visited-us-national-parks-10532372 7.html',
47 'https://en.m.wikipedia.org/wiki/Solo_Foods',
48 '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',
49 'http://m.detik.com/finance/read/2016/02/19/151843/3146351/1034/ekspor-tam bang-mentah-mau-dibuka-lagi-kalau-sudah-bangun-smelter-bagaimana',
50 'http://www.amazon.com/gp/aw/s/ref=is_s/189-8585431-1246432?k=shoes',
51 'http://m.tribunnews.com/superskor/2016/08/03/ribuan-polisi-dikerahkan-men gawal-bonek',
52 'http://xw.qq.com/news/20160803025029/NEW2016080302502901',
53 'http://m.kaskus.co.id/thread/57a03a3214088d91068b4567/inilah-akibat-bersi kap-overprotektif-terhadap-anak/?ref=homelanding&med=hot_thread',
54 'http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames',
55 'https://mobile.twitter.com/scottjehl/status/760618697727803394',
56 'http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/',
57 'http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.html #5310a118c3;promoted',
58 'http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subAc tion=excep&excpType=EC',
59 ], cache_temperatures)
60
61 self.AddStories('pwa', [
62 # The page doesn't load in record_wpr (why?)
63 # 'https://www.flipkart.com/oricum-black-347-canvas-shoes/p/itmeeydsghphdw h9?pid=SHOEEYDSZ7KFHCFN&lid=LSTSHOEEYDSZ7KFHCFN9FHUEA',
64 'https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1',
65 # Requires logging in
66 # 'https://inbox.google.com',
67 'https://airhorner.com',
68 'https://guitar-tuner.appspot.com',
69 'https://busrouter.sg',
70 'https://andreasbovens.github.io/inbox-attack/',
71 'https://voice-memos.appspot.com',
72 # The site is down
73 # 'https://m.oumy.com',
74 'https://wiki-offline.jakearchibald.com/',
75 'https://dev.opera.com/',
76 'https://www.pokedex.org/',
77 'https://2048-opera-pwa.surge.sh/',
78 'https://jakearchibald.github.io/trained-to-thrill/',
79 'https://townwork.net',
80 'https://flipboard.com/',
81 ], cache_temperatures)
82
83 self.AddStories('tough_ttfmp', [
84 'http://www.localmoxie.com',
85 'http://www.dawn.com',
86 'http://www.thairath.co.th',
87 'http://www.hashocean.com',
88 'http://www.163.com',
89 ], cache_temperatures)
90
91 self.AddStories('easy_ttfmp', [
92 'http://www.slideshare.net',
93 'http://www.bradesco.com.br',
94 'http://www.gsshop.com',
95 'http://www.hpconnected.com',
96 'http://www.sbs.co.kr',
97 ], cache_temperatures)
98
99 self.AddStories('tough_tti', [
100 'http://www.thestar.com.my',
101 'http://www.58pic.com',
102 'http://www.hongkiat.com',
103 'http://www.ebs.in',
104 'http://www.ibicn.com',
105 ], cache_temperatures)
106
107 self.AddStories('easy_tti', [
108 'http://www.dramaq.com.tw',
109 'http://www.locanto.in',
110 'http://www.francetvinfo.fr',
111 'http://www.pinimg.com',
112 'http://www.chaoshi.tmall.com',
113 ], cache_temperatures)
114
115 def AddStories(self, label, urls, cache_temperatures):
116 for url in urls:
117 for temp in cache_temperatures:
118 self.AddStory(LoadingMobilePage(url, self, labels=[label],
119 cache_temperature=temp))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/page_cycler_v2.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698