| 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 |
| 21 # This URL list is a migration of a non-telemetry existing V8 benchmark. |
| 22 urls_list = [ |
| 23 'https://www.google.de/search?q=v8', |
| 24 'https://www.youtube.com', |
| 25 'https://www.youtube.com/watch?v=_kZsOISarzg', |
| 26 'https://www.facebook.com/shakira', |
| 27 'http://www.baidu.com/s?wd=v8', |
| 28 'http://www.yahoo.co.jp', |
| 29 'http://www.amazon.com/s/?field-keywords=v8', |
| 30 # pylint: disable=line-too-long |
| 31 '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', |
| 32 'https://en.wikipedia.org/w/index.php?title=Barack_Obama&veaction=edit', |
| 33 'http://www.qq.com', |
| 34 'http://www.twitter.com/taylorswift13', |
| 35 'http://www.reddit.com', |
| 36 'http://www.ebay.fr/sch/i.html?_nkw=v8', |
| 37 'http://edition.cnn.com', |
| 38 'http://world.taobao.com', |
| 39 'http://www.instagram.com/archdigest', |
| 40 'https://www.linkedin.com/m/', |
| 41 'http://www.msn.com/ar-ae', |
| 42 'http://www.bing.com/search?q=v8+engine', |
| 43 'http://www.pinterest.com/categories/popular', |
| 44 'http://www.sina.com.cn', |
| 45 'http://weibo.com', |
| 46 'http://yandex.ru/search/?text=v8', |
| 47 'http://www.wikiwand.com/en/hill', |
| 48 'http://meta.discourse.org', |
| 49 'http://reddit.musicplayer.io', |
| 50 'http://inbox.google.com', |
| 51 'http://maps.google.co.jp/maps/search/restaurant+tokyo', |
| 52 'https://adwords.google.com', |
| 53 'http://pollouer.muc/Speedometer/CustomRunner.html?angular', |
| 54 'http://pollouer.muc/Speedometer/CustomRunner.html?jquery', |
| 55 'http://pollouer.muc/Speedometer/CustomRunner.html?backbone', |
| 56 'http://pollouer.muc/Speedometer/CustomRunner.html?ember', |
| 57 'http://pollouer.muc/Speedometer/CustomRunner.html?vanilla', |
| 58 'https://cdn.ampproject.org/c/www.bbc.co.uk/news/amp/37344292#log=3', |
| 59 ] |
| 60 |
| 61 |
| 62 class V8Top25StorySet(story.StorySet): |
| 63 """~25 of top pages, used for v8 testing. They represent popular websites as |
| 64 well as other pages the V8 team wants to track due to their unique |
| 65 characteristics.""" |
| 66 |
| 67 def __init__(self): |
| 68 super(V8Top25StorySet, self).__init__( |
| 69 archive_data_file='data/v8_top_25.json', |
| 70 cloud_storage_bucket=story.INTERNAL_BUCKET) |
| 71 |
| 72 for url in urls_list: |
| 73 self.AddStory(V8Top25(url, self)) |
| OLD | NEW |