| 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 Octane 2.0 javascript benchmark. | 5 """Runs Octane 2.0 javascript benchmark. |
| 6 | 6 |
| 7 Octane 2.0 is a modern benchmark that measures a JavaScript engine's performance | 7 Octane 2.0 is a modern benchmark that measures a JavaScript engine's performance |
| 8 by running a suite of tests representative of today's complex and demanding web | 8 by running a suite of tests representative of today's complex and demanding web |
| 9 applications. Octane's goal is to measure the performance of JavaScript code | 9 applications. Octane's goal is to measure the performance of JavaScript code |
| 10 found in large, real-world web applications. | 10 found in large, real-world web applications. |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 test = _OctaneMeasurement | 141 test = _OctaneMeasurement |
| 142 | 142 |
| 143 @classmethod | 143 @classmethod |
| 144 def Name(cls): | 144 def Name(cls): |
| 145 return 'octane' | 145 return 'octane' |
| 146 | 146 |
| 147 def CreateStorySet(self, options): | 147 def CreateStorySet(self, options): |
| 148 ps = story.StorySet( | 148 ps = story.StorySet( |
| 149 archive_data_file='../page_sets/data/octane.json', | 149 archive_data_file='../page_sets/data/octane.json', |
| 150 base_dir=os.path.dirname(os.path.abspath(__file__)), | 150 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 151 cloud_storage_bucket=story.PUBLIC_BUCKET, | 151 cloud_storage_bucket=story.PUBLIC_BUCKET) |
| 152 verify_names=True) | |
| 153 ps.AddStory(page_module.Page( | 152 ps.AddStory(page_module.Page( |
| 154 'http://chromium.github.io/octane/index.html?auto=1', | 153 'http://chromium.github.io/octane/index.html?auto=1', |
| 155 ps, ps.base_dir, make_javascript_deterministic=False, | 154 ps, ps.base_dir, make_javascript_deterministic=False, |
| 156 name='http://chromium.github.io/octane/index.html?auto=1')) | 155 name='http://chromium.github.io/octane/index.html?auto=1')) |
| 157 return ps | 156 return ps |
| OLD | NEW |