| 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 json | 7 import json |
| 8 import os | 8 import os |
| 9 | 9 |
| 10 from core import perf_benchmark | 10 from core import perf_benchmark |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 test = _KrakenMeasurement | 125 test = _KrakenMeasurement |
| 126 | 126 |
| 127 @classmethod | 127 @classmethod |
| 128 def Name(cls): | 128 def Name(cls): |
| 129 return 'kraken' | 129 return 'kraken' |
| 130 | 130 |
| 131 def CreateStorySet(self, options): | 131 def CreateStorySet(self, options): |
| 132 ps = story.StorySet( | 132 ps = story.StorySet( |
| 133 archive_data_file='../page_sets/data/kraken.json', | 133 archive_data_file='../page_sets/data/kraken.json', |
| 134 base_dir=os.path.dirname(os.path.abspath(__file__)), | 134 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 135 cloud_storage_bucket=story.PARTNER_BUCKET, | 135 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 136 verify_names=True) | |
| 137 ps.AddStory(page_module.Page( | 136 ps.AddStory(page_module.Page( |
| 138 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', | 137 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', |
| 139 ps, ps.base_dir, | 138 ps, ps.base_dir, |
| 140 name='http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html')) | 139 name='http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html')) |
| 141 return ps | 140 return ps |
| 142 | 141 |
| 143 @classmethod | 142 @classmethod |
| 144 def ShouldDisable(cls, possible_browser): | 143 def ShouldDisable(cls, possible_browser): |
| 145 return cls.IsSvelte(possible_browser) # http://crbug.com/624411 | 144 return cls.IsSvelte(possible_browser) # http://crbug.com/624411 |
| OLD | NEW |