Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: tools/perf/benchmarks/loading.py

Issue 2363343003: Add loading mobile story set (Closed)
Patch Set: Comments addressed Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler_v2.py » ('j') | tools/perf/page_sets/loading_mobile.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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])
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler_v2.py » ('j') | tools/perf/page_sets/loading_mobile.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698