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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 page_set = 'page_sets/page_cycler/morejs.json' | 59 page_set = 'page_sets/page_cycler/morejs.json' |
60 options = {'pageset_repeat_iters': 10} | 60 options = {'pageset_repeat_iters': 10} |
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 PageCyclerNetsimTop25(test.Test): | 69 class PageCyclerNetsimTop10(test.Test): |
70 """Measures load time of the top 25 sites under simulated cable network.""" | 70 """Measures load time of the top 10 sites under simulated cable network.""" |
71 test = page_cycler.PageCycler | 71 test = page_cycler.PageCycler |
72 page_set = 'page_sets/top_25.json' | 72 page_set = 'page_sets/top_10.json' |
73 options = { | 73 options = { |
74 'extra_wpr_args': [ | 74 'extra_wpr_args': [ |
75 '--shaping_type=proxy', | 75 '--shaping_type=proxy', |
76 '--net=cable' | 76 '--net=cable' |
77 ], | 77 ], |
78 'pageset_repeat_iters': 5, | 78 'pageset_repeat_iters': 5, |
79 } | 79 } |
80 | 80 |
81 def __init__(self): | 81 def __init__(self): |
82 super(PageCyclerNetsimTop25, self).__init__() | 82 super(PageCyclerNetsimTop10, self).__init__() |
83 # TODO: This isn't quite right. | 83 # TODO: This isn't quite right. |
84 # This option will still apply to page cyclers that run after this one. | 84 # This option will still apply to page cyclers that run after this one. |
85 self.test.clear_cache_before_each_run = True | 85 self.test.clear_cache_before_each_run = True |
86 | 86 |
87 | 87 |
88 class PageCyclerTypical25(test.Test): | 88 class PageCyclerTypical25(test.Test): |
89 test = page_cycler.PageCycler | 89 test = page_cycler.PageCycler |
90 page_set = 'page_sets/typical_25.json' | 90 page_set = 'page_sets/typical_25.json' |
91 options = {'pageset_repeat_iters': 10} | 91 options = {'pageset_repeat_iters': 10} |
OLD | NEW |