| 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 json | 7 import json |
| 8 import logging | 8 import logging |
| 9 import os | 9 import os |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 important=False, description=DESCRIPTIONS.get(chart))) | 97 important=False, description=DESCRIPTIONS.get(chart))) |
| 98 results.AddValue(list_of_scalar_values.ListOfScalarValues( | 98 results.AddValue(list_of_scalar_values.ListOfScalarValues( |
| 99 results.current_page, 'Score', 'objects (bigger is better)', | 99 results.current_page, 'Score', 'objects (bigger is better)', |
| 100 [float(x) for x in result_dict.values()], | 100 [float(x) for x in result_dict.values()], |
| 101 description='Combined score for all parts of the spaceport benchmark.')) | 101 description='Combined score for all parts of the spaceport benchmark.')) |
| 102 | 102 |
| 103 | 103 |
| 104 # crbug.com/166703: This test frequently times out on Windows. | 104 # crbug.com/166703: This test frequently times out on Windows. |
| 105 @benchmark.Disabled('mac', 'win', | 105 @benchmark.Disabled('mac', 'win', |
| 106 'linux', 'android') # crbug.com/525112 | 106 'linux', 'android') # crbug.com/525112 |
| 107 @benchmark.Owner(emails=['junov@chromium.org']) |
| 107 class Spaceport(perf_benchmark.PerfBenchmark): | 108 class Spaceport(perf_benchmark.PerfBenchmark): |
| 108 """spaceport.io's PerfMarks benchmark. | 109 """spaceport.io's PerfMarks benchmark. |
| 109 | 110 |
| 110 http://spaceport.io/community/perfmarks | 111 http://spaceport.io/community/perfmarks |
| 111 | 112 |
| 112 This test performs 3 animations (rotate, translate, scale) using a variety of | 113 This test performs 3 animations (rotate, translate, scale) using a variety of |
| 113 methods (css, webgl, canvas, etc) and reports the number of objects that can | 114 methods (css, webgl, canvas, etc) and reports the number of objects that can |
| 114 be simultaneously animated while still achieving 30FPS. | 115 be simultaneously animated while still achieving 30FPS. |
| 115 """ | 116 """ |
| 116 test = _SpaceportMeasurement | 117 test = _SpaceportMeasurement |
| 117 | 118 |
| 118 @classmethod | 119 @classmethod |
| 119 def Name(cls): | 120 def Name(cls): |
| 120 return 'spaceport' | 121 return 'spaceport' |
| 121 | 122 |
| 122 def CreateStorySet(self, options): | 123 def CreateStorySet(self, options): |
| 123 spaceport_dir = os.path.join(path_util.GetChromiumSrcDir(), 'chrome', | 124 spaceport_dir = os.path.join(path_util.GetChromiumSrcDir(), 'chrome', |
| 124 'test', 'data', 'third_party', 'spaceport') | 125 'test', 'data', 'third_party', 'spaceport') |
| 125 ps = story.StorySet(base_dir=spaceport_dir) | 126 ps = story.StorySet(base_dir=spaceport_dir) |
| 126 ps.AddStory(page_module.Page('file://index.html', ps, ps.base_dir)) | 127 ps.AddStory(page_module.Page('file://index.html', ps, ps.base_dir)) |
| 127 return ps | 128 return ps |
| OLD | NEW |