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
3 # found in the LICENSE file.
5 from measurements
import page_cycler
7 from telemetry
import benchmark
10 class PageCyclerBloat(benchmark
.Benchmark
):
11 test
= page_cycler
.PageCycler
12 page_set
= page_sets
.BloatPageSet
13 options
= {'pageset_repeat': 10}
16 class PageCyclerDhtml(benchmark
.Benchmark
):
17 test
= page_cycler
.PageCycler
18 page_set
= page_sets
.DhtmlPageSet
19 options
= {'pageset_repeat': 10}
22 class PageCyclerIntlArFaHe(benchmark
.Benchmark
):
23 test
= page_cycler
.PageCycler
24 page_set
= page_sets
.IntlArFaHePageSet
25 options
= {'pageset_repeat': 10}
28 @benchmark.Disabled('win') # crbug.com/388337
29 class PageCyclerIntlEsFrPtBr(benchmark
.Benchmark
):
30 test
= page_cycler
.PageCycler
31 page_set
= page_sets
.IntlEsFrPtBrPageSet
32 options
= {'pageset_repeat': 10}
35 class PageCyclerIntlHiRu(benchmark
.Benchmark
):
36 test
= page_cycler
.PageCycler
37 page_set
= page_sets
.IntlHiRuPageSet
38 options
= {'pageset_repeat': 10}
41 @benchmark.Disabled('android', 'win') # crbug.com/379564, crbug.com/330909
42 class PageCyclerIntlJaZh(benchmark
.Benchmark
):
43 test
= page_cycler
.PageCycler
44 page_set
= page_sets
.IntlJaZhPageSet
45 options
= {'pageset_repeat': 10}
48 class PageCyclerIntlKoThVi(benchmark
.Benchmark
):
49 test
= page_cycler
.PageCycler
50 page_set
= page_sets
.IntlKoThViPageSet
51 options
= {'pageset_repeat': 10}
54 class PageCyclerMorejs(benchmark
.Benchmark
):
55 test
= page_cycler
.PageCycler
56 page_set
= page_sets
.MorejsPageSet
57 options
= {'pageset_repeat': 10}
60 class PageCyclerMoz(benchmark
.Benchmark
):
61 test
= page_cycler
.PageCycler
62 page_set
= page_sets
.MozPageSet
63 options
= {'pageset_repeat': 10}
66 @benchmark.Disabled('linux', 'win') # crbug.com/353260
67 class PageCyclerNetsimTop10(benchmark
.Benchmark
):
68 """Measures load time of the top 10 sites under simulated cable network."""
70 test
= page_cycler
.PageCycler
71 page_set
= page_sets
.Top10PageSet
73 'cold_load_percent': 100,
75 '--shaping_type=proxy',
82 super(PageCyclerNetsimTop10
, 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
88 class PageCyclerTop10Mobile(benchmark
.Benchmark
):
89 test
= page_cycler
.PageCycler
90 page_set
= page_sets
.Top10MobilePageSet
91 options
= {'pageset_repeat': 10}
94 @benchmark.Disabled('android')
95 class PageCyclerKeyMobileSites(benchmark
.Benchmark
):
96 test
= page_cycler
.PageCycler
97 page_set
= page_sets
.KeyMobileSitesPageSet
98 options
= {'pageset_repeat': 10}
101 @benchmark.Disabled('android') # crbug.com/357326
102 class PageCyclerToughLayoutCases(benchmark
.Benchmark
):
103 test
= page_cycler
.PageCycler
104 page_set
= page_sets
.ToughLayoutCasesPageSet
105 options
= {'pageset_repeat': 10}
108 # crbug.com/273986: This test is really flakey on xp.
109 # cabug.com/341843: This test is always timing out on Android.
110 @benchmark.Disabled('android', 'win')
111 class PageCyclerTypical25(benchmark
.Benchmark
):
112 test
= page_cycler
.PageCycler
113 page_set
= page_sets
.Typical25PageSet
114 options
= {'pageset_repeat': 10}