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

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

Issue 2557483002: Add blink_perf.paint_spinvalidation and blink_perf.svg_spinvalidation suites (Closed)
Patch Set: Rename, comments. Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/blink_perf.py
diff --git a/tools/perf/benchmarks/blink_perf.py b/tools/perf/benchmarks/blink_perf.py
index 0cfd03a39ae10b672d583451834af1b34b563c86..83a62497655793ae0e4c7e71a6f925acff57ba18 100644
--- a/tools/perf/benchmarks/blink_perf.py
+++ b/tools/perf/benchmarks/blink_perf.py
@@ -119,6 +119,17 @@ class _BlinkPerfMeasurement(legacy_page_test.LegacyPageTest):
print log
+class _BlinkPerfMeasurementSlimmingPaintInvalidation(_BlinkPerfMeasurement):
+ """Measures blink perf with the new paint invalidation system (see:
+ https://goo.gl/eQczQW). The benchmarks using this measurement should be
+ removed when slimming paint invalidation ships."""
+ def CustomizeBrowserOptions(self, options):
+ _BlinkPerfMeasurement.CustomizeBrowserOptions(self, options)
+ options.AppendExtraBrowserArgs([
+ '--enable-blink-features=SlimmingPaintInvalidation'
+ ])
+
+
class _SharedPywebsocketPageState(shared_page_state.SharedPageState):
"""Runs a pywebsocket server."""
@@ -267,6 +278,15 @@ class BlinkPerfPaint(perf_benchmark.PerfBenchmark):
return cls.IsSvelte(possible_browser) # http://crbug.com/574483
+class BlinkPerfPaintSlimmingPaintInvalidation(BlinkPerfPaint):
+ tag = 'paint_slimmingpaintinvalidation'
+ test = _BlinkPerfMeasurementSlimmingPaintInvalidation
+
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.paint_slimmingpaintinvalidation'
+
+
@benchmark.Disabled('win') # crbug.com/488493
class BlinkPerfParser(perf_benchmark.PerfBenchmark):
tag = 'parser'
@@ -294,6 +314,15 @@ class BlinkPerfSVG(perf_benchmark.PerfBenchmark):
return CreateStorySetFromPath(path, SKIPPED_FILE)
+class BlinkPerfSVGSlimmingPaintInvalidation(BlinkPerfSVG):
+ tag = 'svg_slimmingpaintinvalidation'
+ test = _BlinkPerfMeasurementSlimmingPaintInvalidation
+
+ @classmethod
+ def Name(cls):
+ return 'blink_perf.svg_slimmingpaintinvalidation'
+
+
class BlinkPerfShadowDOM(perf_benchmark.PerfBenchmark):
tag = 'shadow_dom'
test = _BlinkPerfMeasurement
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698