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

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

Issue 962783002: Adding a page cycler becnchmark for measuring out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/page_cycler_oopif.py
diff --git a/tools/perf/benchmarks/page_cycler_oopif.py b/tools/perf/benchmarks/page_cycler_oopif.py
new file mode 100644
index 0000000000000000000000000000000000000000..1c30a255e9d8e1f255f683254f479dbda0d98365
--- /dev/null
+++ b/tools/perf/benchmarks/page_cycler_oopif.py
@@ -0,0 +1,44 @@
+# 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 measurements import page_cycler
+import page_sets
+from telemetry import benchmark
+
+class _PageCycler(benchmark.Benchmark):
+ options = {'pageset_repeat': 1}
+
+ @classmethod
+ def Name(cls):
+ return 'page_cycler_oopif'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
+ parser.add_option('--report-speed-index',
+ action='store_true',
+ help='Enable the speed index metric.')
+
+ parser.add_option('--cold-load-percent', type='int', default=50,
+ help='%d of page visits for which a cold load is forced')
+
+ def CustomizeBrowserOptions(self, options):
+ options.AppendExtraBrowserArgs(['--site-per-process'])
sullivan 2015/02/28 15:25:46 I'd prefer to just move PageCyclerOopifTypical25 t
nasko 2015/03/02 18:06:55 Done.
+
+ def CreatePageTest(self, options):
+ return page_cycler.PageCycler(
+ page_repeat = options.page_repeat,
+ pageset_repeat = options.pageset_repeat,
+ cold_load_percent = options.cold_load_percent,
+ report_speed_index = options.report_speed_index)
+
+
+# crbug.com/273986: This test is really flakey on xp.
+@benchmark.Disabled('win')
sullivan 2015/02/28 15:25:46 Can use @benchmark.Disabled('xp') if that is a bet
nasko 2015/03/02 18:06:55 Done.
+class PageCyclerOopifTypical25(_PageCycler):
+ @classmethod
+ def Name(cls):
+ return 'page_cycler_oopif.typical_25'
+
+ def CreatePageSet(self, options):
+ return page_sets.Typical25PageSet(run_no_page_interactions=True)
« 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