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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 'benchmark collection.')) | 130 'benchmark collection.')) |
131 | 131 |
132 | 132 |
133 class Octane(benchmark.Benchmark): | 133 class Octane(benchmark.Benchmark): |
134 """Google's Octane JavaScript benchmark. | 134 """Google's Octane JavaScript benchmark. |
135 | 135 |
136 http://octane-benchmark.googlecode.com/svn/latest/index.html | 136 http://octane-benchmark.googlecode.com/svn/latest/index.html |
137 """ | 137 """ |
138 test = _OctaneMeasurement | 138 test = _OctaneMeasurement |
139 | 139 |
| 140 @classmethod |
| 141 def Name(cls): |
| 142 return 'octane' |
| 143 |
140 def CreatePageSet(self, options): | 144 def CreatePageSet(self, options): |
141 ps = page_set.PageSet( | 145 ps = page_set.PageSet( |
142 archive_data_file='../page_sets/data/octane.json', | 146 archive_data_file='../page_sets/data/octane.json', |
143 file_path=os.path.abspath(__file__), | 147 file_path=os.path.abspath(__file__), |
144 bucket=page_set.PUBLIC_BUCKET) | 148 bucket=page_set.PUBLIC_BUCKET) |
145 ps.AddUserStory(page_module.Page( | 149 ps.AddUserStory(page_module.Page( |
146 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1', | 150 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1', |
147 ps, ps.base_dir, make_javascript_deterministic=False)) | 151 ps, ps.base_dir, make_javascript_deterministic=False)) |
148 return ps | 152 return ps |
OLD | NEW |