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

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

Issue 2363343003: Add loading mobile story set (Closed)
Patch Set: wpr uploaded Created 4 years, 3 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/benchmarks/page_cycler_v2.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..4f3f6379e38d1eed02ee23564b4c5e4dceabd961
--- /dev/null
+++ b/tools/perf/benchmarks/loading.py
@@ -0,0 +1,20 @@
+# 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.
+
+import page_sets
+
+from benchmarks import page_cycler_v2
+from telemetry.page import cache_temperature
+
+
+class LoadingMobile(page_cycler_v2.PageCyclerV2):
+ """ A benchmark measuring loading performance of mobile sites. """
+
+ @classmethod
+ def Name(cls):
+ return 'loading.mobile'
+
+ def CreateStorySet(self, options):
+ return page_sets.LoadingMobileStorySet(cache_temperatures=[
+ cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
« no previous file with comments | « no previous file | tools/perf/benchmarks/page_cycler_v2.py » ('j') | tools/perf/benchmarks/page_cycler_v2.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698