Chromium Code Reviews| Index: tools/perf/benchmarks/loading.py |
| diff --git a/tools/perf/benchmarks/loading.py b/tools/perf/benchmarks/loading.py |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e6f47f22557337cdfddeee84270003e62e29358f |
| --- /dev/null |
| +++ b/tools/perf/benchmarks/loading.py |
| @@ -0,0 +1,26 @@ |
| +# Copyright 2016 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 core import perf_benchmark |
| +import page_sets |
| + |
| +from benchmarks import page_cycler_v2 |
| +from telemetry.page import cache_temperature |
| + |
| + |
| +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.
|
| + """ A benchmark measuring loading performance of mobile sites. """ |
| + |
| + options = {'pageset_repeat': 2} |
| + |
| + def CreateTimelineBasedMeasurementOptions(self): |
| + return page_cycler_v2.TimelineBasedMeasurementOptionsForLoadingMetric() |
| + |
| + @classmethod |
| + def Name(cls): |
| + return 'loading.mobile' |
| + |
| + def CreateStorySet(self, options): |
| + return page_sets.LoadingMobileStorySet(cache_temperatures=[ |
| + cache_temperature.ANY]) |