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

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

Issue 2918413004: Explicitly setting story name for speedometer benchmark (Closed)
Patch Set: Created 3 years, 6 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 test = SpeedometerMeasurement 96 test = SpeedometerMeasurement
97 97
98 @classmethod 98 @classmethod
99 def Name(cls): 99 def Name(cls):
100 return 'speedometer' 100 return 'speedometer'
101 101
102 def CreateStorySet(self, options): 102 def CreateStorySet(self, options):
103 ps = story.StorySet( 103 ps = story.StorySet(
104 base_dir=os.path.dirname(os.path.abspath(__file__)), 104 base_dir=os.path.dirname(os.path.abspath(__file__)),
105 archive_data_file='../page_sets/data/speedometer.json', 105 archive_data_file='../page_sets/data/speedometer.json',
106 cloud_storage_bucket=story.PUBLIC_BUCKET) 106 cloud_storage_bucket=story.PUBLIC_BUCKET,
107 verify_names=True)
107 ps.AddStory(page_module.Page( 108 ps.AddStory(page_module.Page(
108 'http://browserbench.org/Speedometer/', ps, ps.base_dir, 109 'http://browserbench.org/Speedometer/', ps, ps.base_dir,
109 make_javascript_deterministic=False)) 110 make_javascript_deterministic=False,
111 name='http://browserbench.org/Speedometer/'))
110 return ps 112 return ps
111 113
112 114
113 @benchmark.Owner(emails=['hablich@chromium.org']) 115 @benchmark.Owner(emails=['hablich@chromium.org'])
114 @benchmark.Disabled('all') 116 @benchmark.Disabled('all')
115 class SpeedometerTurbo(Speedometer): 117 class SpeedometerTurbo(Speedometer):
116 def SetExtraBrowserOptions(self, options): 118 def SetExtraBrowserOptions(self, options):
117 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options) 119 super(SpeedometerTurbo, self).SetExtraBrowserOptions(options)
118 v8_helper.EnableTurbo(options) 120 v8_helper.EnableTurbo(options)
119 121
120 @classmethod 122 @classmethod
121 def Name(cls): 123 def Name(cls):
122 return 'speedometer-turbo' 124 return 'speedometer-turbo'
123 125
124 126
125 @benchmark.Owner(emails=['hablich@chromium.org']) 127 @benchmark.Owner(emails=['hablich@chromium.org'])
126 class SpeedometerClassic(Speedometer): 128 class SpeedometerClassic(Speedometer):
127 def SetExtraBrowserOptions(self, options): 129 def SetExtraBrowserOptions(self, options):
128 super(SpeedometerClassic, self).SetExtraBrowserOptions(options) 130 super(SpeedometerClassic, self).SetExtraBrowserOptions(options)
129 v8_helper.EnableClassic(options) 131 v8_helper.EnableClassic(options)
130 132
131 @classmethod 133 @classmethod
132 def Name(cls): 134 def Name(cls):
133 return 'speedometer-classic' 135 return 'speedometer-classic'
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