Change next_proto member type.
[chromium-blink-merge.git] / tools / perf / benchmarks / startup.py
blob8f61587116cae517757488adf7ca95c7331eab0b
1 # Copyright 2013 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.
5 from measurements import startup
6 import page_sets
7 from telemetry import benchmark
10 class _StartupCold(benchmark.Benchmark):
11 options = {'pageset_repeat': 5}
13 def CreatePageTest(self, options):
14 return startup.Startup(cold=True)
17 class _StartupWarm(benchmark.Benchmark):
18 options = {'pageset_repeat': 20}
20 def CreatePageTest(self, options):
21 return startup.Startup(cold=False)
24 @benchmark.Enabled('has tabs')
25 @benchmark.Disabled('snowleopard') # crbug.com/336913
26 class StartupColdBlankPage(_StartupCold):
27 tag = 'cold'
28 page_set = page_sets.BlankPageSet
31 @benchmark.Enabled('has tabs')
32 class StartupWarmBlankPage(_StartupWarm):
33 tag = 'warm'
34 page_set = page_sets.BlankPageSet
37 @benchmark.Disabled # crbug.com/336913
38 class StartupColdTheme(_StartupCold):
39 tag = 'theme_cold'
40 page_set = page_sets.BlankPageSet
41 generated_profile_archive = 'theme_profile.zip'
44 @benchmark.Disabled
45 class StartupWarmTheme(_StartupWarm):
46 tag = 'theme_warm'
47 page_set = page_sets.BlankPageSet
48 generated_profile_archive = 'theme_profile.zip'
51 @benchmark.Disabled # crbug.com/336913
52 class StartupColdManyExtensions(_StartupCold):
53 tag = 'many_extensions_cold'
54 page_set = page_sets.BlankPageSet
55 generated_profile_archive = 'many_extensions_profile.zip'
58 @benchmark.Disabled
59 class StartupWarmManyExtensions(_StartupWarm):
60 tag = 'many_extensions_warm'
61 page_set = page_sets.BlankPageSet
62 generated_profile_archive = 'many_extensions_profile.zip'