| 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 spaceport.io's PerfMarks benchmark.""" | 5 """Runs spaceport.io's PerfMarks benchmark.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 import sys | 9 import sys |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]), | 50 results.Add(trace, 'objects (bigger is better)', float(result_dict[key]), |
| 51 chart_name=chart, data_type='unimportant') | 51 chart_name=chart, data_type='unimportant') |
| 52 results.Add('Score', 'objects (bigger is better)', | 52 results.Add('Score', 'objects (bigger is better)', |
| 53 [float(x) for x in result_dict.values()]) | 53 [float(x) for x in result_dict.values()]) |
| 54 | 54 |
| 55 | 55 |
| 56 class Spaceport(test.Test): | 56 class Spaceport(test.Test): |
| 57 """spaceport.io's PerfMarks benchmark.""" | 57 """spaceport.io's PerfMarks benchmark.""" |
| 58 test = _SpaceportMeasurement | 58 test = _SpaceportMeasurement |
| 59 | 59 |
| 60 enabled = sys.platform != 'darwin' | 60 # crbug.com/166703: This test frequently times out on Windows. |
| 61 enabled = sys.platform != 'darwin' and not sys.platform.startswith('win') |
| 61 | 62 |
| 62 def CreatePageSet(self, options): | 63 def CreatePageSet(self, options): |
| 63 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 64 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 64 'data', 'third_party', 'spaceport') | 65 'data', 'third_party', 'spaceport') |
| 65 return page_set.PageSet.FromDict( | 66 return page_set.PageSet.FromDict( |
| 66 {'pages': [{'url': 'file://index.html'}]}, | 67 {'pages': [{'url': 'file://index.html'}]}, |
| 67 spaceport_dir) | 68 spaceport_dir) |
| OLD | NEW |