Commit f4c5ef76 authored by Tim Dresser's avatar Tim Dresser Committed by Commit Bot

Abridge loading.desktop and loading.mobile benchmarks.

Bug: 1051558
Change-Id: I2748972508acb489f1a455a7dbd8617f26909dd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2052089
Commit-Queue: Timothy Dresser <tdresser@chromium.org>
Reviewed-by: default avatarMatt Falkenhagen <falken@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#741195}
parent 070eba39
......@@ -28,8 +28,8 @@ jetstream,hablich@chromium.org,Blink>JavaScript,,
jetstream2,"hablich@chromium.org, tcwang@chromium.org",Blink>JavaScript,https://browserbench.org/JetStream/in-depth.html,
kraken,hablich@chromium.org,Blink>JavaScript,,
load_library_perf_tests,"xhwang@chromium.org, crouleau@chromium.org",Internals>Media>Encrypted,,
loading.desktop,"kouhei@chromium.org, ksakamoto@chromium.org",Blink>Loader,https://bit.ly/loading-benchmarks,"cache_temperature_cold,cache_temperature_warm,international,intl_ar_fa_he,intl_es_fr_pt_BR,intl_hi_ru,intl_ja_zh,intl_ko_th_vi,typical"
loading.mobile,"kouhei@chromium.org, ksakamoto@chromium.org",Blink>Loader,https://bit.ly/loading-benchmarks,"cache_temperature_cold,cache_temperature_hot,cache_temperature_warm,easy_ttfmp,easy_tti,global,pwa,tough_ttfmp,tough_tti"
loading.desktop,"kouhei@chromium.org, ksakamoto@chromium.org",Blink>Loader,https://bit.ly/loading-benchmarks,"abridged,cache_temperature_cold,cache_temperature_warm,international,intl_ar_fa_he,intl_es_fr_pt_BR,intl_hi_ru,intl_ja_zh,intl_ko_th_vi,typical"
loading.mobile,"kouhei@chromium.org, ksakamoto@chromium.org",Blink>Loader,https://bit.ly/loading-benchmarks,"abridged,cache_temperature_cold,cache_temperature_hot,cache_temperature_warm,easy_ttfmp,easy_tti,global,pwa,tough_ttfmp,tough_tti"
media.desktop,dalecurtis@chromium.org,Internals>Media,https://chromium.googlesource.com/chromium/src/+/master/docs/speed/benchmark/harnesses/media.md,"aac,audio_only,audio_video,av1,background,beginning_to_end,busyjs,cns,h264,is_4k,is_50fps,mp3,mse,opus,seek,src,video_only,vorbis,vp8,vp9"
media.mobile,dalecurtis@chromium.org,Internals>Media,https://chromium.googlesource.com/chromium/src/+/master/docs/speed/benchmark/harnesses/media.md,"aac,audio_only,audio_video,background,beginning_to_end,busyjs,cns,h264,mp3,mse,opus,seek,src,video_only,vorbis,vp9"
media_perftests,"crouleau@chromium.org, dalecurtis@chromium.org",Internals>Media,,
......
......@@ -2,11 +2,33 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
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
Tag = collections.namedtuple('Tag', ['name', 'description'])
# pylint: disable=line-too-long
# Used https://cs.chromium.org/chromium/src/tools/perf/experimental/story_clustering/README.md
# to find representative stories.
ABRIDGED = Tag('abridged', 'Story should be included in abridged runs')
ABRIDGED_STORY_NAMES = [
"AirBnB_warm",
"ru.wikipedia_warm",
"Baidu_warm",
"AllRecipes_cold",
"TheOnion_cold",
"Naver_cold",
"Aljayyash_cold",
"Taobao_warm",
"Orange_cold",
"Orange_warm",
]
class LoadingDesktopStorySet(story.StorySet):
......@@ -94,6 +116,9 @@ class LoadingDesktopStorySet(story.StorySet):
('http://www.airbnb.com/', 'AirBnB'),
('http://www.ign.com/', 'IGN')], cache_temperatures)
def GetAbridgedStorySetTagFilter(self):
return ABRIDGED.name
def AddStories(self, tags, urls, cache_temperatures):
for url, name in urls:
for temp in cache_temperatures:
......@@ -105,6 +130,18 @@ class LoadingDesktopStorySet(story.StorySet):
tags.append('cache_temperature_warm')
else:
raise NotImplementedError
self.AddStory(page_cycler_story.PageCyclerStory(url, self,
shared_page_state_class=shared_page_state.SharedDesktopPageState,
cache_temperature=temp, tags=tags, name=page_name))
page_tags = tags[:]
if page_name in ABRIDGED_STORY_NAMES:
page_tags.append(ABRIDGED.name)
self.AddStory(
page_cycler_story.PageCyclerStory(
url,
self,
shared_page_state_class=shared_page_state.
SharedDesktopPageState,
cache_temperature=temp,
tags=page_tags,
name=page_name))
......@@ -2,12 +2,30 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import collections
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.page import traffic_setting as traffic_setting_module
from telemetry import story
Tag = collections.namedtuple('Tag', ['name', 'description'])
# pylint: disable=line-too-long
# Used https://cs.chromium.org/chromium/src/tools/perf/experimental/story_clustering/README.md
# to find representative stories.
ABRIDGED = Tag('abridged', 'Story should be included in abridged runs')
ABRIDGED_STORY_NAMES = [
"Facebook",
"GoogleIndia",
"LocalMoxie",
"Dramaq",
"Hongkiat",
"FranceTVInfo",
]
class LoadingMobileStorySet(story.StorySet):
......@@ -125,6 +143,9 @@ class LoadingMobileStorySet(story.StorySet):
('http://www.francetvinfo.fr', 'FranceTVInfo'),
], cache_temperatures, traffic_settings)
def GetAbridgedStorySetTagFilter(self):
return ABRIDGED.name
def AddStories(self, tags, urls, cache_temperatures, traffic_settings):
for url, name in urls:
for temp in cache_temperatures:
......@@ -147,7 +168,18 @@ class LoadingMobileStorySet(story.StorySet):
if traffic == traffic_setting_module.REGULAR_3G:
page_name += '_3g'
self.AddStory(page_cycler_story.PageCyclerStory(
url, self, name=page_name,
shared_page_state_class=shared_page_state.SharedMobilePageState,
cache_temperature=temp, traffic_setting=traffic, tags=tags))
page_tags = tags[:]
if page_name in ABRIDGED_STORY_NAMES:
page_tags.append(ABRIDGED.name)
self.AddStory(
page_cycler_story.PageCyclerStory(
url,
self,
name=page_name,
shared_page_state_class=shared_page_state.
SharedMobilePageState,
cache_temperature=temp,
traffic_setting=traffic,
tags=page_tags))
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