Commit ca7ab438 authored by Kuo-Hsin Yang's avatar Kuo-Hsin Yang Committed by Commit Bot

Remove page_cycler_v2

page_cycler_v2 is replaced by loading.desktop.

Bug: 868755
Change-Id: Ia4650a92e85f9c60f99d8647ca0bf291b1ceee60
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1743849Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Reviewed-by: default avatarKunihiko Sakamoto <ksakamoto@chromium.org>
Commit-Queue: Kuo-Hsin Yang <vovoy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#685458}
parent cc96ed02
# 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.
"""The page cycler v2.
For details, see design doc:
https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0
"""
from core import perf_benchmark
import page_sets
from benchmarks import loading_metrics_category
from telemetry import benchmark
from telemetry.web_perf import timeline_based_measurement
class _PageCyclerV2(perf_benchmark.PerfBenchmark):
options = {'pageset_repeat': 2}
def CreateCoreTimelineBasedMeasurementOptions(self):
tbm_options = timeline_based_measurement.Options()
loading_metrics_category.AugmentOptionsForLoadingMetrics(tbm_options)
return tbm_options
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2Typical25(_PageCyclerV2):
"""Page load time benchmark for a 25 typical web pages.
Designed to represent typical, not highly optimized or highly popular web
sites. Runs against pages recorded in June, 2014.
"""
@classmethod
def Name(cls):
return 'page_cycler_v2.typical_25'
def CreateStorySet(self, options):
return page_sets.Typical25PageSet()
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2IntlArFaHe(_PageCyclerV2):
"""Page load time for a variety of pages in Arabic, Farsi and Hebrew.
Runs against pages recorded in April, 2013.
"""
page_set = page_sets.IntlArFaHePageSet
@classmethod
def Name(cls):
return 'page_cycler_v2.intl_ar_fa_he'
def CreateStorySet(self, options):
return page_sets.IntlArFaHePageSet()
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2IntlEsFrPtBr(_PageCyclerV2):
"""Page load time for a pages in Spanish, French and Brazilian Portuguese.
Runs against pages recorded in April, 2013.
"""
page_set = page_sets.IntlEsFrPtBrPageSet
@classmethod
def Name(cls):
return 'page_cycler_v2.intl_es_fr_pt-BR'
def CreateStorySet(self, options):
return page_sets.IntlEsFrPtBrPageSet()
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2IntlHiRu(_PageCyclerV2):
"""Page load time benchmark for a variety of pages in Hindi and Russian.
Runs against pages recorded in April, 2013.
"""
page_set = page_sets.IntlHiRuPageSet
@classmethod
def Name(cls):
return 'page_cycler_v2.intl_hi_ru'
def CreateStorySet(self, options):
return page_sets.IntlHiRuPageSet()
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2IntlJaZh(_PageCyclerV2):
"""Page load time benchmark for a variety of pages in Japanese and Chinese.
Runs against pages recorded in April, 2013.
"""
@classmethod
def Name(cls):
return 'page_cycler_v2.intl_ja_zh'
def CreateStorySet(self, options):
return page_sets.IntlJaZhPageSet()
@benchmark.Info(emails=['kouhei@chromium.org', 'ksakamoto@chromium.org'])
class PageCyclerV2IntlKoThVi(_PageCyclerV2):
"""Page load time for a variety of pages in Korean, Thai and Vietnamese.
Runs against pages recorded in April, 2013.
"""
page_set = page_sets.IntlKoThViPageSet
@classmethod
def Name(cls):
return 'page_cycler_v2.intl_ko_th_vi'
def CreateStorySet(self, options):
return page_sets.IntlKoThViPageSet()
{
"archives": {
"http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://arstechnica.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://arstechnica.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://colorado.edu_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://colorado.edu_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-you-never-believe_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-you-never-believe_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://money.cnn.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://money.cnn.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://premierleague.com_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://premierleague.com_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://walgreens.com_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://walgreens.com_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.airbnb.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.airbnb.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.economist.com/news/science-and-technology/21573529-small-models-cosmic-phenomena-are-shedding-light-real-thing-how-build_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.economist.com/news/science-and-technology/21573529-small-models-cosmic-phenomena-are-shedding-light-real-thing-how-build_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.fda.gov_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.fda.gov_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.fifa.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.fifa.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.flickr.com/search/?q=monkeys&f=hp_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.flickr.com/search/?q=monkeys&f=hp_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.gamestop.com/ps3_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.gamestop.com/ps3_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.html5rocks.com/en/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.html5rocks.com/en/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.ign.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.ign.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.imdb.com/title/tt0910970/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.imdb.com/title/tt0910970/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.mlb.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.mlb.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.nationalgeographic.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.nationalgeographic.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.nick.com/games_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.nick.com/games_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.osubeavers.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.osubeavers.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.rei.com/_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.rei.com/_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.theonion.com_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.theonion.com_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-in-the-world_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-in-the-world_warm": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/1837448?brand=none&tm_link=tm_homeA_rc_name2_cold": {
"DEFAULT": "typical_25_002.wprgo"
},
"http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/1837448?brand=none&tm_link=tm_homeA_rc_name2_warm": {
"DEFAULT": "typical_25_002.wprgo"
}
},
"description": "Describes the Web Page Replay archives for a story set. Don't edit by hand! Use record_wpr for updating.",
"platform_specific": true
}
\ No newline at end of file
63d6d450e5517411e8fc3d4d095bb5e87e739f37
\ No newline at end of file
# Copyright 2014 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.page import cache_temperature as cache_temperature_module
from telemetry.page import shared_page_state
from telemetry import story
class Typical25Page(page_module.Page):
def __init__(self, url, page_set,
shared_page_state_class=shared_page_state.SharedDesktopPageState,
cache_temperature=None):
if cache_temperature == cache_temperature_module.COLD:
temp_suffix = '_cold'
elif cache_temperature == cache_temperature_module.WARM:
temp_suffix = '_warm'
else:
raise NotImplementedError
super(Typical25Page, self).__init__(
url=url, page_set=page_set,
shared_page_state_class=shared_page_state_class,
cache_temperature=cache_temperature, name=url + temp_suffix)
if cache_temperature != cache_temperature_module.ANY:
self.grouping_keys['cache_temperature'] = cache_temperature
def RunPageInteractions(self, action_runner):
action_runner.WaitForJavaScriptCondition(
'performance.timing.loadEventStart > 0')
return
class Typical25PageSet(story.StorySet):
""" Pages designed to represent the median, not highly optimized web """
def __init__(self, cache_temperatures=(cache_temperature_module.COLD,
cache_temperature_module.WARM)):
super(Typical25PageSet, self).__init__(
archive_data_file='data/typical_25.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
if cache_temperatures is None:
cache_temperatures = [cache_temperature_module.ANY]
urls_list = [
# Why: Alexa games #48
'http://www.nick.com/games',
# Why: Alexa sports #45
'http://www.rei.com/',
# Why: Alexa sports #50
'http://www.fifa.com/',
# Why: Alexa shopping #41
'http://www.gamestop.com/ps3',
# Why: Alexa news #55
('http://www.economist.com/news/science-and-technology/21573529-small-'
'models-cosmic-phenomena-are-shedding-light-real-thing-how-build'),
# Why: Alexa news #67
'http://www.theonion.com',
'http://arstechnica.com/',
# Why: Alexa home #10
'http://allrecipes.com/Recipe/Pull-Apart-Hot-Cross-Buns/Detail.aspx',
'http://www.html5rocks.com/en/',
'http://www.mlb.com/',
'http://gawker.com/5939683/based-on-a-true-story-is-a-rotten-lie-i-hope-you-never-believe',
'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://www.osubeavers.com/',
'http://walgreens.com',
'http://colorado.edu',
('http://www.ticketmaster.com/JAY-Z-and-Justin-Timberlake-tickets/artist/'
'1837448?brand=none&tm_link=tm_homeA_rc_name2'),
# pylint: disable=line-too-long
'http://www.theverge.com/2013/3/5/4061684/inside-ted-the-smartest-bubble-in-the-world',
'http://www.airbnb.com/',
'http://www.ign.com/',
# Why: Alexa health #25
'http://www.fda.gov',
]
for url in urls_list:
for temp in cache_temperatures:
self.AddStory(Typical25Page(url, self, cache_temperature=temp))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment