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

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

Issue 2307873003: Add WebView Multiprocess startup benchmark. (Closed)
Patch Set: Add WebView Multiprocess startup benchmark. 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
« 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/system_health.py
diff --git a/tools/perf/benchmarks/system_health.py b/tools/perf/benchmarks/system_health.py
index 2d80785a99da3ac35da7d034cc2eb86f70e8efc2..e32faf83f64f1953788881f059ad9ece1ee2954b 100644
--- a/tools/perf/benchmarks/system_health.py
+++ b/tools/perf/benchmarks/system_health.py
@@ -91,6 +91,7 @@ class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
benchmark.
"""
page_set = page_sets.BlankPageSet
+ options = {'pageset_repeat': 10}
hush (inactive) 2016/09/02 18:48:02 does the blank page set only contain one blank pag
mikecase (-- gone --) 2016/09/06 16:40:28 Yes, only contains a blank page so the test is ver
def CreateTimelineBasedMeasurementOptions(self):
options = timeline_based_measurement.Options()
@@ -107,3 +108,21 @@ class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
@classmethod
def Name(cls):
return 'system_health.webview_startup'
+
hush (inactive) 2016/09/02 18:48:02 nit: remove this blank line
petrcermak 2016/09/05 12:45:51 No, don't remove it. There should be two blank lin
mikecase (-- gone --) 2016/09/06 16:40:28 Done
+
+@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'
« 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