Upstream version 8.37.180.0
[platform/framework/web/crosswalk.git] / src / tools / perf / page_sets / top_desktop_sites_2012Q3.py
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 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page_set
7 from telemetry.page import page
8
9
10 class Top2012Q3Page(page.Page):
11
12   def __init__(self, url, ps):
13     super(Top2012Q3Page, self).__init__(url=url, page_set=ps)
14     self.make_javascript_deterministic = True
15     self.credentials_path = 'data/credentials.json'
16     self.archive_data_file = 'data/2012Q3.json'
17
18   def ReloadAndGc(self, action_runner):
19     action_runner.RunAction(ReloadAction())
20     action_runner.Wait(1)
21     action_runner.ForceGarbageCollection()
22
23   def RunSmoothness(self, action_runner):
24     action_runner.RunAction(ScrollAction())
25
26   def RunStressMemory(self, action_runner):
27     for _ in xrange(3):
28       self.ReloadAndGc(action_runner)
29
30
31 class Top2012Q3PageSet(page_set.PageSet):
32   """ Pages hand-picked from top-lists in Q32012. """
33
34   def __init__(self):
35     super(Top2012Q3PageSet, self).__init__(
36       make_javascript_deterministic=True,
37       credentials_path='data/credentials.json',
38       archive_data_file='data/2012Q3.json',
39       bucket=page_set.PARTNER_BUCKET)
40
41     urls_list = [
42       'http://www.facebook.com/barackobama',
43       'https://www.google.com/search?q=barack%20obama',
44       'http://youtube.com',
45       'http://yahoo.com',
46       'http://www.baidu.com/s?wd=barack+obama',
47       'http://en.wikipedia.org/wiki/Wikipedia',
48       'http://qq.com',
49       'http://www.amazon.com/Kindle-Fire-Amazon-Tablet/dp/B0051VVOB2',
50       'http://googleblog.blogspot.com/',
51       'http://taobao.com',
52       'http://www.linkedin.com/in/linustorvalds',
53       'http://yahoo.co.jp',
54       'http://sina.com.cn',
55       'http://msn.com',
56       'http://yandex.ru/yandsearch?text=barack+obama',
57       'http://translation.babylon.com/',
58       'http://www.bing.com/search?q=barack+obama',
59       'http://wordpress.org/news/',
60       'http://www.ebay.com/sch/i.html?_nkw=antiques',
61       'http://163.com',
62       'http://www.soso.com/q?w=barack+obama',
63       'http://www.microsoft.com/en-us/default.aspx',
64       'http://go.mail.ru/search?mailru=1&mg=1&q=barack+obama',
65       'http://vk.com/id118712387',
66       'http://staff.tumblr.com/',
67       'http://sohu.com',
68       'http://sfbay.craigslist.org/mis/',
69       'http://www.ask.com/web?q=barack+obama&search=&qsrc=0&o=0&l=dir',
70       'http://www.apple.com/ipodtouch/',
71       'http://blog.pinterest.com/',
72       'http://pinterest.com/backdrophome/',
73       'http://paypal.com',
74       'http://bbc.co.uk',
75       'http://www.avg.com/us-en/avg-premium-security',
76       'http://googlesystem.blogspot.com/',
77       'http://tudou.com',
78       'http://blog.fc2.com/en/',
79       'http://imdb.com',
80       'http://youku.com',
81       'http://www.flickr.com/photos/thomashawk/',
82       'http://www.flickr.com/photos/thomashawk/sets/72157600284219965/detail/',
83        # pylint: disable=C0301
84       'http://search.yahoo.com/search?ei=UTF-8&trackingType=go_search_home&p=barack+obama&fr=hsusgo1&sa.x=0&sa.y=0',
85       'http://www.conduit.com/',
86       'http://ifeng.com',
87       'http://tmall.com',
88       'http://hao123.com',
89       'http://aol.com',
90       'http://zedo.com',
91        # pylint: disable=C0301
92       'http://search.mywebsearch.com/mywebsearch/GGmain.jhtml?searchfor=barack+obama',
93       'http://cnn.com',
94       'http://portal.ebay.de/deutschland-schraubt-angebote',
95       'http://www.adobe.com/products/photoshopfamily.html?promoid=JOLIW',
96       'http://global.rakuten.com/us/',
97       # pylint: disable=C0301
98       'http://laundry.about.com/od/kidsandlaundry/f/How-Do-I-Wash-A-Backpack.htm',
99       'http://thepiratebay.se/search/barack%20obama/0/99/0',
100       'http://360buy.com',
101       'http://huffingtonpost.com',
102       'http://alibaba.com',
103       'http://chinaz.com',
104       'http://www.sogou.com/web?query=barack+obama',
105       # pylint: disable=C0301
106       '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',
107       'http://google.pl',
108       'http://mediafire.com',
109       'http://espn.go.com',
110       'http://uol.com.br',
111       'http://www.godaddy.com/products/secure-hosting.aspx?ci=72738',
112       'http://imgur.com/gallery/b90ZE',
113       'http://home.alipay.com/bank/paymentKJ.htm',
114       'http://amazon.co.jp',
115       # pylint: disable=C0301
116       'http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array',
117       'http://www.google.com/doubleclick/',
118       'http://search.4shared.com/q/CCAD/1/barack%20obama',
119       'http://dailymotion.com',
120       'http://globo.com',
121       'http://instagram.com/developer/',
122       'http://livedoor.com',
123       'http://wordpress.org/showcase/',
124       'http://bp.blogspot.com',
125       'http://wigetmedia.com/advertisers',
126       'http://www.search-results.com/web?&q=barack%20obama',
127       'http://cnet.com',
128       'http://nytimes.com',
129       'http://torrentz.eu/search?f=barack+obama',
130       'http://livejournal.com',
131       'http://douban.com',
132       'http://www.weather.com/weather/right-now/Mountain+View+CA+94043',
133       'http://dailymail.co.uk',
134       'http://www.tianya.cn/bbs/index.shtml',
135       'http://ehow.com',
136       'http://theproject.badoo.com/final.phtml',
137       # pylint: disable=C0301
138       'http://www.bankofamerica.com/deposits/checksave/index.cfm?template=check_eBanking',
139       'http://vimeo.com',
140       'http://360.cn',
141       'http://indiatimes.com',
142       'http://deviantart.com',
143       'http://reddit.com',
144       'http://aweber.com',
145       'http://warriorforum.com',
146       'http://spiegel.de',
147       'http://pconline.com.cn',
148       'http://mozilla.org',
149       'http://booking.com',
150       'http://goo.ne.jp',
151       'https://www.chase.com/online/Home-Lending/mortgages.htm',
152       'http://addthis.com',
153       'http://56.com',
154       'http://news.blogfa.com/',
155       'http://www.stumbleupon.com/jobs',
156       'https://www.dropbox.com/about',
157       'http://www.clicksor.com/publishers/adformat',
158       'http://answers.com',
159       'http://en.softonic.com/',
160       'http://walmart.com',
161       'http://pengyou.com',
162       'http://outbrain.com',
163       'http://comcast.net',
164       'http://foxnews.com',
165       'http://photobucket.com/findstuff/photography%20styles/',
166       'http://bleach.wikia.com/?redirect=no',
167       'http://sourceforge.net/projects/xoops/?source=frontpage&position=1',
168       'http://onet.pl',
169       'http://guardian.co.uk',
170       # pylint: disable=C0301
171       'https://www.wellsfargo.com/jump/enterprise/doublediscount?msc=5589&mplx=10918-70119-3408-64',
172       'http://wikimediafoundation.org/wiki/Home',
173       'http://xunlei.com',
174       'http://as.58.com/shuma/',
175       'http://skype.com',
176       'http://etsy.com',
177       'http://bild.de',
178       # pylint: disable=C0301
179       'http://search.naver.com/search.naver?where=nexearch&query=barack+obama&sm=top_hty&fbm=0&ie=utf8',
180       'http://statcounter.com/features/?PHPSESSID=bbjcvjr681bcul4vqvgq2qgmo7',
181       'http://iqiyi.com',
182       'http://fbcdn.net',
183       'http://www.myspace.com/browse/people',
184       'http://allegro.pl/antyki-i-sztuka',
185       'http://yesky.com',
186       'http://justbeenpaid.com',
187       'http://adultfriendfinder.com',
188       'http://fiverr.com',
189       'http://www.leboncoin.fr/annonces/offres/centre/',
190       'http://dictionary.reference.com/',
191       'http://realtime.rediff.com/instasearch#!barack%20obama',
192       'http://zol.com.cn',
193       'http://optmd.com',
194       'http://www.filestube.com/search.html?q=barack+obama&select=All',
195       'http://xinhuanet.com',
196       'http://www.salesforce.com/sales-cloud/overview/',
197       # pylint: disable=C0301
198       'http://www.squidoo.com/make-cards-and-gift-bags-with-antique-photos',
199       'http://www.domaintools.com/research/',
200       'http://download.cnet.com/windows/?tag=hdr;brandnav',
201       'https://rapidshare.com/#!shop',
202       'http://people.com.cn',
203       'http://ucoz.ru',
204       'http://free.fr',
205       'http://nicovideo.jp',
206       # pylint: disable=C0301
207       'http://www.yelp.com/search?find_desc=food&find_loc=San+Jose%2C+CA&ns=1',
208       'http://slideshare.net',
209       'http://archive.org/web/web.php',
210       'http://www.cntv.cn/index.shtml',
211       'http://english.cntv.cn/01/index.shtml',
212       'http://abonnez-vous.orange.fr/residentiel/accueil/accueil.aspx',
213       'http://v.it168.com/',
214       'http://nbcolympics.com',
215       'http://hootsuite.com',
216       # pylint: disable=C0301
217       'http://www.scribd.com/doc/52210329/The-Masters-Augusta-National-s-Amen-Corner-up-close',
218       'http://themeforest.net',
219       'http://4399.com',
220       'http://www.soku.com/v?keyword=barack%20obama',
221       'http://google.se',
222       'http://funmoods.com',
223       'http://csdn.net',
224       'http://telegraph.co.uk',
225       'http://taringa.net',
226       # pylint: disable=C0301
227       'http://www.tripadvisor.com/Tourism-g32701-Mendocino_California-Vacations.html',
228       'http://pof.com',
229       'http://wp.pl',
230       'http://soundcloud.com/flosstradamus/tracks',
231       'http://w3schools.com/html/default.asp',
232       'http://ameblo.jp/staff/',
233       'http://wsj.com',
234       'http://web.de',
235       'http://sweetim.com',
236       'http://rambler.ru',
237       'http://gmx.net',
238       'http://www.indeed.com/jobs?q=software&l=Mountain+View%2C+CA',
239       'http://ilivid.com',
240       'http://www.xing.com/search/people?search%5Bq%5D=lufthansa',
241       'http://reuters.com',
242       'http://hostgator.com',
243       'http://www.ikea.com/us/en/catalog/categories/departments/living_room/',
244       'http://www.kaixin001.com/award2012/wenming/index.php',
245       'http://ku6.com',
246       'http://libero.it',
247       'http://samsung.com',
248       'http://hudong.com',
249       'http://espncricinfo.com',
250       'http://china.com',
251       # pylint: disable=C0301
252       'http://www.ups.com/content/us/en/bussol/browse/smallbiz/new-to-ups.html?WT.svl=SolExp',
253       'http://letv.com',
254       'http://ero-advertising.com',
255       'http://mashable.com',
256       'http://iminent.com',
257       'http://rutracker.org',
258       # pylint: disable=C0301
259       'http://www.shopping.hp.com/en_US/home-office/-/products/Laptops/Laptops',
260       # pylint: disable=C0301
261       'http://www.clickbank.com/buy_products.htm?dores=true&mainCategoryId=1340&sortField=POPULARITY&b1=1340',
262       'http://b.hatena.ne.jp/',
263       # pylint: disable=C0301
264       'http://www.youdao.com/search?q=barack+obama&ue=utf8&keyfrom=web.index',
265       'http://forbes.com',
266       'http://nbcnews.com',
267       'http://bitauto.com',
268       'http://php.net',
269       'http://www.target.com/c/women/-/N-5xtd3#?lnk=nav_t_spc_1_0',
270       'http://dianxin.cn',
271       'http://www.aizhan.com/siteall/www.youboy.com/',
272       'http://veiculos-home.mercadolivre.com.br/',
273       'http://kakaku.com',
274       'http://flipkart.com',
275       'http://paipai.com']
276
277     for url in urls_list:
278       self.AddPage(Top2012Q3Page(url, self))