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 18 matching lines...) Expand all Loading... |
29 'document.getElementById("results").innerHTML.indexOf("Total") != -1', | 29 'document.getElementById("results").innerHTML.indexOf("Total") != -1', |
30 600) | 30 600) |
31 | 31 |
32 self._power_metric.Stop(page, tab) | 32 self._power_metric.Stop(page, tab) |
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 @test.Disabled('android') # crbug.com/357338 |
39 class RobohornetPro(test.Test): | 40 class RobohornetPro(test.Test): |
40 test = _RobohornetProMeasurement | 41 test = _RobohornetProMeasurement |
41 | 42 |
42 def CreatePageSet(self, options): | 43 def CreatePageSet(self, options): |
43 return page_set.PageSet.FromDict({ | 44 return page_set.PageSet.FromDict({ |
44 'archive_data_file': '../page_sets/data/robohornet_pro.json', | 45 'archive_data_file': '../page_sets/data/robohornet_pro.json', |
45 # Measurement require use of real Date.now() for measurement. | 46 # Measurement require use of real Date.now() for measurement. |
46 'make_javascript_deterministic': False, | 47 'make_javascript_deterministic': False, |
47 'pages': [ | 48 'pages': [ |
48 { 'url': | 49 { 'url': |
49 'http://ie.microsoft.com/testdrive/performance/robohornetpro/' } | 50 'http://ie.microsoft.com/testdrive/performance/robohornetpro/' } |
50 ] | 51 ] |
51 }, os.path.abspath(__file__)) | 52 }, os.path.abspath(__file__)) |
OLD | NEW |