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

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

Issue 2203593002: Re-enable some PCv1 benchmarks for CrOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | no next file » | 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 core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from measurements import page_cycler 7 from measurements import page_cycler
8 import page_sets 8 import page_sets
9 from telemetry import benchmark 9 from telemetry import benchmark
10 10
(...skipping 17 matching lines...) Expand all
28 return cls.cold_load_percent > 0 or not is_first_result 28 return cls.cold_load_percent > 0 or not is_first_result
29 29
30 def CreatePageTest(self, options): 30 def CreatePageTest(self, options):
31 return page_cycler.PageCycler( 31 return page_cycler.PageCycler(
32 page_repeat=options.page_repeat, 32 page_repeat=options.page_repeat,
33 pageset_repeat=options.pageset_repeat, 33 pageset_repeat=options.pageset_repeat,
34 cold_load_percent=self.cold_load_percent, 34 cold_load_percent=self.cold_load_percent,
35 report_speed_index=options.report_speed_index) 35 report_speed_index=options.report_speed_index)
36 36
37 37
38 @benchmark.Enabled('chromeos')
39 class PageCyclerIntlArFaHe(_PageCycler):
40 """Page load time for a variety of pages in Arabic, Farsi and Hebrew.
41
42 Runs against pages recorded in April, 2013.
43 """
44 page_set = page_sets.IntlArFaHePageSet
45
46 @classmethod
47 def Name(cls):
48 return 'page_cycler.intl_ar_fa_he'
49
50
51 @benchmark.Enabled('chromeos')
52 class PageCyclerIntlEsFrPtBr(_PageCycler):
53 """Page load time for a pages in Spanish, French and Brazilian Portuguese.
54
55 Runs against pages recorded in April, 2013.
56 """
57 page_set = page_sets.IntlEsFrPtBrPageSet
58
59 @classmethod
60 def Name(cls):
61 return 'page_cycler.intl_es_fr_pt-BR'
62
63
38 class PageCyclerIntlHiRu(_PageCycler): 64 class PageCyclerIntlHiRu(_PageCycler):
39 """Page load time benchmark for a variety of pages in Hindi and Russian. 65 """Page load time benchmark for a variety of pages in Hindi and Russian.
40 66
41 Runs against pages recorded in April, 2013. 67 Runs against pages recorded in April, 2013.
42 """ 68 """
43 page_set = page_sets.IntlHiRuPageSet 69 page_set = page_sets.IntlHiRuPageSet
44 70
45 @classmethod 71 @classmethod
46 def Name(cls): 72 def Name(cls):
47 return 'page_cycler.intl_hi_ru' 73 return 'page_cycler.intl_hi_ru'
48 74
49 75
76 @benchmark.Enabled('chromeos')
77 class PageCyclerIntlJaZh(_PageCycler):
78 """Page load time benchmark for a variety of pages in Japanese and Chinese.
79
80 Runs against pages recorded in April, 2013.
81 """
82 page_set = page_sets.IntlJaZhPageSet
83
84 @classmethod
85 def Name(cls):
86 return 'page_cycler.intl_ja_zh'
87
88 @classmethod
89 def ValueCanBeAddedPredicate(cls, value, is_first_result):
90 # Filter out vm_private_dirty_final_renderer
91 # crbug.com/551522
92 print '**** %s ***' % value.name
93 filtered_name = (
94 'vm_private_dirty_final_renderer.vm_private_dirty_final_renderer')
95 return (super(PageCyclerIntlJaZh, cls).ValueCanBeAddedPredicate(
96 value, is_first_result) and value.name != filtered_name)
97
98
50 class PageCyclerIntlKoThVi(_PageCycler): 99 class PageCyclerIntlKoThVi(_PageCycler):
51 """Page load time for a variety of pages in Korean, Thai and Vietnamese. 100 """Page load time for a variety of pages in Korean, Thai and Vietnamese.
52 101
53 Runs against pages recorded in April, 2013. 102 Runs against pages recorded in April, 2013.
54 """ 103 """
55 page_set = page_sets.IntlKoThViPageSet 104 page_set = page_sets.IntlKoThViPageSet
56 105
57 @classmethod 106 @classmethod
58 def Name(cls): 107 def Name(cls):
59 return 'page_cycler.intl_ko_th_vi' 108 return 'page_cycler.intl_ko_th_vi'
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 set, without running in out-of-process iframes mode.. """ 198 set, without running in out-of-process iframes mode.. """
150 page_set = page_sets.OopifBasicPageSet 199 page_set = page_sets.OopifBasicPageSet
151 200
152 @classmethod 201 @classmethod
153 def Name(cls): 202 def Name(cls):
154 return 'page_cycler.basic_oopif' 203 return 'page_cycler.basic_oopif'
155 204
156 @classmethod 205 @classmethod
157 def ShouldDisable(cls, possible_browser): 206 def ShouldDisable(cls, possible_browser):
158 return cls.IsSvelte(possible_browser) # http://crbug.com/607657 207 return cls.IsSvelte(possible_browser) # http://crbug.com/607657
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698