Chromium Code Reviews| 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 test | 4 from telemetry import test |
| 5 | 5 |
| 6 from perf_tools import page_cycler | 6 from perf_tools import page_cycler |
| 7 | 7 |
| 8 | 8 |
| 9 class NetsimTop25(test.Test): | 9 class NetsimTop25(test.Test): |
| 10 """Measures load time of the top 25 sites under simulated cable network.""" | 10 """Measures load time of the top 25 sites under simulated cable network.""" |
| 11 test = page_cycler.PageCycler | 11 test = page_cycler.PageCycler |
| 12 page_set = 'tools/perf/page_sets/top_25.json' | 12 page_set = 'tools/perf/page_sets/top_25.json' |
| 13 options = { | 13 options = { |
| 14 'extra_wpr_args': [ | 14 'extra_wpr_args': [ |
| 15 '--shaping_type=proxy', | 15 '--shaping_type=proxy', |
| 16 '--net=cable' | 16 '--net=cable' |
| 17 ], | 17 ], |
| 18 'pageset_repeat': '5', | 18 'pageset_repeat': '5', |
| 19 } | 19 } |
| 20 | 20 |
| 21 @staticmethod | |
| 22 def CanRunOnBot(bot_properties): | |
| 23 return bot_properties.master_name in ['default', 'chromium.perf'] | |
|
bulach
2013/07/09 10:07:32
IMHO, sprinkling this "CanRunOnBot" makes it diffi
| |
| 24 | |
| 25 | |
| 21 def __init__(self): | 26 def __init__(self): |
| 22 super(NetsimTop25, self).__init__() | 27 super(NetsimTop25, self).__init__() |
| 23 self.test.clear_cache_before_each_run = True | 28 self.test.clear_cache_before_each_run = True |
| OLD | NEW |