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 3 # found in the LICENSE file. 4 from telemetry import test 5 6 from measurements import page_cycler 7 8 9 class PageCyclerBloat(test.Test): 10 test = page_cycler.PageCycler 11 page_set = 'page_sets/page_cycler/bloat.json' 12 options = {'pageset_repeat_iters': 10} 13 14 15 class PageCyclerDhtml(test.Test): 16 test = page_cycler.PageCycler 17 page_set = 'page_sets/page_cycler/dhtml.json' 18 options = {'pageset_repeat_iters': 10} 19 20 21 class PageCyclerIndexeddb(test.Test): 22 test = page_cycler.PageCycler 23 page_set = 'page_sets/page_cycler/indexed_db/basic_insert.json' 24 options = {'pageset_repeat_iters': 10} 25 26 27 class PageCyclerIntlArFaHe(test.Test): 28 test = page_cycler.PageCycler 29 page_set = 'page_sets/intl_ar_fa_he.json' 30 options = {'pageset_repeat_iters': 10} 31 32 33 class PageCyclerIntlEsFrPtBr(test.Test): 34 test = page_cycler.PageCycler 35 page_set = 'page_sets/intel_es_fr_pt-BR.json' 36 options = {'pageset_repeat_iters': 10} 37 38 39 class PageCyclerIntlHiRu(test.Test): 40 test = page_cycler.PageCycler 41 page_set = 'page_sets/intl_hi_ru.json' 42 options = {'pageset_repeat_iters': 10} 43 44 45 class PageCyclerIntlJaZh(test.Test): 46 test = page_cycler.PageCycler 47 page_set = 'page_sets/intl_ja_zh.json' 48 options = {'pageset_repeat_iters': 10} 49 50 51 class PageCyclerIntlKoThVi(test.Test): 52 test = page_cycler.PageCycler 53 page_set = 'page_sets/intl_ko_th_vi.json' 54 options = {'pageset_repeat_iters': 10} 55 56 57 class PageCyclerMorejs(test.Test): 58 test = page_cycler.PageCycler 59 page_set = 'page_sets/morejs.json' 60 options = {'pageset_repeat_iters': 10} 61 62 63 class PageCyclerMoz(test.Test): 64 test = page_cycler.PageCycler 65 page_set = 'page_sets/page_cycler/moz.json' 66 options = {'pageset_repeat_iters': 10} 67 68 69 class PageCyclerNetsimTop25(test.Test): 70 """Measures load time of the top 25 sites under simulated cable network.""" 71 test = page_cycler.PageCycler 72 page_set = 'tools/perf/page_sets/top_25.json' 73 options = { 74 'extra_wpr_args': [ 75 '--shaping_type=proxy', 76 '--net=cable' 77 ], 78 'pageset_repeat_iters': 5, 79 } 80 81 def __init__(self): 82 super(PageCyclerNetsimTop25, self).__init__() 83 # TODO: This isn't quite right. 84 # This option will still apply to page cyclers that run after this one. 85 self.test.clear_cache_before_each_run = True 86 87 88 class PageCyclerTypical25(test.Test): 89 test = page_cycler.PageCycler 90 page_set = 'page_sets/typical_25.json' 91 options = {'pageset_repeat_iters': 10} 92