| OLD | NEW |
| 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 from telemetry import benchmark | |
| 5 | 4 |
| 6 from measurements import startup | 5 from measurements import startup |
| 7 import page_sets | 6 import page_sets |
| 7 from telemetry import benchmark |
| 8 | 8 |
| 9 | 9 |
| 10 @benchmark.Disabled('snowleopard') # crbug.com/336913 | 10 @benchmark.Disabled('android', 'snowleopard') # crbug.com/336913 |
| 11 class StartupColdBlankPage(benchmark.Benchmark): | 11 class StartupColdBlankPage(benchmark.Benchmark): |
| 12 tag = 'cold' | 12 tag = 'cold' |
| 13 test = startup.Startup | 13 test = startup.Startup |
| 14 page_set = page_sets.BlankPageSet | 14 page_set = page_sets.BlankPageSet |
| 15 options = {'cold': True, | 15 options = {'cold': True, |
| 16 'pageset_repeat': 5} | 16 'pageset_repeat': 5} |
| 17 | 17 |
| 18 | 18 |
| 19 @benchmark.Enabled('has tabs') |
| 19 class StartupWarmBlankPage(benchmark.Benchmark): | 20 class StartupWarmBlankPage(benchmark.Benchmark): |
| 20 tag = 'warm' | 21 tag = 'warm' |
| 21 test = startup.Startup | 22 test = startup.Startup |
| 22 page_set = page_sets.BlankPageSet | 23 page_set = page_sets.BlankPageSet |
| 23 options = {'warm': True, | 24 options = {'warm': True, |
| 24 'pageset_repeat': 20} | 25 'pageset_repeat': 20} |
| 25 | 26 |
| 26 @benchmark.Disabled('snowleopard') # crbug.com/336913 | 27 |
| 28 @benchmark.Disabled('android', 'snowleopard') # crbug.com/336913 |
| 27 class StartupColdTheme(benchmark.Benchmark): | 29 class StartupColdTheme(benchmark.Benchmark): |
| 28 tag = 'theme_cold' | 30 tag = 'theme_cold' |
| 29 test = startup.Startup | 31 test = startup.Startup |
| 30 page_set = page_sets.BlankPageSet | 32 page_set = page_sets.BlankPageSet |
| 31 generated_profile_archive = 'theme_profile.zip' | 33 generated_profile_archive = 'theme_profile.zip' |
| 32 options = {'cold': True, | 34 options = {'cold': True, |
| 33 'pageset_repeat': 5} | 35 'pageset_repeat': 5} |
| 34 | 36 |
| 35 | 37 |
| 38 @benchmark.Disabled('android') |
| 36 class StartupWarmTheme(benchmark.Benchmark): | 39 class StartupWarmTheme(benchmark.Benchmark): |
| 37 tag = 'theme_warm' | 40 tag = 'theme_warm' |
| 38 test = startup.Startup | 41 test = startup.Startup |
| 39 page_set = page_sets.BlankPageSet | 42 page_set = page_sets.BlankPageSet |
| 40 generated_profile_archive = 'theme_profile.zip' | 43 generated_profile_archive = 'theme_profile.zip' |
| 41 options = {'warm': True, | 44 options = {'warm': True, |
| 42 'pageset_repeat': 20} | 45 'pageset_repeat': 20} |
| 43 | 46 |
| 44 @benchmark.Disabled('snowleopard') # crbug.com/336913 | 47 |
| 48 @benchmark.Disabled('android', 'snowleopard') # crbug.com/336913 |
| 45 class StartupColdManyExtensions(benchmark.Benchmark): | 49 class StartupColdManyExtensions(benchmark.Benchmark): |
| 46 tag = 'many_extensions_cold' | 50 tag = 'many_extensions_cold' |
| 47 test = startup.Startup | 51 test = startup.Startup |
| 48 page_set = page_sets.BlankPageSet | 52 page_set = page_sets.BlankPageSet |
| 49 generated_profile_archive = 'many_extensions_profile.zip' | 53 generated_profile_archive = 'many_extensions_profile.zip' |
| 50 options = {'cold': True, | 54 options = {'cold': True, |
| 51 'pageset_repeat': 5} | 55 'pageset_repeat': 5} |
| 52 | 56 |
| 53 | 57 |
| 58 @benchmark.Disabled('android') |
| 54 class StartupWarmManyExtensions(benchmark.Benchmark): | 59 class StartupWarmManyExtensions(benchmark.Benchmark): |
| 55 tag = 'many_extensions_warm' | 60 tag = 'many_extensions_warm' |
| 56 test = startup.Startup | 61 test = startup.Startup |
| 57 page_set = page_sets.BlankPageSet | 62 page_set = page_sets.BlankPageSet |
| 58 generated_profile_archive = 'many_extensions_profile.zip' | 63 generated_profile_archive = 'many_extensions_profile.zip' |
| 59 options = {'warm': True, | 64 options = {'warm': True, |
| 60 'pageset_repeat': 20} | 65 'pageset_repeat': 20} |
| OLD | NEW |