OLD | NEW |
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 import math | 5 import math |
6 import os | 6 import os |
7 | 7 |
8 from metrics import power | 8 from metrics import power |
9 from telemetry import benchmark | 9 from telemetry import benchmark |
10 from telemetry import page as page_module | 10 from telemetry import page as page_module |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 test = _DromaeoMeasurement | 98 test = _DromaeoMeasurement |
99 | 99 |
100 def CreatePageSet(self, options): | 100 def CreatePageSet(self, options): |
101 """Makes a PageSet for Dromaeo benchmarks.""" | 101 """Makes a PageSet for Dromaeo benchmarks.""" |
102 # Subclasses are expected to define class members called query_param and | 102 # Subclasses are expected to define class members called query_param and |
103 # tag. | 103 # tag. |
104 if not hasattr(self, 'query_param') or not hasattr(self, 'tag'): | 104 if not hasattr(self, 'query_param') or not hasattr(self, 'tag'): |
105 raise NotImplementedError('query_param or tag not in Dromaeo benchmark.') | 105 raise NotImplementedError('query_param or tag not in Dromaeo benchmark.') |
106 archive_data_file = '../page_sets/data/dromaeo.%s.json' % self.tag | 106 archive_data_file = '../page_sets/data/dromaeo.%s.json' % self.tag |
107 ps = page_set.PageSet( | 107 ps = page_set.PageSet( |
108 make_javascript_deterministic=False, | |
109 archive_data_file=archive_data_file, | 108 archive_data_file=archive_data_file, |
110 file_path=os.path.abspath(__file__), bucket=page_set.PUBLIC_BUCKET) | 109 file_path=os.path.abspath(__file__), bucket=page_set.PUBLIC_BUCKET) |
111 url = 'http://dromaeo.com?%s' % self.query_param | 110 url = 'http://dromaeo.com?%s' % self.query_param |
112 ps.AddUserStory(page_module.Page(url, ps, ps.base_dir)) | 111 ps.AddUserStory(page_module.Page( |
| 112 url, ps, ps.base_dir, make_javascript_deterministic=False)) |
113 return ps | 113 return ps |
114 | 114 |
115 | 115 |
116 class DromaeoDomCoreAttr(_DromaeoBenchmark): | 116 class DromaeoDomCoreAttr(_DromaeoBenchmark): |
117 """Dromaeo DOMCore attr JavaScript benchmark.""" | 117 """Dromaeo DOMCore attr JavaScript benchmark.""" |
118 tag = 'domcoreattr' | 118 tag = 'domcoreattr' |
119 query_param = 'dom-attr' | 119 query_param = 'dom-attr' |
120 | 120 |
121 | 121 |
122 class DromaeoDomCoreModify(_DromaeoBenchmark): | 122 class DromaeoDomCoreModify(_DromaeoBenchmark): |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 """Dromaeo JSLib traverse prototype JavaScript benchmark""" | 196 """Dromaeo JSLib traverse prototype JavaScript benchmark""" |
197 tag = 'jslibtraverseprototype' | 197 tag = 'jslibtraverseprototype' |
198 query_param = 'jslib-traverse-prototype' | 198 query_param = 'jslib-traverse-prototype' |
199 | 199 |
200 | 200 |
201 class DromaeoCSSQueryJquery(_DromaeoBenchmark): | 201 class DromaeoCSSQueryJquery(_DromaeoBenchmark): |
202 """Dromaeo CSS Query jquery JavaScript benchmark""" | 202 """Dromaeo CSS Query jquery JavaScript benchmark""" |
203 tag = 'cssqueryjquery' | 203 tag = 'cssqueryjquery' |
204 query_param = 'cssquery-jquery' | 204 query_param = 'cssquery-jquery' |
205 | 205 |
OLD | NEW |