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 Microsoft's RoboHornet Pro benchmark.""" | 5 """Runs Microsoft's RoboHornet Pro benchmark.""" |
6 | 6 |
7 import os | 7 import os |
8 | 8 |
9 from metrics import power | 9 from metrics import power |
10 from telemetry import test | 10 from telemetry import test |
(...skipping 22 matching lines...) Expand all Loading... |
33 self._power_metric.AddResults(tab, results) | 33 self._power_metric.AddResults(tab, results) |
34 | 34 |
35 result = int(tab.EvaluateJavaScript('stopTime - startTime')) | 35 result = int(tab.EvaluateJavaScript('stopTime - startTime')) |
36 results.Add('Total', 'ms', result) | 36 results.Add('Total', 'ms', result) |
37 | 37 |
38 | 38 |
39 class RobohornetPro(test.Test): | 39 class RobohornetPro(test.Test): |
40 test = _RobohornetProMeasurement | 40 test = _RobohornetProMeasurement |
41 | 41 |
42 def CreatePageSet(self, options): | 42 def CreatePageSet(self, options): |
43 return page_set.PageSet.FromDict({ | 43 ps = page_set.PageSet( |
44 'archive_data_file': '../page_sets/data/robohornet_pro.json', | 44 archive_data_file='../page_sets/data/robohornet_pro.json', |
45 # Measurement require use of real Date.now() for measurement. | 45 # Measurement require use of real Date.now() for measurement. |
46 'make_javascript_deterministic': False, | 46 make_javascript_deterministic=False, |
47 'pages': [ | 47 file_path=os.path.abspath(__file__)) |
48 { 'url': | 48 ps.AddPageWithDefaultRunNavigate( |
49 'http://ie.microsoft.com/testdrive/performance/robohornetpro/' } | 49 'http://ie.microsoft.com/testdrive/performance/robohornetpro/') |
50 ] | 50 return ps |
51 }, os.path.abspath(__file__)) | |
OLD | NEW |