| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 """Runs Mozilla's Kraken JavaScript benchmark.""" | 5 """Runs Mozilla's Kraken JavaScript benchmark.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 from core import perf_benchmark | 9 from core import perf_benchmark |
| 10 | 10 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 """Mozilla's Kraken JavaScript benchmark. | 118 """Mozilla's Kraken JavaScript benchmark. |
| 119 | 119 |
| 120 http://krakenbenchmark.mozilla.org/ | 120 http://krakenbenchmark.mozilla.org/ |
| 121 """ | 121 """ |
| 122 test = _KrakenMeasurement | 122 test = _KrakenMeasurement |
| 123 | 123 |
| 124 @classmethod | 124 @classmethod |
| 125 def Name(cls): | 125 def Name(cls): |
| 126 return 'kraken' | 126 return 'kraken' |
| 127 | 127 |
| 128 def CreateStorySet(self, options): | 128 def CreatePageSet(self, options): |
| 129 ps = page_set.PageSet( | 129 ps = page_set.PageSet( |
| 130 archive_data_file='../page_sets/data/kraken.json', | 130 archive_data_file='../page_sets/data/kraken.json', |
| 131 base_dir=os.path.dirname(os.path.abspath(__file__)), | 131 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 132 bucket=page_set.PARTNER_BUCKET) | 132 bucket=page_set.PARTNER_BUCKET) |
| 133 ps.AddUserStory(page_module.Page( | 133 ps.AddUserStory(page_module.Page( |
| 134 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', | 134 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', |
| 135 ps, ps.base_dir)) | 135 ps, ps.base_dir)) |
| 136 return ps | 136 return ps |
| OLD | NEW |