| 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 import collections | 4 import collections |
| 5 import json | 5 import json |
| 6 import os | 6 import os |
| 7 | 7 |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 | 9 |
| 10 from telemetry import page as page_module | 10 from telemetry import page as page_module |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 """Apple's SunSpider JavaScript benchmark. | 130 """Apple's SunSpider JavaScript benchmark. |
| 131 | 131 |
| 132 http://www.webkit.org/perf/sunspider/sunspider.html | 132 http://www.webkit.org/perf/sunspider/sunspider.html |
| 133 """ | 133 """ |
| 134 test = _SunspiderMeasurement | 134 test = _SunspiderMeasurement |
| 135 | 135 |
| 136 @classmethod | 136 @classmethod |
| 137 def Name(cls): | 137 def Name(cls): |
| 138 return 'sunspider' | 138 return 'sunspider' |
| 139 | 139 |
| 140 def CreateStorySet(self, options): | 140 def CreatePageSet(self, options): |
| 141 ps = page_set.PageSet( | 141 ps = page_set.PageSet( |
| 142 archive_data_file='../page_sets/data/sunspider.json', | 142 archive_data_file='../page_sets/data/sunspider.json', |
| 143 base_dir=os.path.dirname(os.path.abspath(__file__)), | 143 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 144 bucket=page_set.PARTNER_BUCKET) | 144 bucket=page_set.PARTNER_BUCKET) |
| 145 ps.AddUserStory(page_module.Page( | 145 ps.AddUserStory(page_module.Page( |
| 146 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) | 146 _URL, ps, ps.base_dir, make_javascript_deterministic=False)) |
| 147 return ps | 147 return ps |
| OLD | NEW |