92 lines
2.5 KiB
Python
92 lines
2.5 KiB
Python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
from telemetry import test
|
|
|
|
from measurements import page_cycler
|
|
|
|
|
|
class PageCyclerBloat(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/page_cycler/bloat.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerDhtml(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/page_cycler/dhtml.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIndexeddb(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/page_cycler/indexed_db/basic_insert.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIntlArFaHe(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/intl_ar_fa_he.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIntlEsFrPtBr(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/intl_es_fr_pt-BR.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIntlHiRu(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/intl_hi_ru.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIntlJaZh(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/intl_ja_zh.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerIntlKoThVi(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/intl_ko_th_vi.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerMorejs(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/page_cycler/morejs.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerMoz(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/page_cycler/moz.json'
|
|
options = {'pageset_repeat_iters': 10}
|
|
|
|
|
|
class PageCyclerNetsimTop25(test.Test):
|
|
"""Measures load time of the top 25 sites under simulated cable network."""
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/top_25.json'
|
|
options = {
|
|
'extra_wpr_args': [
|
|
'--shaping_type=proxy',
|
|
'--net=cable'
|
|
],
|
|
'pageset_repeat_iters': 5,
|
|
}
|
|
|
|
def __init__(self):
|
|
super(PageCyclerNetsimTop25, self).__init__()
|
|
# TODO: This isn't quite right.
|
|
# This option will still apply to page cyclers that run after this one.
|
|
self.test.clear_cache_before_each_run = True
|
|
|
|
|
|
class PageCyclerTypical25(test.Test):
|
|
test = page_cycler.PageCycler
|
|
page_set = 'page_sets/typical_25.json'
|
|
options = {'pageset_repeat_iters': 10}
|