| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 @classmethod | 121 @classmethod |
| 122 def ValueCanBeAddedPredicate(cls, value, _): | 122 def ValueCanBeAddedPredicate(cls, value, _): |
| 123 return ('v8' in value.name) or ('eqt' in value.name) | 123 return ('v8' in value.name) or ('eqt' in value.name) |
| 124 | 124 |
| 125 @classmethod | 125 @classmethod |
| 126 def ShouldTearDownStateAfterEachStoryRun(cls): | 126 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 127 return True | 127 return True |
| 128 | 128 |
| 129 | 129 |
| 130 @benchmark.Owner(emails=['jochen@chromium.org']) | |
| 131 class V8TodoMVC(perf_benchmark.PerfBenchmark): | |
| 132 """Measures V8 Execution metrics on the TodoMVC examples.""" | |
| 133 page_set = page_sets.TodoMVCPageSet | |
| 134 | |
| 135 def CreateTimelineBasedMeasurementOptions(self): | |
| 136 return CreateV8TimelineBasedMeasurementOptions() | |
| 137 | |
| 138 @classmethod | |
| 139 def Name(cls): | |
| 140 return 'v8.todomvc' | |
| 141 | |
| 142 @classmethod | |
| 143 def ShouldDisable(cls, possible_browser): | |
| 144 # This benchmark is flaky on Samsung Galaxy S5s. | |
| 145 # http://crbug.com/644826 | |
| 146 return possible_browser.platform.GetDeviceTypeName() == 'SM-G900H' | |
| 147 | |
| 148 @classmethod | |
| 149 def ShouldTearDownStateAfterEachStoryRun(cls): | |
| 150 return True | |
| 151 | |
| 152 @benchmark.Disabled('all') | |
| 153 @benchmark.Owner(emails=['mvstaton@chromium.org']) | |
| 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 @benchmark.Owner(emails=['hablich@chromium.org']) | |
| 170 class V8TodoMVCClassic(V8TodoMVC): | |
| 171 """Measures V8 Execution metrics on the TodoMVC examples | |
| 172 using the Classic pipeline.""" | |
| 173 | |
| 174 page_set = page_sets.TodoMVCPageSet | |
| 175 | |
| 176 def SetExtraBrowserOptions(self, options): | |
| 177 super(V8TodoMVCClassic, self).SetExtraBrowserOptions(options) | |
| 178 v8_helper.EnableClassic(options) | |
| 179 | |
| 180 @classmethod | |
| 181 def Name(cls): | |
| 182 return 'v8.todomvc-classic' | |
| 183 | |
| 184 | |
| 185 @benchmark.Owner(emails=['ulan@chromium.org']) | 130 @benchmark.Owner(emails=['ulan@chromium.org']) |
| 186 class V8InfiniteScroll(_InfiniteScrollBenchmark): | 131 class V8InfiniteScroll(_InfiniteScrollBenchmark): |
| 187 """Measures V8 GC metrics and memory usage while scrolling the top web pages. | 132 """Measures V8 GC metrics and memory usage while scrolling the top web pages. |
| 188 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 133 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 189 | 134 |
| 190 page_set = page_sets.InfiniteScrollStorySet | 135 page_set = page_sets.InfiniteScrollStorySet |
| 191 | 136 |
| 192 @classmethod | 137 @classmethod |
| 193 def Name(cls): | 138 def Name(cls): |
| 194 return 'v8.infinite_scroll_tbmv2' | 139 return 'v8.infinite_scroll_tbmv2' |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 Designed to represent a mix between top websites and a set of pages that | 301 Designed to represent a mix between top websites and a set of pages that |
| 357 have unique V8 characteristics. | 302 have unique V8 characteristics. |
| 358 """ | 303 """ |
| 359 | 304 |
| 360 @classmethod | 305 @classmethod |
| 361 def Name(cls): | 306 def Name(cls): |
| 362 return 'v8.runtime_stats.top_25' | 307 return 'v8.runtime_stats.top_25' |
| 363 | 308 |
| 364 def CreateStorySet(self, options): | 309 def CreateStorySet(self, options): |
| 365 return page_sets.V8Top25StorySet() | 310 return page_sets.V8Top25StorySet() |
| OLD | NEW |