OLD | NEW |
(Empty) | |
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from benchmarks import page_cycler_v2 |
| 6 from core import perf_benchmark |
| 7 from telemetry import benchmark |
| 8 from telemetry.web_perf import timeline_based_measurement |
| 9 import page_sets |
| 10 |
| 11 |
| 12 # Disabled because we do not plan on running CT benchmarks on the perf |
| 13 # waterfall any time soon. |
| 14 @benchmark.Disabled('all') |
| 15 @benchmark.Owner(emails=['hayato@chromium.org']) |
| 16 class WebComponents(perf_benchmark.PerfBenchmark): |
| 17 |
| 18 options = {'pageset_repeat': 3} |
| 19 page_set = page_sets.WebComponentsPageSet |
| 20 |
| 21 def CreateTimelineBasedMeasurementOptions(self): |
| 22 tbm_options = timeline_based_measurement.Options() |
| 23 page_cycler_v2.AugmentOptionsForLoadingMetrics(tbm_options) |
| 24 tbm_options.SetTimelineBasedMetrics(['loadingMetric']) |
| 25 return tbm_options |
| 26 |
| 27 @classmethod |
| 28 def Name(cls): |
| 29 return 'web_components.web_components' |
OLD | NEW |