OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from measurements import page_cycler | |
6 import page_sets | |
7 from telemetry import benchmark | |
8 | |
9 class _PageCycler(benchmark.Benchmark): | |
10 options = {'pageset_repeat': 1} | |
11 | |
12 @classmethod | |
13 def Name(cls): | |
14 return 'page_cycler_oopif' | |
15 | |
16 @classmethod | |
17 def AddBenchmarkCommandLineArgs(cls, parser): | |
18 parser.add_option('--report-speed-index', | |
19 action='store_true', | |
20 help='Enable the speed index metric.') | |
21 | |
22 parser.add_option('--cold-load-percent', type='int', default=50, | |
23 help='%d of page visits for which a cold load is forced') | |
24 | |
25 def CustomizeBrowserOptions(self, options): | |
26 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.
| |
27 | |
28 def CreatePageTest(self, options): | |
29 return page_cycler.PageCycler( | |
30 page_repeat = options.page_repeat, | |
31 pageset_repeat = options.pageset_repeat, | |
32 cold_load_percent = options.cold_load_percent, | |
33 report_speed_index = options.report_speed_index) | |
34 | |
35 | |
36 # crbug.com/273986: This test is really flakey on xp. | |
37 @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.
| |
38 class PageCyclerOopifTypical25(_PageCycler): | |
39 @classmethod | |
40 def Name(cls): | |
41 return 'page_cycler_oopif.typical_25' | |
42 | |
43 def CreatePageSet(self, options): | |
44 return page_sets.Typical25PageSet(run_no_page_interactions=True) | |
OLD | NEW |