| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 | 144 |
| 145 def SetExtraBrowserOptions(self, options): | 145 def SetExtraBrowserOptions(self, options): |
| 146 super(V8TodoMVCIgnition, self).SetExtraBrowserOptions(options) | 146 super(V8TodoMVCIgnition, self).SetExtraBrowserOptions(options) |
| 147 v8_helper.EnableIgnition(options) | 147 v8_helper.EnableIgnition(options) |
| 148 | 148 |
| 149 @classmethod | 149 @classmethod |
| 150 def Name(cls): | 150 def Name(cls): |
| 151 return 'v8.todomvc-ignition' | 151 return 'v8.todomvc-ignition' |
| 152 | 152 |
| 153 | 153 |
| 154 class V8TodoMVCTurbo(V8TodoMVC): |
| 155 """Measures V8 Execution metrics on the TodoMVC examples |
| 156 using Ignition+TurboFan.""" |
| 157 |
| 158 page_set = page_sets.TodoMVCPageSet |
| 159 |
| 160 def SetExtraBrowserOptions(self, options): |
| 161 super(V8TodoMVCTurbo, self).SetExtraBrowserOptions(options) |
| 162 v8_helper.EnableTurbo(options) |
| 163 |
| 164 @classmethod |
| 165 def Name(cls): |
| 166 return 'v8.todomvc-turbo' |
| 167 |
| 168 |
| 169 |
| 154 class V8InfiniteScroll(_InfiniteScrollBenchmark): | 170 class V8InfiniteScroll(_InfiniteScrollBenchmark): |
| 155 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 171 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
| 156 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 172 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 157 | 173 |
| 158 page_set = page_sets.InfiniteScrollPageSet | 174 page_set = page_sets.InfiniteScrollPageSet |
| 159 | 175 |
| 160 @classmethod | 176 @classmethod |
| 161 def Name(cls): | 177 def Name(cls): |
| 162 return 'v8.infinite_scroll_tbmv2' | 178 return 'v8.infinite_scroll_tbmv2' |
| 163 | 179 |
| 164 | 180 |
| 165 class V8InfiniteScrollIgnition(V8InfiniteScroll): | 181 class V8InfiniteScrollIgnition(V8InfiniteScroll): |
| 166 """Measures V8 GC metrics using Ignition.""" | 182 """Measures V8 GC metrics using Ignition.""" |
| 167 | 183 |
| 168 def SetExtraBrowserOptions(self, options): | 184 def SetExtraBrowserOptions(self, options): |
| 169 super(V8InfiniteScrollIgnition, self).SetExtraBrowserOptions(options) | 185 super(V8InfiniteScrollIgnition, self).SetExtraBrowserOptions(options) |
| 170 v8_helper.EnableIgnition(options) | 186 v8_helper.EnableIgnition(options) |
| 171 | 187 |
| 172 @classmethod | 188 @classmethod |
| 173 def Name(cls): | 189 def Name(cls): |
| 174 return 'v8.infinite_scroll-ignition_tbmv2' | 190 return 'v8.infinite_scroll-ignition_tbmv2' |
| 175 | 191 |
| 176 | 192 |
| 193 class V8InfiniteScrollTurbo(V8InfiniteScroll): |
| 194 """Measures V8 GC metrics using Ignition+TurboFan.""" |
| 195 |
| 196 def SetExtraBrowserOptions(self, options): |
| 197 super(V8InfiniteScrollTurbo, self).SetExtraBrowserOptions(options) |
| 198 v8_helper.EnableTurbo(options) |
| 199 |
| 200 @classmethod |
| 201 def Name(cls): |
| 202 return 'v8.infinite_scroll-turbo_tbmv2' |
| 203 |
| 204 |
| 177 @benchmark.Enabled('android') | 205 @benchmark.Enabled('android') |
| 178 class V8MobileInfiniteScroll(_InfiniteScrollBenchmark): | 206 class V8MobileInfiniteScroll(_InfiniteScrollBenchmark): |
| 179 """Measures V8 GC metrics and memory usage while scrolling the top mobile | 207 """Measures V8 GC metrics and memory usage while scrolling the top mobile |
| 180 web pages. | 208 web pages. |
| 181 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 209 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 182 | 210 |
| 183 page_set = page_sets.MobileInfiniteScrollPageSet | 211 page_set = page_sets.MobileInfiniteScrollPageSet |
| 184 | 212 |
| 185 @classmethod | 213 @classmethod |
| 186 def Name(cls): | 214 def Name(cls): |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 Designed to represent a mix between top websites and a set of pages that | 309 Designed to represent a mix between top websites and a set of pages that |
| 282 have unique V8 characteristics. | 310 have unique V8 characteristics. |
| 283 """ | 311 """ |
| 284 | 312 |
| 285 @classmethod | 313 @classmethod |
| 286 def Name(cls): | 314 def Name(cls): |
| 287 return 'v8.runtime_stats.top_25' | 315 return 'v8.runtime_stats.top_25' |
| 288 | 316 |
| 289 def CreateStorySet(self, options): | 317 def CreateStorySet(self, options): |
| 290 return page_sets.V8Top25StorySet() | 318 return page_sets.V8Top25StorySet() |
| OLD | NEW |