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

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

Issue 2671463003: [BotHealth] Disable speedometer benchmarks on Android (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 """Apple's Speedometer performance benchmark. 5 """Apple's Speedometer performance benchmark.
6 6
7 Speedometer measures simulated user interactions in web applications. 7 Speedometer measures simulated user interactions in web applications.
8 8
9 The current benchmark uses TodoMVC to simulate user actions for adding, 9 The current benchmark uses TodoMVC to simulate user actions for adding,
10 completing, and removing to-do items. Speedometer repeats the same actions using 10 completing, and removing to-do items. Speedometer repeats the same actions using
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 for(var i = 0; i < benchmarkClient.iterationCount; i++) { 84 for(var i = 0; i < benchmarkClient.iterationCount; i++) {
85 suite_times.push( 85 suite_times.push(
86 benchmarkClient._measuredValues[i].tests[{{ key }}].total); 86 benchmarkClient._measuredValues[i].tests[{{ key }}].total);
87 }; 87 };
88 suite_times; 88 suite_times;
89 """, 89 """,
90 key=suite_name), important=False)) 90 key=suite_name), important=False))
91 keychain_metric.KeychainMetric().AddResults(tab, results) 91 keychain_metric.KeychainMetric().AddResults(tab, results)
92 92
93 93
94 @benchmark.Disabled('android') # crbug.com/687681
94 class Speedometer(perf_benchmark.PerfBenchmark): 95 class Speedometer(perf_benchmark.PerfBenchmark):
95 test = SpeedometerMeasurement 96 test = SpeedometerMeasurement
96 97
97 @classmethod 98 @classmethod
98 def Name(cls): 99 def Name(cls):
99 return 'speedometer' 100 return 'speedometer'
100 101
101 def CreateStorySet(self, options): 102 def CreateStorySet(self, options):
102 ps = story.StorySet( 103 ps = story.StorySet(
103 base_dir=os.path.dirname(os.path.abspath(__file__)), 104 base_dir=os.path.dirname(os.path.abspath(__file__)),
104 archive_data_file='../page_sets/data/speedometer.json', 105 archive_data_file='../page_sets/data/speedometer.json',
105 cloud_storage_bucket=story.PUBLIC_BUCKET) 106 cloud_storage_bucket=story.PUBLIC_BUCKET)
106 ps.AddStory(page_module.Page( 107 ps.AddStory(page_module.Page(
107 'http://browserbench.org/Speedometer/', ps, ps.base_dir, 108 'http://browserbench.org/Speedometer/', ps, ps.base_dir,
108 make_javascript_deterministic=False)) 109 make_javascript_deterministic=False))
109 return ps 110 return ps
110 111
111 112
112 @benchmark.Disabled('reference') # crbug.com/579546 113 # crbug.com/579546 (ref), crbug.com/687681 (android)
114 @benchmark.Disabled('reference', 'android')
113 class SpeedometerIgnition(Speedometer): 115 class SpeedometerIgnition(Speedometer):
114 def SetExtraBrowserOptions(self, options): 116 def SetExtraBrowserOptions(self, options):
115 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options) 117 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options)
116 v8_helper.EnableIgnition(options) 118 v8_helper.EnableIgnition(options)
117 119
118 @classmethod 120 @classmethod
119 def Name(cls): 121 def Name(cls):
120 return 'speedometer-ignition' 122 return 'speedometer-ignition'
121 123
122 124
125 @benchmark.Disabled('android') # crbug.com/687681
123 class SpeedometerTurbo(Speedometer): 126 class SpeedometerTurbo(Speedometer):
124 def SetExtraBrowserOptions(self, options): 127 def SetExtraBrowserOptions(self, options):
125 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options) 128 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options)
126 v8_helper.EnableTurbo(options) 129 v8_helper.EnableTurbo(options)
127 130
128 @classmethod 131 @classmethod
129 def Name(cls): 132 def Name(cls):
130 return 'speedometer-turbo' 133 return 'speedometer-turbo'
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