Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 # Copyright 2016 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 core import perf_benchmark | |
| 6 import page_sets | |
| 7 | |
| 8 from benchmarks import page_cycler_v2 | |
| 9 from telemetry.page import cache_temperature | |
| 10 | |
| 11 | |
| 12 class LoadingMobile(perf_benchmark.PerfBenchmark): | |
|
nednguyen
2016/10/03 14:42:22
Enable this benchmark on Android only?
Kunihiko Sakamoto
2016/10/07 07:21:36
Done.
| |
| 13 """ A benchmark measuring loading performance of mobile sites. """ | |
| 14 | |
| 15 options = {'pageset_repeat': 2} | |
| 16 | |
| 17 def CreateTimelineBasedMeasurementOptions(self): | |
| 18 return page_cycler_v2.TimelineBasedMeasurementOptionsForLoadingMetric() | |
| 19 | |
| 20 @classmethod | |
| 21 def Name(cls): | |
| 22 return 'loading.mobile' | |
| 23 | |
| 24 def CreateStorySet(self, options): | |
| 25 return page_sets.LoadingMobileStorySet(cache_temperatures=[ | |
| 26 cache_temperature.ANY]) | |
| OLD | NEW |