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

Side by Side Diff: tools/perf/benchmarks/startup.py

Issue 637153002: telemetry: Remove command line args from page test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Suppress pylint E1003 Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from measurements import startup 5 from measurements import startup
6 import page_sets 6 import page_sets
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 class _StartupCold(benchmark.Benchmark):
11 options = {'pageset_repeat': 5}
12
13 def CreatePageTest(self, options):
14 return startup.Startup(cold=True)
15
16
17 class _StartupWarm(benchmark.Benchmark):
18 options = {'pageset_repeat': 20}
19
20 def CreatePageTest(self, options):
21 return startup.Startup(cold=False)
22
23
10 @benchmark.Enabled('has tabs') 24 @benchmark.Enabled('has tabs')
11 @benchmark.Disabled('snowleopard') # crbug.com/336913 25 @benchmark.Disabled('snowleopard') # crbug.com/336913
12 class StartupColdBlankPage(benchmark.Benchmark): 26 class StartupColdBlankPage(_StartupCold):
13 tag = 'cold' 27 tag = 'cold'
14 test = startup.Startup
15 page_set = page_sets.BlankPageSet 28 page_set = page_sets.BlankPageSet
16 options = {'cold': True,
17 'pageset_repeat': 5}
18 29
19 30
20 @benchmark.Enabled('has tabs') 31 @benchmark.Enabled('has tabs')
21 class StartupWarmBlankPage(benchmark.Benchmark): 32 class StartupWarmBlankPage(_StartupWarm):
22 tag = 'warm' 33 tag = 'warm'
23 test = startup.Startup
24 page_set = page_sets.BlankPageSet 34 page_set = page_sets.BlankPageSet
25 options = {'warm': True,
26 'pageset_repeat': 20}
27 35
28 36
29 @benchmark.Disabled # crbug.com/336913 37 @benchmark.Disabled # crbug.com/336913
30 class StartupColdTheme(benchmark.Benchmark): 38 class StartupColdTheme(_StartupCold):
31 tag = 'theme_cold' 39 tag = 'theme_cold'
32 test = startup.Startup
33 page_set = page_sets.BlankPageSet 40 page_set = page_sets.BlankPageSet
34 generated_profile_archive = 'theme_profile.zip' 41 generated_profile_archive = 'theme_profile.zip'
35 options = {'cold': True,
36 'pageset_repeat': 5}
37 42
38 43
39 @benchmark.Disabled 44 @benchmark.Disabled
40 class StartupWarmTheme(benchmark.Benchmark): 45 class StartupWarmTheme(_StartupWarm):
41 tag = 'theme_warm' 46 tag = 'theme_warm'
42 test = startup.Startup
43 page_set = page_sets.BlankPageSet 47 page_set = page_sets.BlankPageSet
44 generated_profile_archive = 'theme_profile.zip' 48 generated_profile_archive = 'theme_profile.zip'
45 options = {'warm': True,
46 'pageset_repeat': 20}
47 49
48 50
49 @benchmark.Disabled # crbug.com/336913 51 @benchmark.Disabled # crbug.com/336913
50 class StartupColdManyExtensions(benchmark.Benchmark): 52 class StartupColdManyExtensions(_StartupCold):
51 tag = 'many_extensions_cold' 53 tag = 'many_extensions_cold'
52 test = startup.Startup
53 page_set = page_sets.BlankPageSet 54 page_set = page_sets.BlankPageSet
54 generated_profile_archive = 'many_extensions_profile.zip' 55 generated_profile_archive = 'many_extensions_profile.zip'
55 options = {'cold': True,
56 'pageset_repeat': 5}
57 56
58 57
59 @benchmark.Disabled 58 @benchmark.Disabled
60 class StartupWarmManyExtensions(benchmark.Benchmark): 59 class StartupWarmManyExtensions(_StartupWarm):
61 tag = 'many_extensions_warm' 60 tag = 'many_extensions_warm'
62 test = startup.Startup
63 page_set = page_sets.BlankPageSet 61 page_set = page_sets.BlankPageSet
64 generated_profile_archive = 'many_extensions_profile.zip' 62 generated_profile_archive = 'many_extensions_profile.zip'
65 options = {'warm': True,
66 'pageset_repeat': 20}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698