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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
5 from page_sets import page_cycler_story
6 from telemetry.page import cache_temperature as cache_temperature_module
7 from telemetry.page import shared_page_state
8 from telemetry import story
9
10
11 class LoadingDesktopStorySet(story.StorySet):
12
13 """ A collection of tests to measure loading performance of desktop sites.
14
15 Desktop centric version of loading_mobile.py
16 """
17
18 def __init__(self, cache_temperatures=None):
19 super(LoadingDesktopStorySet, self).__init__(
20 archive_data_file='data/loading_desktop.json',
21 cloud_storage_bucket=story.PARTNER_BUCKET)
22
23 if cache_temperatures is None:
24 cache_temperatures = [
25 cache_temperature_module.PCV1_COLD, cache_temperature_module.PCV1_WARM
26 ]
27 # Passed as (story, name) tuple.
28 self.AddStories(
29 ['intl_ar_fa_he', 'international'],
30 [('http://ynet.co.il/', 'Ynet'),
31 ('http://farsnews.com/', 'FarsNews'),
32 ('http://www.aljayyash.net/', 'Aljayyash'),
33 ('http://haraj.com.sa', 'Haraj')], cache_temperatures)
34 self.AddStories(
35 ['intl_es_fr_pt_BR', 'international'],
36 [('http://elmundo.es/', 'Elmundo'),
37 ('http://www.free.fr/adsl/index.html', 'Free.fr'),
38 ('http://www.leboncoin.fr/annonces/offres/limousin/', 'Leboncoin'),
39 ('http://www.orange.fr/', 'Orange'),
40 ('http://www.uol.com.br/', 'uol.com.br'),
41 ('http://www.mercadolivre.com.br/', 'Mercadolivre')],
42 cache_temperatures)
43 self.AddStories(
44 ['intl_hi_ru', 'international'],
45 [('http://www.rambler.ru/', 'Rambler'),
46 ('https://yandex.ru/search/?text=google', 'Yandex'),
47 ('https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0',
48 'ru.wikipedia'),
49 ('http://www.indiatimes.com/', 'IndiaTimes'),
50 ('http://www.bhaskar.com/', 'Bhaskar'),
51 ('http://www.flipkart.com', 'FlipKart')], cache_temperatures)
52 self.AddStories(
53 ['intl_ja_zh', 'international'],
54 [('http://www.amazon.co.jp', 'amazon.co.jp'),
55 ('http://potato.2ch.net/test/read.cgi/software/1475288157/', '2ch'),
56 ('http://b.hatena.ne.jp/hotentry', 'HatenaBookmark'),
57 ('http://goo.ne.jp/', 'goo.ne.jp'),
58 ('http://www.yahoo.co.jp/', 'yahoo.co.jp'),
59 ('http://fc2information.blog.fc2.com/', 'FC2Blog'),
60 ('http://kakaku.com/', 'Kakaku'),
61 # pylint: disable=line-too-long
62 ('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',
63 'ja.wikipedia'),
64 ('http://www.baidu.com/s?wd=%D0%C2%20%CE%C5', 'Baidu'),
65 ('http://www.qq.com/', 'QQ'),
66 ('http://www.taobao.com/index_global.php', 'Taobao'),
67 ('http://www.sina.com.cn/', 'Sina'),
68 ('http://ruten.com.tw/', 'Ruten')], cache_temperatures)
69 self.AddStories(
70 ['intl_ko_th_vi', 'international'],
71 [('http://us.24h.com.vn/', '24h'),
72 ('http://vnexpress.net/', 'Vnexpress'),
73 ('http://vietnamnet.vn/', 'Vietnamnet'),
74 ('http://kenh14.vn/home.chn', 'Kenh14'),
75 ('http://www.naver.com/', 'Naver'),
76 ('http://www.daum.net/', 'Daum'),
77 ('http://www.donga.com/', 'Donga'),
78 ('http://www.chosun.com/', 'Chosun'),
79 ('http://www.danawa.com/', 'Danawa'),
80 ('http://pantip.com/', 'Pantip')], cache_temperatures)
81 self.AddStories(
82 ['typical'],
83 [('http://www.rei.com/', 'REI'),
84 ('http://www.fifa.com/', 'FIFA'),
85 ('http://www.economist.com/', 'Economist'),
86 ('http://www.theonion.com', 'TheOnion'),
87 ('http://arstechnica.com/', 'ArsTechnica'),
88 ('http://allrecipes.com/recipe/239896/crunchy-french-onion-chicken',
89 'AllRecipes'),
90 ('http://www.html5rocks.com/en/', 'HTML5Rocks'),
91 ('http://www.mlb.com/', 'MLB'),
92 ('http://www.imdb.com/title/tt0910970/', 'IMDB'),
93 ('http://www.flickr.com/search/?q=monkeys&f=hp', 'Flickr'),
94 ('http://money.cnn.com/', 'money.cnn'),
95 ('http://www.nationalgeographic.com/', 'NatGeo'),
96 ('http://premierleague.com', 'PremierLeague'),
97 ('http://walgreens.com', 'Walgreens'),
98 ('http://colorado.edu', 'Colorado.edu'),
99 ('http://www.ticketmaster.com/', 'TicketMaster'),
100 ('http://www.theverge.com/', 'TheVerge'),
101 ('http://www.airbnb.com/', 'AirBnB'),
102 ('http://www.ign.com/', 'IGN'),
103 ('http://www.fda.gov', 'FDA')], cache_temperatures)
104
105 def AddStories(self, tags, urls, cache_temperatures):
106 for url, name in urls:
107 for temp in cache_temperatures:
108 self.AddStory(page_cycler_story.PageCyclerStory(url, self,
109 shared_page_state_class=shared_page_state.SharedMobilePageState,
110 cache_temperature=temp, tags=tags, name=name))
OLDNEW
« 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