| 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..1c0c8fcc14185c976db6ad68b21c77e8f7f825cf
|
| --- /dev/null
|
| +++ b/tools/perf/page_sets/loading_desktop.py
|
| @@ -0,0 +1,102 @@
|
| +# 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.ANY]
|
| +
|
| + self.AddStories(
|
| + ['intl_ar_fa_he', 'international'],
|
| + ['http://ynet.co.il/',
|
| + 'http://farsnews.com/',
|
| + 'http://www.aljayyash.net/',
|
| + 'http://haraj.com.sa'], cache_temperatures)
|
| + self.AddStories(
|
| + ['intl_es_fr_pt_BR', 'international'],
|
| + ['http://elmundo.es/',
|
| + 'http://www.free.fr/adsl/index.html',
|
| + 'http://www.leboncoin.fr/annonces/offres/limousin/',
|
| + 'http://www.orange.fr/',
|
| + 'http://www.uol.com.br/',
|
| + 'http://www.mercadolivre.com.br/'], cache_temperatures)
|
| + self.AddStories(
|
| + ['intl_hi_ru', 'international'],
|
| + ['http://www.rambler.ru/',
|
| + 'https://yandex.ru/search/?text=google',
|
| + 'https://ru.wikipedia.org/wiki/%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0',
|
| + 'http://www.indiatimes.com/',
|
| + 'http://www.bhaskar.com/'], cache_temperatures)
|
| + self.AddStories(
|
| + ['intl_ja_zh', 'international'],
|
| + ['http://www.amazon.co.jp',
|
| + 'http://potato.2ch.net/test/read.cgi/software/1475288157/',
|
| + 'http://b.hatena.ne.jp/hotentry',
|
| + 'http://goo.ne.jp/',
|
| + 'http://www.yahoo.co.jp/',
|
| + 'http://fc2information.blog.fc2.com/',
|
| + 'http://kakaku.com/',
|
| + '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',
|
| + 'http://www.baidu.com/s?wd=%D0%C2%20%CE%C5',
|
| + 'http://www.qq.com/',
|
| + 'http://www.taobao.com/index_global.php',
|
| + 'http://www.sina.com.cn/',
|
| + 'http://ruten.com.tw/'], cache_temperatures)
|
| + self.AddStories(
|
| + ['intl_ko_th_vi', 'international'],
|
| + ['http://us.24h.com.vn/',
|
| + 'http://vnexpress.net/',
|
| + 'http://vietnamnet.vn/',
|
| + 'http://kenh14.vn/home.chn',
|
| + 'http://www.naver.com/',
|
| + 'http://www.daum.net/',
|
| + 'http://www.donga.com/',
|
| + 'http://www.chosun.com/',
|
| + 'http://www.danawa.com/',
|
| + 'http://pantip.com/'], cache_temperatures)
|
| + self.AddStories(
|
| + ['typical'],
|
| + ['http://www.rei.com/',
|
| + 'http://www.fifa.com/',
|
| + 'http://www.economist.com/',
|
| + 'http://www.theonion.com',
|
| + 'http://arstechnica.com/',
|
| + 'http://allrecipes.com/recipe/239896/crunchy-french-onion-chicken',
|
| + 'http://www.html5rocks.com/en/',
|
| + 'http://www.mlb.com/',
|
| + 'http://www.imdb.com/title/tt0910970/',
|
| + 'http://www.flickr.com/search/?q=monkeys&f=hp',
|
| + 'http://money.cnn.com/',
|
| + 'http://www.nationalgeographic.com/',
|
| + 'http://premierleague.com',
|
| + 'http://walgreens.com',
|
| + 'http://colorado.edu',
|
| + 'http://www.ticketmaster.com/',
|
| + 'http://www.theverge.com/',
|
| + 'http://www.airbnb.com/',
|
| + 'http://www.ign.com/',
|
| + 'http://www.fda.gov'], cache_temperatures)
|
| +
|
| + def AddStories(self, tags, urls, cache_temperatures):
|
| + for url 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))
|
|
|