| 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 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 benchmark | 10 from telemetry import benchmark |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 # we need to wait until Chrome OS can implement support for more helpful | 47 # we need to wait until Chrome OS can implement support for more helpful |
| 48 # benchmarks. | 48 # benchmarks. |
| 49 @benchmark.Enabled('chromeos') | 49 @benchmark.Enabled('chromeos') |
| 50 class RobohornetPro(benchmark.Benchmark): | 50 class RobohornetPro(benchmark.Benchmark): |
| 51 """Milliseconds to complete the RoboHornetPro demo by Microsoft. | 51 """Milliseconds to complete the RoboHornetPro demo by Microsoft. |
| 52 | 52 |
| 53 http://ie.microsoft.com/testdrive/performance/robohornetpro/ | 53 http://ie.microsoft.com/testdrive/performance/robohornetpro/ |
| 54 """ | 54 """ |
| 55 test = _RobohornetProMeasurement | 55 test = _RobohornetProMeasurement |
| 56 | 56 |
| 57 @classmethod |
| 58 def Name(cls): |
| 59 return 'robohornet_pro' |
| 60 |
| 57 def CreatePageSet(self, options): | 61 def CreatePageSet(self, options): |
| 58 ps = page_set.PageSet( | 62 ps = page_set.PageSet( |
| 59 archive_data_file='../page_sets/data/robohornet_pro.json', | 63 archive_data_file='../page_sets/data/robohornet_pro.json', |
| 60 file_path=os.path.abspath(__file__), | 64 file_path=os.path.abspath(__file__), |
| 61 bucket=page_set.PARTNER_BUCKET) | 65 bucket=page_set.PARTNER_BUCKET) |
| 62 ps.AddUserStory(page_module.Page( | 66 ps.AddUserStory(page_module.Page( |
| 63 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', | 67 'http://ie.microsoft.com/testdrive/performance/robohornetpro/', |
| 64 ps, ps.base_dir, | 68 ps, ps.base_dir, |
| 65 # Measurement require use of real Date.now() for measurement. | 69 # Measurement require use of real Date.now() for measurement. |
| 66 make_javascript_deterministic=False)) | 70 make_javascript_deterministic=False)) |
| 67 return ps | 71 return ps |
| OLD | NEW |