| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import os | 4 import os |
| 5 | 5 |
| 6 from core import path_util | 6 from core import path_util |
| 7 from core import perf_benchmark | 7 from core import perf_benchmark |
| 8 from page_sets import google_pages | 8 from page_sets import google_pages |
| 9 | 9 |
| 10 from benchmarks import v8_helper | 10 from benchmarks import v8_helper |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 def ShouldDisable(cls, possible_browser): | 138 def ShouldDisable(cls, possible_browser): |
| 139 # This benchmark is flaky on Samsung Galaxy S5s. | 139 # This benchmark is flaky on Samsung Galaxy S5s. |
| 140 # http://crbug.com/644826 | 140 # http://crbug.com/644826 |
| 141 return possible_browser.platform.GetDeviceTypeName() == 'SM-G900H' | 141 return possible_browser.platform.GetDeviceTypeName() == 'SM-G900H' |
| 142 | 142 |
| 143 @classmethod | 143 @classmethod |
| 144 def ShouldTearDownStateAfterEachStoryRun(cls): | 144 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 145 return True | 145 return True |
| 146 | 146 |
| 147 | 147 |
| 148 class V8TodoMVCIgnition(V8TodoMVC): | |
| 149 """Measures V8 Execution metrics on the TodoMVC examples using ignition.""" | |
| 150 page_set = page_sets.TodoMVCPageSet | |
| 151 | |
| 152 def SetExtraBrowserOptions(self, options): | |
| 153 super(V8TodoMVCIgnition, self).SetExtraBrowserOptions(options) | |
| 154 v8_helper.EnableIgnition(options) | |
| 155 | |
| 156 @classmethod | |
| 157 def Name(cls): | |
| 158 return 'v8.todomvc-ignition' | |
| 159 | |
| 160 | |
| 161 class V8TodoMVCTurbo(V8TodoMVC): | 148 class V8TodoMVCTurbo(V8TodoMVC): |
| 162 """Measures V8 Execution metrics on the TodoMVC examples | 149 """Measures V8 Execution metrics on the TodoMVC examples |
| 163 using Ignition+TurboFan.""" | 150 using Ignition+TurboFan.""" |
| 164 | 151 |
| 165 page_set = page_sets.TodoMVCPageSet | 152 page_set = page_sets.TodoMVCPageSet |
| 166 | 153 |
| 167 def SetExtraBrowserOptions(self, options): | 154 def SetExtraBrowserOptions(self, options): |
| 168 super(V8TodoMVCTurbo, self).SetExtraBrowserOptions(options) | 155 super(V8TodoMVCTurbo, self).SetExtraBrowserOptions(options) |
| 169 v8_helper.EnableTurbo(options) | 156 v8_helper.EnableTurbo(options) |
| 170 | 157 |
| 171 @classmethod | 158 @classmethod |
| 172 def Name(cls): | 159 def Name(cls): |
| 173 return 'v8.todomvc-turbo' | 160 return 'v8.todomvc-turbo' |
| 174 | 161 |
| 175 | 162 |
| 176 | 163 |
| 177 class V8InfiniteScroll(_InfiniteScrollBenchmark): | 164 class V8InfiniteScroll(_InfiniteScrollBenchmark): |
| 178 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 165 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
| 179 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 166 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 180 | 167 |
| 181 page_set = page_sets.InfiniteScrollPageSet | 168 page_set = page_sets.InfiniteScrollPageSet |
| 182 | 169 |
| 183 @classmethod | 170 @classmethod |
| 184 def Name(cls): | 171 def Name(cls): |
| 185 return 'v8.infinite_scroll_tbmv2' | 172 return 'v8.infinite_scroll_tbmv2' |
| 186 | 173 |
| 187 | 174 |
| 188 class V8InfiniteScrollIgnition(V8InfiniteScroll): | |
| 189 """Measures V8 GC metrics using Ignition.""" | |
| 190 | |
| 191 def SetExtraBrowserOptions(self, options): | |
| 192 super(V8InfiniteScrollIgnition, self).SetExtraBrowserOptions(options) | |
| 193 v8_helper.EnableIgnition(options) | |
| 194 | |
| 195 @classmethod | |
| 196 def Name(cls): | |
| 197 return 'v8.infinite_scroll-ignition_tbmv2' | |
| 198 | |
| 199 | |
| 200 class V8InfiniteScrollTurbo(V8InfiniteScroll): | 175 class V8InfiniteScrollTurbo(V8InfiniteScroll): |
| 201 """Measures V8 GC metrics using Ignition+TurboFan.""" | 176 """Measures V8 GC metrics using Ignition+TurboFan.""" |
| 202 | 177 |
| 203 def SetExtraBrowserOptions(self, options): | 178 def SetExtraBrowserOptions(self, options): |
| 204 super(V8InfiniteScrollTurbo, self).SetExtraBrowserOptions(options) | 179 super(V8InfiniteScrollTurbo, self).SetExtraBrowserOptions(options) |
| 205 v8_helper.EnableTurbo(options) | 180 v8_helper.EnableTurbo(options) |
| 206 | 181 |
| 207 @classmethod | 182 @classmethod |
| 208 def Name(cls): | 183 def Name(cls): |
| 209 return 'v8.infinite_scroll-turbo_tbmv2' | 184 return 'v8.infinite_scroll-turbo_tbmv2' |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 Designed to represent a mix between top websites and a set of pages that | 306 Designed to represent a mix between top websites and a set of pages that |
| 332 have unique V8 characteristics. | 307 have unique V8 characteristics. |
| 333 """ | 308 """ |
| 334 | 309 |
| 335 @classmethod | 310 @classmethod |
| 336 def Name(cls): | 311 def Name(cls): |
| 337 return 'v8.runtime_stats.top_25' | 312 return 'v8.runtime_stats.top_25' |
| 338 | 313 |
| 339 def CreateStorySet(self, options): | 314 def CreateStorySet(self, options): |
| 340 return page_sets.V8Top25StorySet() | 315 return page_sets.V8Top25StorySet() |
| OLD | NEW |