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

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

Issue 2703443004: Add Web Components page sets and benchmark
Patch Set: wip Created 3 years, 9 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/benchmark.csv ('k') | tools/perf/page_sets/data/web_components.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/web_components.py
diff --git a/tools/perf/benchmarks/web_components.py b/tools/perf/benchmarks/web_components.py
new file mode 100644
index 0000000000000000000000000000000000000000..1f45290c3f459bc38d813adf9f9cbe3eccc6ce42
--- /dev/null
+++ b/tools/perf/benchmarks/web_components.py
@@ -0,0 +1,29 @@
+# Copyright 2017 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 benchmarks import page_cycler_v2
+from core import perf_benchmark
+from telemetry import benchmark
+from telemetry.web_perf import timeline_based_measurement
+import page_sets
+
+
+# Disabled because we do not plan on running CT benchmarks on the perf
+# waterfall any time soon.
+@benchmark.Disabled('all')
+@benchmark.Owner(emails=['hayato@chromium.org'])
+class WebComponents(perf_benchmark.PerfBenchmark):
+
+ options = {'pageset_repeat': 3}
+ page_set = page_sets.WebComponentsPageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ tbm_options = timeline_based_measurement.Options()
+ page_cycler_v2.AugmentOptionsForLoadingMetrics(tbm_options)
+ tbm_options.SetTimelineBasedMetrics(['loadingMetric'])
+ return tbm_options
+
+ @classmethod
+ def Name(cls):
+ return 'web_components.web_components'
« no previous file with comments | « tools/perf/benchmark.csv ('k') | tools/perf/page_sets/data/web_components.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698