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
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
):
28 page_set
= page_sets
.BlankPageSet
31 @benchmark.Enabled('has tabs')
32 class StartupWarmBlankPage(_StartupWarm
):
34 page_set
= page_sets
.BlankPageSet
37 @benchmark.Disabled
# crbug.com/336913
38 class StartupColdTheme(_StartupCold
):
40 page_set
= page_sets
.BlankPageSet
41 generated_profile_archive
= 'theme_profile.zip'
45 class StartupWarmTheme(_StartupWarm
):
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'
59 class StartupWarmManyExtensions(_StartupWarm
):
60 tag
= 'many_extensions_warm'
61 page_set
= page_sets
.BlankPageSet
62 generated_profile_archive
= 'many_extensions_profile.zip'