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

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

Issue 2307873003: Add WebView Multiprocess startup benchmark. (Closed)
Patch Set: Added missing newline 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
Index: tools/perf/benchmarks/system_health.py
diff --git a/tools/perf/benchmarks/system_health.py b/tools/perf/benchmarks/system_health.py
index e4f872538ee4e8620b4c87dd02bd5e48eae83a6e..75862ea6200a45a1d08170a9e72728d9a5c160be 100644
--- a/tools/perf/benchmarks/system_health.py
+++ b/tools/perf/benchmarks/system_health.py
@@ -151,7 +151,10 @@ class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
markers recorded in atrace, Chrome tracing is not enabled for this
benchmark.
"""
- page_set = page_sets.BlankPageSet
+ options = {'pageset_repeat': 20}
+
+ def CreateStorySet(self, options):
+ return page_sets.SystemHealthStorySet(platform='mobile', case='blank')
def CreateTimelineBasedMeasurementOptions(self):
options = timeline_based_measurement.Options()
@@ -168,3 +171,21 @@ class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
@classmethod
def Name(cls):
return 'system_health.webview_startup'
+
+
+@benchmark.Enabled('android-webview')
+class WebviewMultiprocessStartupSystemHealthBenchmark(
+ WebviewStartupSystemHealthBenchmark):
+ """Webview multiprocess startup time benchmark
+
+ Benchmark that measures how long WebView takes to start up
+ and load a blank page with multiprocess enabled.
+ """
+
+ def SetExtraBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs(
+ ['--webview-sandboxed-renderer'])
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.webview_startup_multiprocess'

Powered by Google App Engine
This is Rietveld 408576698