Chromium Code Reviews| 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) |