Commit dd5bccaf authored by Victor Miura's avatar Victor Miura Committed by Commit Bot

Repaint stories for top desktop sites.

Adds repaint stories for 10 top desktop sites.  Stories use snapshots
made with 'snap-it', to reduce potential noise from page script.

Local run-time on Linux: 4m9s

BUG=906757

Change-Id: Ic08be0509f7cf66008ede33e2e26525856c58c9d
Reviewed-on: https://chromium-review.googlesource.com/c/1343079
Commit-Queue: Victor Miura <vmiura@chromium.org>
Reviewed-by: default avatarCaleb Rouleau <crouleau@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609927}
parent 304799cc
...@@ -42,7 +42,7 @@ power.desktop,brucedawson@chromium.org,,https://bit.ly/power-benchmarks, ...@@ -42,7 +42,7 @@ power.desktop,brucedawson@chromium.org,,https://bit.ly/power-benchmarks,
power.typical_10_mobile,perezju@chromium.org,,https://bit.ly/power-benchmarks, power.typical_10_mobile,perezju@chromium.org,,https://bit.ly/power-benchmarks,
rasterize_and_record_micro.partial_invalidation,"vmpstr@chromium.org, wkorman@chromium.org",Internals>Compositing>Rasterization,, rasterize_and_record_micro.partial_invalidation,"vmpstr@chromium.org, wkorman@chromium.org",Internals>Compositing>Rasterization,,
rasterize_and_record_micro.top_25,"vmpstr@chromium.org, wkorman@chromium.org",Internals>Compositing>Rasterization,, rasterize_and_record_micro.top_25,"vmpstr@chromium.org, wkorman@chromium.org",Internals>Compositing>Rasterization,,
rendering.desktop,"sadrul@chromium.org, vmiura@chromium.org",Internals>GPU>Metrics,https://bit.ly/rendering-benchmarks,"gpu_rasterization,image_decoding,key_desktop_move,maps,required_webgl,top_real_world_desktop,tough_animation,tough_canvas,tough_compositor,tough_filters,tough_image_decode,tough_path_rendering,tough_pinch_zoom,tough_scheduling,tough_scrolling,tough_texture_upload,tough_webgl,use_fake_camera_device" rendering.desktop,"sadrul@chromium.org, vmiura@chromium.org",Internals>GPU>Metrics,https://bit.ly/rendering-benchmarks,"gpu_rasterization,image_decoding,key_desktop_move,maps,repaint_desktop,required_webgl,top_real_world_desktop,tough_animation,tough_canvas,tough_compositor,tough_filters,tough_image_decode,tough_path_rendering,tough_pinch_zoom,tough_scheduling,tough_scrolling,tough_texture_upload,tough_webgl,use_fake_camera_device"
rendering.mobile,"sadrul@chromium.org, vmiura@chromium.org",Internals>GPU>Metrics,https://bit.ly/rendering-benchmarks,"fastpath,gpu_rasterization,image_decoding,key_hit_test,key_idle_power,key_noop,key_silk,maps,motionmark,pathological_mobile_sites,polymer,required_webgl,simple_mobile_sites,top_real_world_desktop,top_real_world_mobile,tough_animation,tough_canvas,tough_compositor,tough_filters,tough_image_decode,tough_path_rendering,tough_scheduling,tough_scrolling,tough_texture_upload,tough_webgl,use_fake_camera_device" rendering.mobile,"sadrul@chromium.org, vmiura@chromium.org",Internals>GPU>Metrics,https://bit.ly/rendering-benchmarks,"fastpath,gpu_rasterization,image_decoding,key_hit_test,key_idle_power,key_noop,key_silk,maps,motionmark,pathological_mobile_sites,polymer,required_webgl,simple_mobile_sites,top_real_world_desktop,top_real_world_mobile,tough_animation,tough_canvas,tough_compositor,tough_filters,tough_image_decode,tough_path_rendering,tough_scheduling,tough_scrolling,tough_texture_upload,tough_webgl,use_fake_camera_device"
resource_sizes,"agrieve@chromium.org, rnephew@chromium.org, perezju@chromium.org",,, resource_sizes,"agrieve@chromium.org, rnephew@chromium.org, perezju@chromium.org",,,
sizes (linux),thestig@chromium.org,thomasanderson@chromium.org,Internals>PlatformIntegration, sizes (linux),thestig@chromium.org,thomasanderson@chromium.org,Internals>PlatformIntegration,
......
...@@ -234,6 +234,36 @@ ...@@ -234,6 +234,36 @@
"pinterest_2018": { "pinterest_2018": {
"DEFAULT": "rendering_desktop_000.wprgo" "DEFAULT": "rendering_desktop_000.wprgo"
}, },
"repaint_amazon_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_cnn_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_facebook_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_google_search_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_instagram_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_reddit_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_theverge_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_twitter_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_wikipedia_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"repaint_yahoo_homepage_2018": {
"DEFAULT": "rendering_desktop_fdde4c2d8b.wprgo"
},
"runway": { "runway": {
"DEFAULT": "rendering_desktop_004.wprgo" "DEFAULT": "rendering_desktop_004.wprgo"
}, },
......
fdde4c2d8b63415cb046a1403982428a3fed2030
\ No newline at end of file
# Copyright 2018 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 legacy_page_test
from telemetry.page import shared_page_state
from page_sets.rendering import rendering_story
from page_sets.rendering import story_tags
from page_sets.system_health import platforms
class RepaintDesktopPage(rendering_story.RenderingStory):
ABSTRACT_STORY = True
TAGS = [story_tags.REPAINT_DESKTOP]
SUPPORTED_PLATFORMS = platforms.DESKTOP_ONLY
def __init__(self,
page_set,
name_suffix='',
extra_browser_args=None,
shared_page_state_class=shared_page_state.SharedMobilePageState):
super(RepaintDesktopPage, self).__init__(
page_set=page_set,
name_suffix=name_suffix,
extra_browser_args=extra_browser_args,
shared_page_state_class=shared_page_state_class)
def RunPageInteractions(self, action_runner):
action_runner.WaitForJavaScriptCondition(
'document.readyState == "complete"', timeout=30)
action_runner.ExecuteJavaScript(
'chrome.gpuBenchmarking.setRasterizeOnlyVisibleContent();')
mode = 'viewport'
width = None
height = None
args = {}
args['mode'] = mode
if width:
args['width'] = width
if height:
args['height'] = height
# Enqueue benchmark
action_runner.ExecuteJavaScript("""
window.benchmark_results = {};
window.benchmark_results.id =
chrome.gpuBenchmarking.runMicroBenchmark(
"invalidation_benchmark",
function(value) {},
{{ args }}
);
""",
args=args)
micro_benchmark_id = action_runner.EvaluateJavaScript(
'window.benchmark_results.id')
if not micro_benchmark_id:
raise legacy_page_test.MeasurementFailure(
'Failed to schedule invalidation_benchmark.')
with action_runner.CreateInteraction('Repaint'):
action_runner.RepaintContinuously(seconds=5)
action_runner.ExecuteJavaScript("""
window.benchmark_results.message_handled =
chrome.gpuBenchmarking.sendMessageToMicroBenchmark(
{{ micro_benchmark_id }}, {
"notify_done": true
});
""",
micro_benchmark_id=micro_benchmark_id)
class RepaintAmazon2018Page(RepaintDesktopPage):
"""
Why: #1 world commerce website by visits; #3 commerce in the US by time spent
"""
BASE_NAME = 'repaint_amazon'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_amazon.html'
class RepaintCNN2018Page(RepaintDesktopPage):
"""# Why: #2 news worldwide"""
BASE_NAME = 'repaint_cnn'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_cnn.html'
class RepaintFacebook2018Page(RepaintDesktopPage):
"""Why: #3 (Alexa global)"""
BASE_NAME = 'repaint_facebook'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_facebook.html'
class RepaintGoogleSearch2018Page(RepaintDesktopPage):
"""Why: Top Google property; a Google tab is often open"""
BASE_NAME = 'repaint_google_search'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_google_search.html'
class RepaintInstagram2018Page(RepaintDesktopPage):
"""Why: A top social site"""
BASE_NAME = 'repaint_instagram'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_instagram.html'
class RepaintReddit2018Page(RepaintDesktopPage):
"""Why: #1 news worldwide"""
BASE_NAME = 'repaint_reddit'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_reddit.html'
class RepaintTheVerge2018Page(RepaintDesktopPage):
"""Why: Top tech blog"""
BASE_NAME = 'repaint_theverge'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_theverge.html'
class RepaintTwitter2018Page(RepaintDesktopPage):
"""Why: A top social site"""
BASE_NAME = 'repaint_twitter'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_twitter.html'
class RepaintWikipedia2018Page(RepaintDesktopPage):
"""Why: #5 (Alexa global)"""
BASE_NAME = 'repaint_wikipedia'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_wikipedia.html'
class RepaintYahoo2018Page(RepaintDesktopPage):
"""Why: #9 (Alexa global)"""
BASE_NAME = 'repaint_yahoo_homepage'
YEAR = '2018'
URL = 'http://vmiura.github.io/snapit-pages/snapit_yahoo_homepage.html'
...@@ -42,6 +42,8 @@ PATHOLOGICAL_MOBILE_SITES = Tag( ...@@ -42,6 +42,8 @@ PATHOLOGICAL_MOBILE_SITES = Tag(
'pathological_mobile_sites', 'Pathological mobile sites') 'pathological_mobile_sites', 'Pathological mobile sites')
POLYMER = Tag( POLYMER = Tag(
'polymer', 'Polymer stories') 'polymer', 'Polymer stories')
REPAINT_DESKTOP = Tag(
'repaint_desktop', 'Repaint desktop stories')
SIMPLE_MOBILE_SITES = Tag( SIMPLE_MOBILE_SITES = Tag(
'simple_mobile_sites', 'Simple mobile sites') 'simple_mobile_sites', 'Simple mobile sites')
TOP_REAL_WORLD_DESKTOP = Tag( TOP_REAL_WORLD_DESKTOP = Tag(
......
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