Index: tools/perf/page_sets/typical_25_mobile.py |
diff --git a/tools/perf/page_sets/typical_25_mobile.py b/tools/perf/page_sets/typical_25_mobile.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..98ac12a90e0990ee668307273880d81f0b9ea2a3 |
--- /dev/null |
+++ b/tools/perf/page_sets/typical_25_mobile.py |
@@ -0,0 +1,59 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+from telemetry.page import page as page_module |
+from telemetry.page import page_set as page_set_module |
+ |
+ |
+class Typical25MobilePage(page_module.Page): |
+ |
+ def __init__(self, url, page_set, name=''): |
+ super(Typical25MobilePage, self).__init__( |
+ url=url, page_set=page_set, name=name, |
+ credentials_path = 'data/credentials.json') |
+ self.user_agent_type = 'mobile' |
+ self.archive_data_file = 'data/typical_25_mobile.json' |
+ |
+ def RunPowerPageInteractions(self, action_runner): |
+ action_runner.Wait(20) |
+ action_runner.ScrollPage() |
+ action_runner.Wait(20) |
+ |
+class Typical25MobilePageSet(page_set_module.PageSet): |
tonyg
2014/10/21 16:20:54
What's the cycle time like w/ 25 URLs and 40s paus
sullivan
2014/10/21 16:36:35
I am still trying to record the page set so I can
sullivan
2014/10/21 21:11:14
Cycle time was indeed too long. Cut it down to 10
|
+ |
+ """ 25 typical mobile pages, used for power testing. """ |
+ |
+ def __init__(self): |
+ super(Typical25MobilePageSet, self).__init__( |
+ user_agent_type='mobile', # Android acceptance uses desktop. |
+ archive_data_file='data/typical_25_mobile.json', |
+ bucket=page_set_module.PARTNER_BUCKET) |
+ |
+ urls_list = [ |
+ 'm.facebook.com/barackobama', |
+ # Why: featured wikipedia article with lots of pictures |
+ 'http://en.m.wikipedia.org/wiki/Yellowstone_fires_of_1988', |
+ # Why: current top Q&A on popular Japanese site |
+ 'http://m.chiebukuro.yahoo.co.jp/detail/q10136829180', |
+ 'http://www.dailymotion.com/us/channel/kids/', |
+ 'http://www.amazon.com/gp/aw/d/B00DR0PDNE', |
+ 'http://mobile.twitter.com/katyperry', |
+ # Why: popular page on Russian social networking site |
+ 'http://m.vk.com/shakira', |
+ 'http://www.yahoo.com/', |
+ 'http://m.huffpost.com/us/entry/6004486', |
+ 'http://www.cnn.com/2014/03/31/showbiz/tv/himym-finale/index.html', |
+ 'http://www.cnet.com/news/get-a-39-inch-led-hdtv-for-199-99/', |
+ # Why: RTL language site |
+ 'http://www.aljazeera.net/portal', |
+ 'http://m.ebay.com/itm/351157205404', |
+ 'http://m.tmz.com/#Article/2014/05/16/billboard-music-awards-alki-david-michael-jackson-hologram-lawsuit', |
+ 'http://www.buzzfeed.com/expresident/pictures-that-will-restore-your-faith-in-humanity?s=mobile#1eumyrj', |
+ 'http://mashable.com/2011/10/23/top-mashable-infographics/', |
+ 'http://siriuslymeg.tumblr.com/', |
+ 'http://auto.qq.com/a/20141021/006886.htm', |
+ 'http://wapbaike.baidu.com/', |
+ ] |
+ |
+ for url in urls_list: |
+ self.AddPage(Typical25MobilePage(url, self)) |