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

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

Issue 2639723002: [NOT FOR REVIEW]
Patch Set: . Created 3 years, 11 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 | « cc/trees/property_tree.cc ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/draw_properties.py
diff --git a/tools/perf/benchmarks/draw_properties.py b/tools/perf/benchmarks/draw_properties.py
new file mode 100644
index 0000000000000000000000000000000000000000..b0c18b73ad0911c27c17ef1655362628c65d7275
--- /dev/null
+++ b/tools/perf/benchmarks/draw_properties.py
@@ -0,0 +1,69 @@
+# Copyright 2015 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 ct_benchmarks_util
+from measurements import draw_properties
+import page_sets
+from telemetry import benchmark
+
+
+class _DrawProperties(perf_benchmark.PerfBenchmark):
+
+ @classmethod
+ def Name(cls):
+ return 'draw_properties'
+
+ def CreatePageTest(self, options):
+ return draw_properties.DrawProperties()
+
+# This benchmark depends on tracing categories available in M43
+# This benchmark is still useful for manual testing, but need not be enabled
+# and run regularly.
+@benchmark.Disabled('all')
+class DrawPropertiesToughScrolling(_DrawProperties):
+ page_set = page_sets.ToughScrollingCasesPageSet
+
+ @classmethod
+ def Name(cls):
+ return 'draw_properties.tough_scrolling'
+
+
+# This benchmark depends on tracing categories available in M43
+# This benchmark is still useful for manual testing, but need not be enabled
+# and run regularly.
+@benchmark.Disabled('all')
+class DrawPropertiesTop25(_DrawProperties):
+ """Measures the performance of computing draw properties from property trees.
+
+ http://www.chromium.org/developers/design-documents/rendering-benchmarks
+ """
+ page_set = page_sets.Top25SmoothPageSet
+
+ @classmethod
+ def Name(cls):
+ return 'draw_properties.top_25'
+
+# This benchmark depends on tracing categories available in M43
+# This benchmark is still useful for manual testing, but need not be enabled
+# and run regularly.
+@benchmark.Disabled('all')
+class DrawPropertiesCT(_DrawProperties):
+
+ @classmethod
+ def Name(cls):
+ return 'draw_properties_ct'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
+ ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
+ ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
+
+ def CreateStorySet(self, options):
+ return page_sets.CTPageSet(
+ options.urls_list, options.user_agent, options.archive_data_file)
« no previous file with comments | « cc/trees/property_tree.cc ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698