| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 test | 4 from telemetry import test |
| 5 | 5 |
| 6 from measurements import page_cycler | 6 from measurements import page_cycler |
| 7 | 7 |
| 8 | 8 |
| 9 class PageCyclerBloat(test.Test): | 9 class PageCyclerBloat(test.Test): |
| 10 test = page_cycler.PageCycler | 10 test = page_cycler.PageCycler |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 | 62 |
| 63 class PageCyclerMoz(test.Test): | 63 class PageCyclerMoz(test.Test): |
| 64 test = page_cycler.PageCycler | 64 test = page_cycler.PageCycler |
| 65 page_set = 'page_sets/page_cycler/moz.json' | 65 page_set = 'page_sets/page_cycler/moz.json' |
| 66 options = {'pageset_repeat_iters': 10} | 66 options = {'pageset_repeat_iters': 10} |
| 67 | 67 |
| 68 | 68 |
| 69 class PageCyclerNetsimTop10(test.Test): | 69 class PageCyclerNetsimTop10(test.Test): |
| 70 """Measures load time of the top 10 sites under simulated cable network.""" | 70 """Measures load time of the top 10 sites under simulated cable network.""" |
| 71 tag = 'netsim' |
| 71 test = page_cycler.PageCycler | 72 test = page_cycler.PageCycler |
| 72 page_set = 'page_sets/top_10.json' | 73 page_set = 'page_sets/top_10.json' |
| 73 options = { | 74 options = { |
| 75 'cold_load_percent': 100, |
| 74 'extra_wpr_args': [ | 76 'extra_wpr_args': [ |
| 75 '--shaping_type=proxy', | 77 '--shaping_type=proxy', |
| 76 '--net=cable' | 78 '--net=cable' |
| 77 ], | 79 ], |
| 78 'pageset_repeat_iters': 5, | 80 'pageset_repeat_iters': 5, |
| 79 } | 81 } |
| 80 | 82 |
| 81 def __init__(self): | 83 def __init__(self): |
| 82 super(PageCyclerNetsimTop10, self).__init__() | 84 super(PageCyclerNetsimTop10, self).__init__() |
| 83 # TODO: This isn't quite right. | 85 # TODO: This isn't quite right. |
| 84 # This option will still apply to page cyclers that run after this one. | 86 # This option will still apply to page cyclers that run after this one. |
| 85 self.test.clear_cache_before_each_run = True | 87 self.test.clear_cache_before_each_run = True |
| 86 | 88 |
| 87 | 89 |
| 90 class PageCyclerToughLayoutCases(test.Test): |
| 91 test = page_cycler.PageCycler |
| 92 page_set = 'page_sets/tough_layout_cases.json' |
| 93 options = {'pageset_repeat_iters': 10} |
| 94 |
| 95 |
| 88 class PageCyclerTypical25(test.Test): | 96 class PageCyclerTypical25(test.Test): |
| 89 test = page_cycler.PageCycler | 97 test = page_cycler.PageCycler |
| 90 page_set = 'page_sets/typical_25.json' | 98 page_set = 'page_sets/typical_25.json' |
| 91 options = {'pageset_repeat_iters': 10} | 99 options = {'pageset_repeat_iters': 10} |
| OLD | NEW |