| 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 import shlex | 5 import shlex |
| 6 | 6 |
| 7 from core import path_util | 7 from core import path_util |
| 8 from core import perf_benchmark | 8 from core import perf_benchmark |
| 9 from page_sets import google_pages | 9 from page_sets import google_pages |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 @benchmark.Disabled('win') # crbug.com/416502 | 24 @benchmark.Disabled('win') # crbug.com/416502 |
| 25 class V8Top25(perf_benchmark.PerfBenchmark): | 25 class V8Top25(perf_benchmark.PerfBenchmark): |
| 26 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. | 26 """Measures V8 GC metrics on the while scrolling down the top 25 web pages. |
| 27 | 27 |
| 28 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 28 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 29 test = v8_gc_times.V8GCTimes | 29 test = v8_gc_times.V8GCTimes |
| 30 page_set = page_sets.V8Top25SmoothPageSet | 30 page_set = page_sets.V8Top25SmoothPageSet |
| 31 | 31 |
| 32 @classmethod | 32 @classmethod |
| 33 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 34 return (possible_browser.browser_type == 'reference' and |
| 35 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 36 |
| 37 @classmethod |
| 33 def Name(cls): | 38 def Name(cls): |
| 34 return 'v8.top_25_smooth' | 39 return 'v8.top_25_smooth' |
| 35 | 40 |
| 36 | 41 |
| 37 @benchmark.Enabled('android') | 42 @benchmark.Enabled('android') |
| 38 class V8KeyMobileSites(perf_benchmark.PerfBenchmark): | 43 class V8KeyMobileSites(perf_benchmark.PerfBenchmark): |
| 39 """Measures V8 GC metrics on the while scrolling down key mobile sites. | 44 """Measures V8 GC metrics on the while scrolling down key mobile sites. |
| 40 | 45 |
| 41 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 46 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 42 test = v8_gc_times.V8GCTimes | 47 test = v8_gc_times.V8GCTimes |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 def Name(cls): | 230 def Name(cls): |
| 226 return 'v8.google' | 231 return 'v8.google' |
| 227 | 232 |
| 228 @classmethod | 233 @classmethod |
| 229 def ShouldDisable(cls, possible_browser): | 234 def ShouldDisable(cls, possible_browser): |
| 230 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 | 235 return cls.IsSvelte(possible_browser) # http://crbug.com/596556 |
| 231 | 236 |
| 232 @classmethod | 237 @classmethod |
| 233 def ShouldTearDownStateAfterEachStoryRun(cls): | 238 def ShouldTearDownStateAfterEachStoryRun(cls): |
| 234 return True | 239 return True |
| OLD | NEW |