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

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

Issue 2556873002: Revert of Enable traffic shaping in loading.mobile benchmark (Closed)
Patch Set: Created 4 years 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/loading.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
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
9 from telemetry import story 8 from telemetry import story
10 9
11 10
12 class LoadingMobileStorySet(story.StorySet): 11 class LoadingMobileStorySet(story.StorySet):
13 12
14 """ A collection of tests to measure loading performance of mobile sites. 13 """ A collection of tests to measure loading performance of mobile sites.
15 14
16 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh t3ogeF9yLNFCI/edit 15 Design doc: https://docs.google.com/document/d/1QKlZIoURAxZk-brrXsKYZl9O8ieqXh t3ogeF9yLNFCI/edit
17 """ 16 """
18 17
19 def __init__(self, cache_temperatures=None, traffic_settings=None): 18 def __init__(self, cache_temperatures=None):
20 super(LoadingMobileStorySet, self).__init__( 19 super(LoadingMobileStorySet, self).__init__(
21 archive_data_file='data/loading_mobile.json', 20 archive_data_file='data/loading_mobile.json',
22 cloud_storage_bucket=story.PARTNER_BUCKET) 21 cloud_storage_bucket=story.PARTNER_BUCKET)
23 22
24 if cache_temperatures is None: 23 if cache_temperatures is None:
25 cache_temperatures = [cache_temperature_module.ANY] 24 cache_temperatures = [cache_temperature_module.ANY]
26 25
27 if traffic_settings is None:
28 traffic_settings = [traffic_setting_module.NONE]
29
30 self.AddStories(['global'], [ 26 self.AddStories(['global'], [
31 'https://www.google.com/search?q=flower#q=flower+delivery', 27 'https://www.google.com/search?q=flower#q=flower+delivery',
32 'https://www.youtube.com/watch?v=MU3YuvNRhVY', 28 'https://www.youtube.com/watch?v=MU3YuvNRhVY',
33 # pylint: disable=line-too-long 29 # 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', 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',
35 'https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10', 31 'https://www.google.com.br/search?q=flor#q=Entrega+de+flores&start=10',
36 # Disabled because of crbug.com/653775 32 # Disabled because of crbug.com/653775
37 # pylint: disable=line-too-long 33 # pylint: disable=line-too-long
38 # 'https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone. html', 34 # 'https://googleblog.blogspot.jp/2016/02/building-safer-web-for-everyone. html',
39 'https://www.google.co.id/#q=pengiriman+bunga', 35 'https://www.google.co.id/#q=pengiriman+bunga',
(...skipping 17 matching lines...) Expand all
57 'http://xw.qq.com/news/20160803025029/NEW2016080302502901', 53 'http://xw.qq.com/news/20160803025029/NEW2016080302502901',
58 # pylint: disable=line-too-long 54 # 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', 55 'http://m.kaskus.co.id/thread/57a03a3214088d91068b4567/inilah-akibat-bersi kap-overprotektif-terhadap-anak/?ref=homelanding&med=hot_thread',
60 'http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames', 56 'http://www.dailymotion.com/video/x3d1kj5_fallout-4-review_videogames',
61 'https://mobile.twitter.com/scottjehl/status/760618697727803394', 57 'https://mobile.twitter.com/scottjehl/status/760618697727803394',
62 'http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/', 58 'http://m.kapanlagi.com/lirik/artis/anji/kata_siapa/',
63 # pylint: disable=line-too-long 59 # pylint: disable=line-too-long
64 'http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.html #5310a118c3;promoted', 60 'http://olx.co.id/iklan/iphone-6s-64-rose-gold-warna-favorite-IDiSdm5.html #5310a118c3;promoted',
65 # pylint: disable=line-too-long 61 # pylint: disable=line-too-long
66 'http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subAc tion=excep&excpType=EC', 62 'http://enquiry.indianrail.gov.in/mntes/MntesServlet?action=MainMenu&subAc tion=excep&excpType=EC',
67 ], cache_temperatures, traffic_settings) 63 ], cache_temperatures)
68 64
69 self.AddStories(['pwa'], [ 65 self.AddStories(['pwa'], [
70 # pylint: disable=line-too-long 66 # pylint: disable=line-too-long
71 'https://www.flipkart.com/big-wing-casuals/p/itmemeageyfn6m9z?lid=LSTSHOEM EAGURG2PHPW18FTBN&pid=SHOEMEAGURG2PHPW', 67 'https://www.flipkart.com/big-wing-casuals/p/itmemeageyfn6m9z?lid=LSTSHOEM EAGURG2PHPW18FTBN&pid=SHOEMEAGURG2PHPW',
72 'https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1', 68 'https://smp.suumo.jp/mansion/tokyo/sc_104/cond/?moreCond=1',
73 # Disabled because of crbug.com/653775 69 # Disabled because of crbug.com/653775
74 # 'https://airhorner.com', 70 # 'https://airhorner.com',
75 'https://guitar-tuner.appspot.com', 71 'https://guitar-tuner.appspot.com',
76 # Disabled because of crbug.com/653775 72 # Disabled because of crbug.com/653775
77 # 'https://busrouter.sg', 73 # 'https://busrouter.sg',
78 'https://andreasbovens.github.io/inbox-attack/', 74 'https://andreasbovens.github.io/inbox-attack/',
79 'https://voice-memos.appspot.com', 75 'https://voice-memos.appspot.com',
80 # Disabled because of crbug.com/653775 76 # Disabled because of crbug.com/653775
81 # 'https://wiki-offline.jakearchibald.com/', 77 # 'https://wiki-offline.jakearchibald.com/',
82 'https://dev.opera.com/', 78 'https://dev.opera.com/',
83 'https://www.pokedex.org/', 79 'https://www.pokedex.org/',
84 'https://2048-opera-pwa.surge.sh/', 80 'https://2048-opera-pwa.surge.sh/',
85 'https://jakearchibald.github.io/trained-to-thrill/', 81 'https://jakearchibald.github.io/trained-to-thrill/',
86 'https://townwork.net', 82 'https://townwork.net',
87 'https://flipboard.com/topic/yoga', 83 'https://flipboard.com/topic/yoga',
88 ], cache_temperatures, traffic_settings) 84 ], cache_temperatures)
89 85
90 self.AddStories(['tough_ttfmp'], [ 86 self.AddStories(['tough_ttfmp'], [
91 'http://www.localmoxie.com', 87 'http://www.localmoxie.com',
92 'http://www.dawn.com', 88 'http://www.dawn.com',
93 'http://www.thairath.co.th', 89 'http://www.thairath.co.th',
94 'http://www.hashocean.com', 90 'http://www.hashocean.com',
95 'http://www.163.com', 91 'http://www.163.com',
96 ], cache_temperatures, traffic_settings) 92 ], cache_temperatures)
97 93
98 self.AddStories(['easy_ttfmp'], [ 94 self.AddStories(['easy_ttfmp'], [
99 'http://www.slideshare.net', 95 'http://www.slideshare.net',
100 'http://www.bradesco.com.br', 96 'http://www.bradesco.com.br',
101 'http://www.gsshop.com', 97 'http://www.gsshop.com',
102 'http://www.sbs.co.kr', 98 'http://www.sbs.co.kr',
103 'http://www.futura-sciences.com', 99 'http://www.futura-sciences.com',
104 ], cache_temperatures, traffic_settings) 100 ], cache_temperatures)
105 101
106 self.AddStories(['tough_tti'], [ 102 self.AddStories(['tough_tti'], [
107 'http://www.thestar.com.my', 103 'http://www.thestar.com.my',
108 'http://www.58pic.com', 104 'http://www.58pic.com',
109 'http://www.hongkiat.com', 105 'http://www.hongkiat.com',
110 'http://www.ebs.in', 106 'http://www.ebs.in',
111 'http://www.ibicn.com', 107 'http://www.ibicn.com',
112 ], cache_temperatures, traffic_settings) 108 ], cache_temperatures)
113 109
114 self.AddStories(['easy_tti'], [ 110 self.AddStories(['easy_tti'], [
115 'http://www.dramaq.com.tw', 111 'http://www.dramaq.com.tw',
116 'http://www.locanto.in', 112 'http://www.locanto.in',
117 'http://www.francetvinfo.fr', 113 'http://www.francetvinfo.fr',
118 'http://www.gfk.com', 114 'http://www.gfk.com',
119 'http://www.mlsmatrix.com' 115 'http://www.mlsmatrix.com'
120 ], cache_temperatures, traffic_settings) 116 ], cache_temperatures)
121 117
122 def AddStories(self, labels, urls, cache_temperatures, traffic_settings): 118 def AddStories(self, labels, urls, cache_temperatures):
123 for url in urls: 119 for url in urls:
124 for temp in cache_temperatures: 120 for temp in cache_temperatures:
125 for traffic in traffic_settings: 121 self.AddStory(page_cycler_story.PageCyclerStory(url, self,
126 self.AddStory(page_cycler_story.PageCyclerStory(url, self, 122 shared_page_state_class=shared_page_state.SharedMobilePageState,
127 shared_page_state_class=shared_page_state.SharedMobilePageState, 123 cache_temperature=temp, labels=labels))
128 cache_temperature=temp, traffic_setting=traffic, labels=labels))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/loading.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698