Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 from telemetry.page import page as page_module | |
| 5 from telemetry import story | |
| 6 | |
| 7 | |
| 8 class V8Top25(page_module.Page): | |
| 9 | |
| 10 def __init__(self, url, page_set, name=''): | |
| 11 super(V8Top25, self).__init__( | |
| 12 url=url, page_set=page_set, name=name) | |
| 13 self.archive_data_file = 'data/v8_top_25.json' | |
| 14 | |
| 15 def RunPageInteractions(self, action_runner): | |
| 16 # We wait for 20 seconds to make sure we capture enough information | |
| 17 # to calculate the interactive time correctly. | |
| 18 action_runner.Wait(20) | |
| 19 | |
| 20 # This URL list is a migration of a non-telemetry existing V8 benchmark. | |
| 21 urls_list = [ | |
| 22 "https://www.google.de/search?q=v8", | |
|
nednguyen
2016/11/10 23:04:11
nits: string are always single quoted unless you c
fmeawad
2016/11/10 23:52:31
Done.
| |
| 23 "https://www.youtube.com", | |
| 24 "https://www.youtube.com/watch?v=_kZsOISarzg", | |
| 25 "https://www.facebook.com/shakira", | |
| 26 "http://www.baidu.com/s?wd=v8", | |
| 27 "http://www.yahoo.co.jp", | |
| 28 "http://www.amazon.com/s/?field-keywords=v8", | |
| 29 # pylint: disable=line-too-long | |
| 30 "http://hi.wikipedia.org/wiki/%E0%A4%AE%E0%A5%81%E0%A4%96%E0%A4%AA%E0%A5%83% E0%A4%B7%E0%A5%8D%E0%A4%A0", | |
| 31 "https://en.wikipedia.org/w/index.php?title=Barack_Obama&veaction=edit", | |
| 32 "http://www.qq.com", | |
| 33 "http://www.twitter.com/taylorswift13", | |
| 34 "http://www.reddit.com", | |
| 35 "http://www.ebay.fr/sch/i.html?_nkw=v8", | |
| 36 "http://edition.cnn.com", | |
| 37 "http://world.taobao.com", | |
| 38 "http://www.instagram.com/archdigest", | |
| 39 "https://www.linkedin.com/m/", | |
| 40 "http://www.msn.com/ar-ae", | |
| 41 "http://www.bing.com/search?q=v8+engine", | |
| 42 "http://www.pinterest.com/categories/popular", | |
| 43 "http://www.sina.com.cn", | |
| 44 "http://weibo.com", | |
| 45 "http://yandex.ru/search/?text=v8", | |
| 46 "http://www.wikiwand.com/en/hill", | |
| 47 "http://meta.discourse.org", | |
| 48 "http://reddit.musicplayer.io", | |
| 49 "http://inbox.google.com", | |
| 50 "http://maps.google.co.jp/maps/search/restaurant+tokyo", | |
| 51 "https://adwords.google.com", | |
| 52 "http://pollouer.muc/Speedometer/CustomRunner.html?angular", | |
| 53 "http://pollouer.muc/Speedometer/CustomRunner.html?jquery", | |
| 54 "http://pollouer.muc/Speedometer/CustomRunner.html?backbone", | |
| 55 "http://pollouer.muc/Speedometer/CustomRunner.html?ember", | |
| 56 "http://pollouer.muc/Speedometer/CustomRunner.html?vanilla", | |
| 57 "https://cdn.ampproject.org/c/www.bbc.co.uk/news/amp/37344292#log=3", | |
| 58 ] | |
| 59 | |
| 60 | |
| 61 class V8Top25StorySet(story.StorySet): | |
| 62 """~25 of top pages, used for v8 testing. They represent popular websites as | |
| 63 well as other pages the V8 team wants to track due to their unique | |
| 64 characteristics.""" | |
| 65 | |
| 66 def __init__(self): | |
| 67 super(V8Top25StorySet, self).__init__( | |
| 68 archive_data_file='data/v8_top_25.json', | |
| 69 cloud_storage_bucket=story.INTERNAL_BUCKET) | |
| 70 | |
| 71 for url in urls_list: | |
| 72 self.AddStory(V8Top25(url, self)) | |
| OLD | NEW |