Chromium Code Reviews| Index: tools/perf/benchmarks/media.py |
| diff --git a/tools/perf/benchmarks/media.py b/tools/perf/benchmarks/media.py |
| index bbcdef5aba2486d9c0a61dccf11e8accaed75e6b..0e42ff3145affd3cf7e6db0f77c8396ba9bd893e 100644 |
| --- a/tools/perf/benchmarks/media.py |
| +++ b/tools/perf/benchmarks/media.py |
| @@ -1,12 +1,11 @@ |
| -# Copyright 2013 The Chromium Authors. All rights reserved. |
| +# 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 measurements import media |
| from telemetry import test |
| from telemetry.page import page_measurement |
| -from measurements import media |
| - |
| class MSEMeasurement(page_measurement.PageMeasurement): |
| def MeasurePage(self, page, tab, results): |
| @@ -26,11 +25,13 @@ class Media(test.Test): |
| test = media.Media |
| page_set = 'page_sets/tough_video_cases.json' |
| + |
| class MediaNetworkSimulation(test.Test): |
| """Obtains media metrics under different network simulations.""" |
| test = media.Media |
| page_set = 'page_sets/media_cns_cases.json' |
| + |
| class MediaAndroid(test.Test): |
| """Obtains media metrics for key user scenarios on Android.""" |
| test = media.Media |
| @@ -38,18 +39,30 @@ class MediaAndroid(test.Test): |
| page_set = 'page_sets/tough_video_cases.json' |
| # Exclude 4k and 50 fps media files (garden* & crowd*). |
| options = { |
| - 'page_filter_exclude': '.*(crowd|garden).*' |
| - } |
| + 'page_label_filter_exclude': '4k,50fps'} |
| + |
| + |
| +class MediaChromeOS4kOnly(test.Test): |
| + """Benchmark for media performance on ChromeOS using only 4k test content.""" |
| + test = media.Media |
| + tag = 'chromeOS4kOnly' |
| + page_set = 'page_sets/tough_video_cases.json' |
| + options = {'page_label_filter': '4k', |
|
Pawel Osciak
2014/01/31 23:50:27
Could you please explain what decides whether this
anandc
2014/02/01 00:58:42
That's right. This benchmark runs only on pages th
|
| + # Exclude 50fps test files: crbug/331816 |
| + 'page_label_filter_exclude': '50fps'} |
| + |
| class MediaChromeOS(test.Test): |
| - """Obtains media metrics for key user scenarios on ChromeOS.""" |
| + """Benchmark for media performance on all ChromeOS platforms. |
| + |
| + This benchmark does not run 4k content, there's a separate benchmark for that. |
| + """ |
| test = media.Media |
| tag = 'chromeOS' |
| page_set = 'page_sets/tough_video_cases.json' |
| - # Exclude crowd* media files (50fps 2160p): crbug/331816 |
| - options = { |
| - 'page_filter_exclude': '.*crowd.*' |
| - } |
| + # Exclude 50fps test files: crbug/331816 |
| + options = {'page_label_filter_exclude': '4k,50fps'} |
|
Pawel Osciak
2014/01/31 23:50:27
Does this mean we don't want to test 50fps on any
anandc
2014/02/01 00:58:42
We do.
There was a problem with 50fps content ti
|
| + |
| class MediaSourceExtensions(test.Test): |
| """Obtains media metrics for key media source extensions functions.""" |