1 # Copyright 2014 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 from telemetry
.page
import page_set
5 from telemetry
.page
import page
8 class Top2012Q3Page(page
.Page
):
10 def __init__(self
, url
, ps
):
11 super(Top2012Q3Page
, self
).__init
__(url
=url
, page_set
=ps
)
12 self
.make_javascript_deterministic
= True
13 self
.credentials_path
= 'data/credentials.json'
14 self
.archive_data_file
= 'data/2012Q3.json'
16 def ReloadAndGc(self
, action_runner
):
17 action_runner
.ReloadPage()
19 action_runner
.ForceGarbageCollection()
21 def RunSmoothness(self
, action_runner
):
22 interaction
= action_runner
.BeginGestureInteraction(
23 'ScrollAction', is_smooth
=True)
24 action_runner
.ScrollPage()
27 def RunStressMemory(self
, action_runner
):
29 self
.ReloadAndGc(action_runner
)
32 class Top2012Q3PageSet(page_set
.PageSet
):
33 """ Pages hand-picked from top-lists in Q32012. """
36 super(Top2012Q3PageSet
, self
).__init
__(
37 make_javascript_deterministic
=True,
38 credentials_path
='data/credentials.json',
39 archive_data_file
='data/2012Q3.json',
40 bucket
=page_set
.PARTNER_BUCKET
)
43 'http://www.facebook.com/barackobama',
44 'https://www.google.com/search?q=barack%20obama',
47 'http://www.baidu.com/s?wd=barack+obama',
48 'http://en.wikipedia.org/wiki/Wikipedia',
50 'http://www.amazon.com/Kindle-Fire-Amazon-Tablet/dp/B0051VVOB2',
51 'http://googleblog.blogspot.com/',
53 'http://www.linkedin.com/in/linustorvalds',
57 'http://yandex.ru/yandsearch?text=barack+obama',
58 'http://translation.babylon.com/',
59 'http://www.bing.com/search?q=barack+obama',
60 'http://wordpress.org/news/',
61 'http://www.ebay.com/sch/i.html?_nkw=antiques',
63 'http://www.soso.com/q?w=barack+obama',
64 'http://www.microsoft.com/en-us/default.aspx',
65 'http://go.mail.ru/search?mailru=1&mg=1&q=barack+obama',
66 'http://vk.com/id118712387',
67 'http://staff.tumblr.com/',
69 'http://sfbay.craigslist.org/mis/',
70 'http://www.ask.com/web?q=barack+obama&search=&qsrc=0&o=0&l=dir',
71 'http://www.apple.com/ipodtouch/',
72 'http://blog.pinterest.com/',
73 'http://pinterest.com/backdrophome/',
76 'http://www.avg.com/us-en/avg-premium-security',
77 'http://googlesystem.blogspot.com/',
79 'http://blog.fc2.com/en/',
82 'http://www.flickr.com/photos/thomashawk/',
83 'http://www.flickr.com/photos/thomashawk/sets/72157600284219965/detail/',
84 # pylint: disable=C0301
85 'http://search.yahoo.com/search?ei=UTF-8&trackingType=go_search_home&p=barack+obama&fr=hsusgo1&sa.x=0&sa.y=0',
86 'http://www.conduit.com/',
92 # pylint: disable=C0301
93 'http://search.mywebsearch.com/mywebsearch/GGmain.jhtml?searchfor=barack+obama',
95 'http://portal.ebay.de/deutschland-schraubt-angebote',
96 'http://www.adobe.com/products/photoshopfamily.html?promoid=JOLIW',
97 'http://global.rakuten.com/us/',
98 # pylint: disable=C0301
99 'http://laundry.about.com/od/kidsandlaundry/f/How-Do-I-Wash-A-Backpack.htm',
100 'http://thepiratebay.se/search/barack%20obama/0/99/0',
102 'http://huffingtonpost.com',
103 'http://alibaba.com',
105 'http://www.sogou.com/web?query=barack+obama',
106 # pylint: disable=C0301
107 'http://www.amazon.de/gp/product/B0051QVF7A/ref=amb_link_170625867_1/275-4711375-4099801?ie=UTF8&nav_sdd=aps&pf_rd_m=A3JWKAKR8XB7XF&pf_rd_s=center-1&pf_rd_r=1C0XDBPB12WHDM63V11R&pf_rd_t=101&pf_rd_p=320475427&pf_rd_i=301128',
109 'http://mediafire.com',
110 'http://espn.go.com',
112 'http://www.godaddy.com/products/secure-hosting.aspx?ci=72738',
113 'http://imgur.com/gallery/b90ZE',
114 'http://home.alipay.com/bank/paymentKJ.htm',
115 'http://amazon.co.jp',
116 # pylint: disable=C0301
117 'http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array',
118 'http://www.google.com/doubleclick/',
119 'http://search.4shared.com/q/CCAD/1/barack%20obama',
120 'http://dailymotion.com',
122 'http://instagram.com/developer/',
123 'http://livedoor.com',
124 'http://wordpress.org/showcase/',
125 'http://bp.blogspot.com',
126 'http://wigetmedia.com/advertisers',
127 'http://www.search-results.com/web?&q=barack%20obama',
129 'http://nytimes.com',
130 'http://torrentz.eu/search?f=barack+obama',
131 'http://livejournal.com',
133 'http://www.weather.com/weather/right-now/Mountain+View+CA+94043',
134 'http://dailymail.co.uk',
135 'http://www.tianya.cn/bbs/index.shtml',
137 'http://theproject.badoo.com/final.phtml',
138 # pylint: disable=C0301
139 'http://www.bankofamerica.com/deposits/checksave/index.cfm?template=check_eBanking',
142 'http://indiatimes.com',
143 'http://deviantart.com',
146 'http://warriorforum.com',
148 'http://pconline.com.cn',
149 'http://mozilla.org',
150 'http://booking.com',
152 'https://www.chase.com/online/Home-Lending/mortgages.htm',
153 'http://addthis.com',
155 'http://news.blogfa.com/',
156 'http://www.stumbleupon.com/jobs',
157 'https://www.dropbox.com/about',
158 'http://www.clicksor.com/publishers/adformat',
159 'http://answers.com',
160 'http://en.softonic.com/',
161 'http://walmart.com',
162 'http://pengyou.com',
163 'http://outbrain.com',
164 'http://comcast.net',
165 'http://foxnews.com',
166 'http://photobucket.com/findstuff/photography%20styles/',
167 'http://bleach.wikia.com/?redirect=no',
168 'http://sourceforge.net/projects/xoops/?source=frontpage&position=1',
170 'http://guardian.co.uk',
171 # pylint: disable=C0301
172 'https://www.wellsfargo.com/jump/enterprise/doublediscount?msc=5589&mplx=10918-70119-3408-64',
173 'http://wikimediafoundation.org/wiki/Home',
175 'http://as.58.com/shuma/',
179 # pylint: disable=C0301
180 'http://search.naver.com/search.naver?where=nexearch&query=barack+obama&sm=top_hty&fbm=0&ie=utf8',
181 'http://statcounter.com/features/?PHPSESSID=bbjcvjr681bcul4vqvgq2qgmo7',
184 'http://www.myspace.com/browse/people',
185 'http://allegro.pl/antyki-i-sztuka',
187 'http://justbeenpaid.com',
188 'http://adultfriendfinder.com',
190 'http://www.leboncoin.fr/annonces/offres/centre/',
191 'http://dictionary.reference.com/',
192 'http://realtime.rediff.com/instasearch#!barack%20obama',
195 'http://www.filestube.com/search.html?q=barack+obama&select=All',
196 'http://xinhuanet.com',
197 'http://www.salesforce.com/sales-cloud/overview/',
198 # pylint: disable=C0301
199 'http://www.squidoo.com/make-cards-and-gift-bags-with-antique-photos',
200 'http://www.domaintools.com/research/',
201 'http://download.cnet.com/windows/?tag=hdr;brandnav',
202 'https://rapidshare.com/#!shop',
203 'http://people.com.cn',
206 'http://nicovideo.jp',
207 # pylint: disable=C0301
208 'http://www.yelp.com/search?find_desc=food&find_loc=San+Jose%2C+CA&ns=1',
209 'http://slideshare.net',
210 'http://archive.org/web/web.php',
211 'http://www.cntv.cn/index.shtml',
212 'http://english.cntv.cn/01/index.shtml',
213 'http://abonnez-vous.orange.fr/residentiel/accueil/accueil.aspx',
214 'http://v.it168.com/',
215 'http://nbcolympics.com',
216 'http://hootsuite.com',
217 # pylint: disable=C0301
218 'http://www.scribd.com/doc/52210329/The-Masters-Augusta-National-s-Amen-Corner-up-close',
219 'http://themeforest.net',
221 'http://www.soku.com/v?keyword=barack%20obama',
223 'http://funmoods.com',
225 'http://telegraph.co.uk',
226 'http://taringa.net',
227 # pylint: disable=C0301
228 'http://www.tripadvisor.com/Tourism-g32701-Mendocino_California-Vacations.html',
231 'http://soundcloud.com/flosstradamus/tracks',
232 'http://w3schools.com/html/default.asp',
233 'http://ameblo.jp/staff/',
236 'http://sweetim.com',
239 'http://www.indeed.com/jobs?q=software&l=Mountain+View%2C+CA',
241 'http://www.xing.com/search/people?search%5Bq%5D=lufthansa',
242 'http://reuters.com',
243 'http://hostgator.com',
244 'http://www.ikea.com/us/en/catalog/categories/departments/living_room/',
245 'http://www.kaixin001.com/award2012/wenming/index.php',
248 'http://samsung.com',
250 'http://espncricinfo.com',
252 # pylint: disable=C0301
253 'http://www.ups.com/content/us/en/bussol/browse/smallbiz/new-to-ups.html?WT.svl=SolExp',
255 'http://ero-advertising.com',
256 'http://mashable.com',
257 'http://iminent.com',
258 'http://rutracker.org',
259 # pylint: disable=C0301
260 'http://www.shopping.hp.com/en_US/home-office/-/products/Laptops/Laptops',
261 # pylint: disable=C0301
262 'http://www.clickbank.com/buy_products.htm?dores=true&mainCategoryId=1340&sortField=POPULARITY&b1=1340',
263 'http://b.hatena.ne.jp/',
264 # pylint: disable=C0301
265 'http://www.youdao.com/search?q=barack+obama&ue=utf8&keyfrom=web.index',
267 'http://nbcnews.com',
268 'http://bitauto.com',
270 'http://www.target.com/c/women/-/N-5xtd3#?lnk=nav_t_spc_1_0',
272 'http://www.aizhan.com/siteall/www.youboy.com/',
273 'http://veiculos-home.mercadolivre.com.br/',
275 'http://flipkart.com',
278 for url
in urls_list
:
279 self
.AddPage(Top2012Q3Page(url
, self
))