Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: tools/perf/page_sets/v8_top_25.py

Issue 2493953002: Initial implementation of V8 Top 25 Runtime Stats benchmark (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/perf/page_sets/v8_top_25.py
diff --git a/tools/perf/page_sets/v8_top_25.py b/tools/perf/page_sets/v8_top_25.py
new file mode 100644
index 0000000000000000000000000000000000000000..1da039b4f8e108bcedc2853c6d9e91593121ba0a
--- /dev/null
+++ b/tools/perf/page_sets/v8_top_25.py
@@ -0,0 +1,72 @@
+# Copyright 2016 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 import story
+
+
+class V8Top25(page_module.Page):
+
+ def __init__(self, url, page_set, name=''):
+ super(V8Top25, self).__init__(
+ url=url, page_set=page_set, name=name)
+ self.archive_data_file = 'data/v8_top_25.json'
+
+ def RunPageInteractions(self, action_runner):
+ # We wait for 20 seconds to make sure we capture enough information
+ # to calculate the interactive time correctly.
+ action_runner.Wait(20)
+
+# This URL list is a migration of a non-telemetry existing V8 benchmark.
+urls_list = [
+ "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.
+ "https://www.youtube.com",
+ "https://www.youtube.com/watch?v=_kZsOISarzg",
+ "https://www.facebook.com/shakira",
+ "http://www.baidu.com/s?wd=v8",
+ "http://www.yahoo.co.jp",
+ "http://www.amazon.com/s/?field-keywords=v8",
+ # pylint: disable=line-too-long
+ "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",
+ "https://en.wikipedia.org/w/index.php?title=Barack_Obama&veaction=edit",
+ "http://www.qq.com",
+ "http://www.twitter.com/taylorswift13",
+ "http://www.reddit.com",
+ "http://www.ebay.fr/sch/i.html?_nkw=v8",
+ "http://edition.cnn.com",
+ "http://world.taobao.com",
+ "http://www.instagram.com/archdigest",
+ "https://www.linkedin.com/m/",
+ "http://www.msn.com/ar-ae",
+ "http://www.bing.com/search?q=v8+engine",
+ "http://www.pinterest.com/categories/popular",
+ "http://www.sina.com.cn",
+ "http://weibo.com",
+ "http://yandex.ru/search/?text=v8",
+ "http://www.wikiwand.com/en/hill",
+ "http://meta.discourse.org",
+ "http://reddit.musicplayer.io",
+ "http://inbox.google.com",
+ "http://maps.google.co.jp/maps/search/restaurant+tokyo",
+ "https://adwords.google.com",
+ "http://pollouer.muc/Speedometer/CustomRunner.html?angular",
+ "http://pollouer.muc/Speedometer/CustomRunner.html?jquery",
+ "http://pollouer.muc/Speedometer/CustomRunner.html?backbone",
+ "http://pollouer.muc/Speedometer/CustomRunner.html?ember",
+ "http://pollouer.muc/Speedometer/CustomRunner.html?vanilla",
+ "https://cdn.ampproject.org/c/www.bbc.co.uk/news/amp/37344292#log=3",
+]
+
+
+class V8Top25StorySet(story.StorySet):
+ """~25 of top pages, used for v8 testing. They represent popular websites as
+ well as other pages the V8 team wants to track due to their unique
+ characteristics."""
+
+ def __init__(self):
+ super(V8Top25StorySet, self).__init__(
+ archive_data_file='data/v8_top_25.json',
+ cloud_storage_bucket=story.INTERNAL_BUCKET)
+
+ for url in urls_list:
+ self.AddStory(V8Top25(url, self))
« tools/perf/benchmarks/v8_top_25.py ('K') | « tools/perf/page_sets/data/v8_top_25_000.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698