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

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

Issue 2684633002: Revert of [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
95 class Speedometer(perf_benchmark.PerfBenchmark): 94 class Speedometer(perf_benchmark.PerfBenchmark):
96 test = SpeedometerMeasurement 95 test = SpeedometerMeasurement
97 96
98 @classmethod 97 @classmethod
99 def Name(cls): 98 def Name(cls):
100 return 'speedometer' 99 return 'speedometer'
101 100
102 def CreateStorySet(self, options): 101 def CreateStorySet(self, options):
103 ps = story.StorySet( 102 ps = story.StorySet(
104 base_dir=os.path.dirname(os.path.abspath(__file__)), 103 base_dir=os.path.dirname(os.path.abspath(__file__)),
105 archive_data_file='../page_sets/data/speedometer.json', 104 archive_data_file='../page_sets/data/speedometer.json',
106 cloud_storage_bucket=story.PUBLIC_BUCKET) 105 cloud_storage_bucket=story.PUBLIC_BUCKET)
107 ps.AddStory(page_module.Page( 106 ps.AddStory(page_module.Page(
108 'http://browserbench.org/Speedometer/', ps, ps.base_dir, 107 'http://browserbench.org/Speedometer/', ps, ps.base_dir,
109 make_javascript_deterministic=False)) 108 make_javascript_deterministic=False))
110 return ps 109 return ps
111 110
112 111
113 # crbug.com/579546 (ref), crbug.com/687681 (android) 112 @benchmark.Disabled('reference') # crbug.com/579546
114 @benchmark.Disabled('reference', 'android')
115 class SpeedometerIgnition(Speedometer): 113 class SpeedometerIgnition(Speedometer):
116 def SetExtraBrowserOptions(self, options): 114 def SetExtraBrowserOptions(self, options):
117 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options) 115 super(SpeedometerIgnition, self).SetExtraBrowserOptions(options)
118 v8_helper.EnableIgnition(options) 116 v8_helper.EnableIgnition(options)
119 117
120 @classmethod 118 @classmethod
121 def Name(cls): 119 def Name(cls):
122 return 'speedometer-ignition' 120 return 'speedometer-ignition'
123 121
124 122
125 @benchmark.Disabled('android') # crbug.com/687681
126 class SpeedometerTurbo(Speedometer): 123 class SpeedometerTurbo(Speedometer):
127 def SetExtraBrowserOptions(self, options): 124 def SetExtraBrowserOptions(self, options):
128 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options) 125 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options)
129 v8_helper.EnableTurbo(options) 126 v8_helper.EnableTurbo(options)
130 127
131 @classmethod 128 @classmethod
132 def Name(cls): 129 def Name(cls):
133 return 'speedometer-turbo' 130 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