Commit ce8efce0 authored by skyostil@chromium.org's avatar skyostil@chromium.org

Enable bleeding edge rendering fast paths for Silk benchmarks

    
New benchmarks:
- rasterize_and_record.fast_path.key_silk_cases
- rasterize_and_record_micro.fast_path.key_silk_cases
- smoothness.fast_path.key_silk_cases
- smoothness.fast_path_gpu_rasterization.key_silk_cases
- thread_times.fast_path.key_silk_cases

Review URL: https://codereview.chromium.org/183413002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255427 0039d316-1c4b-4281-b951-d872f2087c98
parent c4f1f144
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
from telemetry import test from telemetry import test
from benchmarks import silk_flags
from measurements import rasterize_and_record from measurements import rasterize_and_record
...@@ -35,3 +36,16 @@ class RasterizeAndRecordSilk(test.Test): ...@@ -35,3 +36,16 @@ class RasterizeAndRecordSilk(test.Test):
http://www.chromium.org/developers/design-documents/rendering-benchmarks""" http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
test = rasterize_and_record.RasterizeAndRecord test = rasterize_and_record.RasterizeAndRecord
page_set = 'page_sets/key_silk_cases.json' page_set = 'page_sets/key_silk_cases.json'
class RasterizeAndRecordFastPathSilk(test.Test):
"""Measures rasterize and record performance on the silk sites.
Uses bleeding edge rendering fast paths.
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
tag = 'fast_path'
test = rasterize_and_record.RasterizeAndRecord
page_set = 'page_sets/key_silk_cases.json'
def CustomizeBrowserOptions(self, options):
silk_flags.CustomizeBrowserOptionsForFastPath(options)
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
from benchmarks import silk_flags
from measurements import rasterize_and_record_micro from measurements import rasterize_and_record_micro
from telemetry import test from telemetry import test
...@@ -29,3 +30,16 @@ class RasterizeAndRecordMicroKeySilkCases(test.Test): ...@@ -29,3 +30,16 @@ class RasterizeAndRecordMicroKeySilkCases(test.Test):
http://www.chromium.org/developers/design-documents/rendering-benchmarks""" http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
test = rasterize_and_record_micro.RasterizeAndRecordMicro test = rasterize_and_record_micro.RasterizeAndRecordMicro
page_set = 'page_sets/key_silk_cases.json' page_set = 'page_sets/key_silk_cases.json'
class RasterizeAndRecordMicroFastPathKeySilkCases(test.Test):
"""Measures rasterize and record performance on the silk sites.
Uses bleeding edge rendering fast paths.
http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
tag = 'fast_path'
test = rasterize_and_record_micro.RasterizeAndRecordMicro
page_set = 'page_sets/key_silk_cases.json'
def CustomizeBrowserOptions(self, options):
silk_flags.CustomizeBrowserOptionsForFastPath(options)
# 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.
def CustomizeBrowserOptionsForFastPath(options):
"""Enables flags needed for bleeding edge rendering fast paths."""
options.AppendExtraBrowserArgs('--enable-bleeding-edge-rendering-fast-paths')
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
from benchmarks import silk_flags
from measurements import smoothness from measurements import smoothness
from telemetry import test from telemetry import test
...@@ -41,6 +42,17 @@ class SmoothnessKeySilkCases(test.Test): ...@@ -41,6 +42,17 @@ class SmoothnessKeySilkCases(test.Test):
page_set = 'page_sets/key_silk_cases.json' page_set = 'page_sets/key_silk_cases.json'
class SmoothnessFastPathKeySilkCases(test.Test):
"""Measures rendering statistics for the key silk cases without GPU
rasterization using bleeding edge rendering fast paths.
"""
tag = 'fast_path'
test = smoothness.Smoothness
page_set = 'page_sets/key_silk_cases.json'
def CustomizeBrowserOptions(self, options):
silk_flags.CustomizeBrowserOptionsForFastPath(options)
class SmoothnessGpuRasterizationTop25(test.Test): class SmoothnessGpuRasterizationTop25(test.Test):
"""Measures rendering statistics for the top 25 with GPU rasterization """Measures rendering statistics for the top 25 with GPU rasterization
""" """
...@@ -81,6 +93,20 @@ class SmoothnessGpuRasterizationKeySilkCases(test.Test): ...@@ -81,6 +93,20 @@ class SmoothnessGpuRasterizationKeySilkCases(test.Test):
options.AppendExtraBrowserArgs('--enable-gpu-rasterization') options.AppendExtraBrowserArgs('--enable-gpu-rasterization')
class SmoothnessFastPathGpuRasterizationKeySilkCases(
SmoothnessGpuRasterizationKeySilkCases):
"""Measures rendering statistics for the key silk cases with GPU rasterization
using bleeding edge rendering fast paths.
"""
tag = 'fast_path_gpu_rasterization'
test = smoothness.Smoothness
page_set = 'page_sets/key_silk_cases.json'
def CustomizeBrowserOptions(self, options):
super(SmoothnessFastPathGpuRasterizationKeySilkCases, self). \
CustomizeBrowserOptions(options)
silk_flags.CustomizeBrowserOptionsForFastPath(options)
@test.Enabled('android') @test.Enabled('android')
class SmoothnessToughPinchZoomCases(test.Test): class SmoothnessToughPinchZoomCases(test.Test):
"""Measures rendering statistics for pinch-zooming into the tough pinch zoom """Measures rendering statistics for pinch-zooming into the tough pinch zoom
......
...@@ -3,8 +3,10 @@ ...@@ -3,8 +3,10 @@
# found in the LICENSE file. # found in the LICENSE file.
from telemetry import test from telemetry import test
from benchmarks import silk_flags
from measurements import thread_times from measurements import thread_times
class ThreadTimesKeySilkCases(test.Test): class ThreadTimesKeySilkCases(test.Test):
"""Measures timeline metrics while performing smoothness action on key silk """Measures timeline metrics while performing smoothness action on key silk
cases.""" cases."""
...@@ -12,6 +14,18 @@ class ThreadTimesKeySilkCases(test.Test): ...@@ -12,6 +14,18 @@ class ThreadTimesKeySilkCases(test.Test):
page_set = 'page_sets/key_silk_cases.json' page_set = 'page_sets/key_silk_cases.json'
options = {"report_silk_results": True} options = {"report_silk_results": True}
class ThreadTimesFastPathKeySilkCases(test.Test):
"""Measures timeline metrics while performing smoothness action on key silk
cases using bleeding edge rendering fast paths."""
tag = 'fast_path'
test = thread_times.ThreadTimes
page_set = 'page_sets/key_silk_cases.json'
options = {"report_silk_results": True}
def CustomizeBrowserOptions(self, options):
silk_flags.CustomizeBrowserOptionsForFastPath(options)
class LegacySilkBenchmark(ThreadTimesKeySilkCases): class LegacySilkBenchmark(ThreadTimesKeySilkCases):
"""Same as thread_times.key_silk_cases but with the old name.""" """Same as thread_times.key_silk_cases but with the old name."""
@classmethod @classmethod
......
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