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

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

Issue 2409073003: Add loading mobile benchmark (but disable it) (Closed)
Patch Set: 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 | « tools/perf/OWNERS ('k') | tools/perf/benchmarks/page_cycler_v2.py » ('j') | no next file with comments »
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..f8c896c814006008f6322bf56436b9f8dfd5e5f5
--- /dev/null
+++ b/tools/perf/benchmarks/loading.py
@@ -0,0 +1,28 @@
+# 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 import benchmark
+from telemetry.page import cache_temperature
+
+
+@benchmark.Disabled('all') # crbug.com/654215
+class LoadingMobile(perf_benchmark.PerfBenchmark):
+ """ 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 | « tools/perf/OWNERS ('k') | tools/perf/benchmarks/page_cycler_v2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698