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

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

Issue 2843133002: [Telemetry] Create loading.desktop, a desktop analog for loading.mobile (Closed)
Patch Set: rebase, regenerate sharding, and regenerate perf data Created 3 years, 7 months 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
« no previous file with comments | « tools/perf/page_sets/data/loading_desktop_005.wpr.sha1 ('k') | tools/perf/page_sets/page_cycler_story.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/loading_desktop.py
diff --git a/tools/perf/page_sets/loading_desktop.py b/tools/perf/page_sets/loading_desktop.py
new file mode 100644
index 0000000000000000000000000000000000000000..dc4e8ffdb5307d3a6412423bbd2016c4390bdf3a
--- /dev/null
+++ b/tools/perf/page_sets/loading_desktop.py
@@ -0,0 +1,110 @@
+# 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 page_sets import page_cycler_story
+from telemetry.page import cache_temperature as cache_temperature_module
+from telemetry.page import shared_page_state
+from telemetry import story
+
+
+class LoadingDesktopStorySet(story.StorySet):
+
+ """ A collection of tests to measure loading performance of desktop sites.
+
+ Desktop centric version of loading_mobile.py
+ """
+
+ def __init__(self, cache_temperatures=None):
+ super(LoadingDesktopStorySet, self).__init__(
+ archive_data_file='data/loading_desktop.json',
+ cloud_storage_bucket=story.PARTNER_BUCKET)
+
+ if cache_temperatures is None:
+ cache_temperatures = [
+ cache_temperature_module.PCV1_COLD, cache_temperature_module.PCV1_WARM
+ ]
+ # Passed as (story, name) tuple.
+ self.AddStories(
+ ['intl_ar_fa_he', 'international'],
+ [('http://ynet.co.il/', 'Ynet'),
+ ('http://farsnews.com/', 'FarsNews'),
+ ('http://www.aljayyash.net/', 'Aljayyash'),
+ ('http://haraj.com.sa', 'Haraj')], cache_temperatures)
+ self.AddStories(
+ ['intl_es_fr_pt_BR', 'international'],
+ [('http://elmundo.es/', 'Elmundo'),
+ ('http://www.free.fr/adsl/index.html', 'Free.fr'),
+ ('http://www.leboncoin.fr/annonces/offres/limousin/', 'Leboncoin'),
+ ('http://www.orange.fr/', 'Orange'),
+ ('http://www.uol.com.br/', 'uol.com.br'),
+ ('http://www.mercadolivre.com.br/', 'Mercadolivre')],
+ cache_temperatures)
+ self.AddStories(
+ ['intl_hi_ru', 'international'],
+ [('http://www.rambler.ru/', 'Rambler'),
+ ('https://yandex.ru/search/?text=google', 'Yandex'),
+ ('https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0',
+ 'ru.wikipedia'),
+ ('http://www.indiatimes.com/', 'IndiaTimes'),
+ ('http://www.bhaskar.com/', 'Bhaskar'),
+ ('http://www.flipkart.com', 'FlipKart')], cache_temperatures)
+ self.AddStories(
+ ['intl_ja_zh', 'international'],
+ [('http://www.amazon.co.jp', 'amazon.co.jp'),
+ ('http://potato.2ch.net/test/read.cgi/software/1475288157/', '2ch'),
+ ('http://b.hatena.ne.jp/hotentry', 'HatenaBookmark'),
+ ('http://goo.ne.jp/', 'goo.ne.jp'),
+ ('http://www.yahoo.co.jp/', 'yahoo.co.jp'),
+ ('http://fc2information.blog.fc2.com/', 'FC2Blog'),
+ ('http://kakaku.com/', 'Kakaku'),
+ # pylint: disable=line-too-long
+ ('https://ja.wikipedia.org/wiki/%E3%82%B4%E3%83%AB%E3%82%B413%E3%81%AE%E3%82%A8%E3%83%94%E3%82%BD%E3%83%BC%E3%83%89%E4%B8%80%E8%A6%A7',
+ 'ja.wikipedia'),
+ ('http://www.baidu.com/s?wd=%D0%C2%20%CE%C5', 'Baidu'),
+ ('http://www.qq.com/', 'QQ'),
+ ('http://www.taobao.com/index_global.php', 'Taobao'),
+ ('http://www.sina.com.cn/', 'Sina'),
+ ('http://ruten.com.tw/', 'Ruten')], cache_temperatures)
+ self.AddStories(
+ ['intl_ko_th_vi', 'international'],
+ [('http://us.24h.com.vn/', '24h'),
+ ('http://vnexpress.net/', 'Vnexpress'),
+ ('http://vietnamnet.vn/', 'Vietnamnet'),
+ ('http://kenh14.vn/home.chn', 'Kenh14'),
+ ('http://www.naver.com/', 'Naver'),
+ ('http://www.daum.net/', 'Daum'),
+ ('http://www.donga.com/', 'Donga'),
+ ('http://www.chosun.com/', 'Chosun'),
+ ('http://www.danawa.com/', 'Danawa'),
+ ('http://pantip.com/', 'Pantip')], cache_temperatures)
+ self.AddStories(
+ ['typical'],
+ [('http://www.rei.com/', 'REI'),
+ ('http://www.fifa.com/', 'FIFA'),
+ ('http://www.economist.com/', 'Economist'),
+ ('http://www.theonion.com', 'TheOnion'),
+ ('http://arstechnica.com/', 'ArsTechnica'),
+ ('http://allrecipes.com/recipe/239896/crunchy-french-onion-chicken',
+ 'AllRecipes'),
+ ('http://www.html5rocks.com/en/', 'HTML5Rocks'),
+ ('http://www.mlb.com/', 'MLB'),
+ ('http://www.imdb.com/title/tt0910970/', 'IMDB'),
+ ('http://www.flickr.com/search/?q=monkeys&f=hp', 'Flickr'),
+ ('http://money.cnn.com/', 'money.cnn'),
+ ('http://www.nationalgeographic.com/', 'NatGeo'),
+ ('http://premierleague.com', 'PremierLeague'),
+ ('http://walgreens.com', 'Walgreens'),
+ ('http://colorado.edu', 'Colorado.edu'),
+ ('http://www.ticketmaster.com/', 'TicketMaster'),
+ ('http://www.theverge.com/', 'TheVerge'),
+ ('http://www.airbnb.com/', 'AirBnB'),
+ ('http://www.ign.com/', 'IGN'),
+ ('http://www.fda.gov', 'FDA')], cache_temperatures)
+
+ def AddStories(self, tags, urls, cache_temperatures):
+ for url, name in urls:
+ for temp in cache_temperatures:
+ self.AddStory(page_cycler_story.PageCyclerStory(url, self,
+ shared_page_state_class=shared_page_state.SharedMobilePageState,
+ cache_temperature=temp, tags=tags, name=name))
« no previous file with comments | « tools/perf/page_sets/data/loading_desktop_005.wpr.sha1 ('k') | tools/perf/page_sets/page_cycler_story.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698