| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 total = statistics.GeometricMean(all_scores) | 73 total = statistics.GeometricMean(all_scores) |
| 74 results.AddSummaryValue( | 74 results.AddSummaryValue( |
| 75 scalar.ScalarValue(None, 'Total.Score', 'score', total)) | 75 scalar.ScalarValue(None, 'Total.Score', 'score', total)) |
| 76 | 76 |
| 77 | 77 |
| 78 class Octane(test.Test): | 78 class Octane(test.Test): |
| 79 """Google's Octane JavaScript benchmark.""" | 79 """Google's Octane JavaScript benchmark.""" |
| 80 test = _OctaneMeasurement | 80 test = _OctaneMeasurement |
| 81 | 81 |
| 82 def CreatePageSet(self, options): | 82 def CreatePageSet(self, options): |
| 83 return page_set.PageSet.FromDict({ | 83 ps = page_set.PageSet( |
| 84 'archive_data_file': '../page_sets/data/octane.json', | 84 archive_data_file='../page_sets/data/octane.json', |
| 85 'make_javascript_deterministic': False, | 85 make_javascript_deterministic=False, |
| 86 'pages': [{ | 86 file_path=os.path.abspath(__file__)) |
| 87 'url': | 87 ps.AddPageWithDefaultRunNavigate( |
| 88 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1' | 88 'http://octane-benchmark.googlecode.com/svn/latest/index.html?auto=1') |
| 89 } | 89 return ps |
| 90 ] | |
| 91 }, os.path.abspath(__file__)) | |
| OLD | NEW |