| 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 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 | 9 |
| 10 from telemetry import benchmark | 10 from telemetry import benchmark |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 results.current_page, '%s.%s'% (chart, trace), | 87 results.current_page, '%s.%s'% (chart, trace), |
| 88 'objects (bigger is better)', float(result_dict[key]), | 88 'objects (bigger is better)', float(result_dict[key]), |
| 89 important=False, description=DESCRIPTIONS.get(chart))) | 89 important=False, description=DESCRIPTIONS.get(chart))) |
| 90 results.AddValue(list_of_scalar_values.ListOfScalarValues( | 90 results.AddValue(list_of_scalar_values.ListOfScalarValues( |
| 91 results.current_page, 'Score', 'objects (bigger is better)', | 91 results.current_page, 'Score', 'objects (bigger is better)', |
| 92 [float(x) for x in result_dict.values()], | 92 [float(x) for x in result_dict.values()], |
| 93 description='Combined score for all parts of the spaceport benchmark.')) | 93 description='Combined score for all parts of the spaceport benchmark.')) |
| 94 | 94 |
| 95 | 95 |
| 96 # crbug.com/166703: This test frequently times out on Windows. | 96 # crbug.com/166703: This test frequently times out on Windows. |
| 97 @benchmark.Disabled('mac', 'win') | 97 # crbug.com/469224: Test is failing on linux as well. |
| 98 @benchmark.Disabled('mac', 'win', 'linux') |
| 98 class Spaceport(benchmark.Benchmark): | 99 class Spaceport(benchmark.Benchmark): |
| 99 """spaceport.io's PerfMarks benchmark. | 100 """spaceport.io's PerfMarks benchmark. |
| 100 | 101 |
| 101 http://spaceport.io/community/perfmarks | 102 http://spaceport.io/community/perfmarks |
| 102 | 103 |
| 103 This test performs 3 animations (rotate, translate, scale) using a variety of | 104 This test performs 3 animations (rotate, translate, scale) using a variety of |
| 104 methods (css, webgl, canvas, etc) and reports the number of objects that can | 105 methods (css, webgl, canvas, etc) and reports the number of objects that can |
| 105 be simultaneously animated while still achieving 30FPS. | 106 be simultaneously animated while still achieving 30FPS. |
| 106 """ | 107 """ |
| 107 test = _SpaceportMeasurement | 108 test = _SpaceportMeasurement |
| 108 | 109 |
| 109 @classmethod | 110 @classmethod |
| 110 def Name(cls): | 111 def Name(cls): |
| 111 return 'spaceport' | 112 return 'spaceport' |
| 112 | 113 |
| 113 def CreatePageSet(self, options): | 114 def CreatePageSet(self, options): |
| 114 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 115 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 115 'data', 'third_party', 'spaceport') | 116 'data', 'third_party', 'spaceport') |
| 116 ps = page_set.PageSet(file_path=spaceport_dir) | 117 ps = page_set.PageSet(file_path=spaceport_dir) |
| 117 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir)) | 118 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir)) |
| 118 return ps | 119 return ps |
| OLD | NEW |