Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: tools/perf/benchmarks/page_cycler.py

Issue 337603005: Rename telemetry.test.Test to telemetry.benchmark.Benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/perf/benchmarks/octane.py ('k') | tools/perf/benchmarks/peacekeeper.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 4
5 from measurements import page_cycler 5 from measurements import page_cycler
6 import page_sets 6 import page_sets
7 from telemetry import test 7 from telemetry import benchmark
8 8
9 9
10 class PageCyclerBloat(test.Test): 10 class PageCyclerBloat(benchmark.Benchmark):
11 test = page_cycler.PageCycler 11 test = page_cycler.PageCycler
12 page_set = page_sets.BloatPageSet 12 page_set = page_sets.BloatPageSet
13 options = {'pageset_repeat': 10} 13 options = {'pageset_repeat': 10}
14 14
15 15
16 class PageCyclerDhtml(test.Test): 16 class PageCyclerDhtml(benchmark.Benchmark):
17 test = page_cycler.PageCycler 17 test = page_cycler.PageCycler
18 page_set = page_sets.DhtmlPageSet 18 page_set = page_sets.DhtmlPageSet
19 options = {'pageset_repeat': 10} 19 options = {'pageset_repeat': 10}
20 20
21 21
22 class PageCyclerIntlArFaHe(test.Test): 22 class PageCyclerIntlArFaHe(benchmark.Benchmark):
23 test = page_cycler.PageCycler 23 test = page_cycler.PageCycler
24 page_set = page_sets.IntlArFaHePageSet 24 page_set = page_sets.IntlArFaHePageSet
25 options = {'pageset_repeat': 10} 25 options = {'pageset_repeat': 10}
26 26
27 27
28 @test.Disabled('win') # crbug.com/388337 28 @benchmark.Disabled('win') # crbug.com/388337
29 class PageCyclerIntlEsFrPtBr(test.Test): 29 class PageCyclerIntlEsFrPtBr(benchmark.Benchmark):
30 test = page_cycler.PageCycler 30 test = page_cycler.PageCycler
31 page_set = page_sets.IntlEsFrPtBrPageSet 31 page_set = page_sets.IntlEsFrPtBrPageSet
32 options = {'pageset_repeat': 10} 32 options = {'pageset_repeat': 10}
33 33
34 34
35 class PageCyclerIntlHiRu(test.Test): 35 class PageCyclerIntlHiRu(benchmark.Benchmark):
36 test = page_cycler.PageCycler 36 test = page_cycler.PageCycler
37 page_set = page_sets.IntlHiRuPageSet 37 page_set = page_sets.IntlHiRuPageSet
38 options = {'pageset_repeat': 10} 38 options = {'pageset_repeat': 10}
39 39
40 40
41 @test.Disabled('android', 'win') # crbug.com/379564, crbug.com/330909 41 @benchmark.Disabled('android', 'win') # crbug.com/379564, crbug.com/330909
42 class PageCyclerIntlJaZh(test.Test): 42 class PageCyclerIntlJaZh(benchmark.Benchmark):
43 test = page_cycler.PageCycler 43 test = page_cycler.PageCycler
44 page_set = page_sets.IntlJaZhPageSet 44 page_set = page_sets.IntlJaZhPageSet
45 options = {'pageset_repeat': 10} 45 options = {'pageset_repeat': 10}
46 46
47 47
48 class PageCyclerIntlKoThVi(test.Test): 48 class PageCyclerIntlKoThVi(benchmark.Benchmark):
49 test = page_cycler.PageCycler 49 test = page_cycler.PageCycler
50 page_set = page_sets.IntlKoThViPageSet 50 page_set = page_sets.IntlKoThViPageSet
51 options = {'pageset_repeat': 10} 51 options = {'pageset_repeat': 10}
52 52
53 53
54 class PageCyclerMorejs(test.Test): 54 class PageCyclerMorejs(benchmark.Benchmark):
55 test = page_cycler.PageCycler 55 test = page_cycler.PageCycler
56 page_set = page_sets.MorejsPageSet 56 page_set = page_sets.MorejsPageSet
57 options = {'pageset_repeat': 10} 57 options = {'pageset_repeat': 10}
58 58
59 59
60 class PageCyclerMoz(test.Test): 60 class PageCyclerMoz(benchmark.Benchmark):
61 test = page_cycler.PageCycler 61 test = page_cycler.PageCycler
62 page_set = page_sets.MozPageSet 62 page_set = page_sets.MozPageSet
63 options = {'pageset_repeat': 10} 63 options = {'pageset_repeat': 10}
64 64
65 65
66 @test.Disabled('linux', 'win') # crbug.com/353260 66 @benchmark.Disabled('linux', 'win') # crbug.com/353260
67 class PageCyclerNetsimTop10(test.Test): 67 class PageCyclerNetsimTop10(benchmark.Benchmark):
68 """Measures load time of the top 10 sites under simulated cable network.""" 68 """Measures load time of the top 10 sites under simulated cable network."""
69 tag = 'netsim' 69 tag = 'netsim'
70 test = page_cycler.PageCycler 70 test = page_cycler.PageCycler
71 page_set = page_sets.Top10PageSet 71 page_set = page_sets.Top10PageSet
72 options = { 72 options = {
73 'cold_load_percent': 100, 73 'cold_load_percent': 100,
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': 5, 78 'pageset_repeat': 5,
79 } 79 }
80 80
81 def __init__(self): 81 def __init__(self):
82 super(PageCyclerNetsimTop10, 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 PageCyclerTop10Mobile(test.Test): 88 class PageCyclerTop10Mobile(benchmark.Benchmark):
89 test = page_cycler.PageCycler 89 test = page_cycler.PageCycler
90 page_set = page_sets.Top10MobilePageSet 90 page_set = page_sets.Top10MobilePageSet
91 options = {'pageset_repeat': 10} 91 options = {'pageset_repeat': 10}
92 92
93 93
94 class PageCyclerKeyMobileSites(test.Test): 94 class PageCyclerKeyMobileSites(benchmark.Benchmark):
95 test = page_cycler.PageCycler 95 test = page_cycler.PageCycler
96 page_set = page_sets.KeyMobileSitesPageSet 96 page_set = page_sets.KeyMobileSitesPageSet
97 options = {'pageset_repeat': 10} 97 options = {'pageset_repeat': 10}
98 98
99 99
100 @test.Disabled('android') # crbug.com/357326 100 @benchmark.Disabled('android') # crbug.com/357326
101 class PageCyclerToughLayoutCases(test.Test): 101 class PageCyclerToughLayoutCases(benchmark.Benchmark):
102 test = page_cycler.PageCycler 102 test = page_cycler.PageCycler
103 page_set = page_sets.ToughLayoutCasesPageSet 103 page_set = page_sets.ToughLayoutCasesPageSet
104 options = {'pageset_repeat': 10} 104 options = {'pageset_repeat': 10}
105 105
106 106
107 # crbug.com/273986: This test is really flakey on xp. 107 # crbug.com/273986: This test is really flakey on xp.
108 # cabug.com/341843: This test is always timing out on Android. 108 # cabug.com/341843: This test is always timing out on Android.
109 @test.Disabled('android', 'win') 109 @benchmark.Disabled('android', 'win')
110 class PageCyclerTypical25(test.Test): 110 class PageCyclerTypical25(benchmark.Benchmark):
111 test = page_cycler.PageCycler 111 test = page_cycler.PageCycler
112 page_set = page_sets.Typical25PageSet 112 page_set = page_sets.Typical25PageSet
113 options = {'pageset_repeat': 10} 113 options = {'pageset_repeat': 10}
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/octane.py ('k') | tools/perf/benchmarks/peacekeeper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698