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

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

Issue 1359473003: Enable GPU rasterization for more telemetry tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 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/smoothness.py » ('j') | tools/perf/benchmarks/smoothness.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/power.py
diff --git a/tools/perf/benchmarks/power.py b/tools/perf/benchmarks/power.py
index f0c882b68e497c3aa13a4a63ae674769c539b3fb..a5c70f8d21bdc3085813100f0da3e4d1f38d902d 100644
--- a/tools/perf/benchmarks/power.py
+++ b/tools/perf/benchmarks/power.py
@@ -81,6 +81,21 @@ class PowerTop10(perf_benchmark.PerfBenchmark):
def Name(cls):
return 'power.top_10'
+@benchmark.Enabled('mac')
+class PowerGpuRasterizationTop10(perf_benchmark.PerfBenchmark):
+ """Top 10 quiescent power test with GPU rasterization enabled."""
+ tag = 'gpu_rasterization'
+ test = power.QuiescentPower
+ page_set = page_sets.Top10PageSet
+
+ def SetExtraBrowserOptions(self, options):
+ silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
+ options.full_performance_mode = False
+
+ @classmethod
+ def Name(cls):
+ return 'power.gpu_rasterization.top_10'
+
@benchmark.Enabled('mac')
class PowerTop25(perf_benchmark.PerfBenchmark):
@@ -104,6 +119,29 @@ class PowerTop25(perf_benchmark.PerfBenchmark):
stories.RemoveStory(found)
return stories
+@benchmark.Enabled('mac')
+class PowerGpuRasterizationTop25(perf_benchmark.PerfBenchmark):
+ """Top 25 quiescent power test with GPU rasterization enabled."""
+ tag = 'gpu_rasterization'
+ test = power.QuiescentPower
+ page_set = page_sets.Top25PageSet
+
+ def SetExtraBrowserOptions(self, options):
+ silk_flags.CustomizeBrowserOptionsForGpuRasterization(options)
+ options.full_performance_mode = False
+
+ @classmethod
+ def Name(cls):
+ return 'power.gpu_rasterization.top_25'
+
+ def CreateStorySet(self, _):
+ # Exclude techcrunch.com. It is not suitable for this benchmark because it
+ # does not consistently become quiescent within 60 seconds.
+ stories = self.page_set()
+ found = next((x for x in stories if 'techcrunch.com' in x.url), None)
+ if found:
+ stories.RemoveStory(found)
+ return stories
@benchmark.Enabled('linux', 'mac', 'win', 'chromeos')
class PowerPPSControlDisabled(perf_benchmark.PerfBenchmark):
« no previous file with comments | « no previous file | tools/perf/benchmarks/smoothness.py » ('j') | tools/perf/benchmarks/smoothness.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698