| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 """Measures the number of GCs needed to collect a detached context. | 69 """Measures the number of GCs needed to collect a detached context. |
| 70 | 70 |
| 71 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 71 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
| 72 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC | 72 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC |
| 73 page_set = page_sets.PageReloadCasesPageSet | 73 page_set = page_sets.PageReloadCasesPageSet |
| 74 | 74 |
| 75 @classmethod | 75 @classmethod |
| 76 def Name(cls): | 76 def Name(cls): |
| 77 return 'v8.detached_context_age_in_gc' | 77 return 'v8.detached_context_age_in_gc' |
| 78 | 78 |
| 79 @classmethod |
| 80 def ShouldDisable(cls, possible_browser): |
| 81 # http://crbug.com/685350 |
| 82 if possible_browser.platform.GetDeviceTypeName() == 'Nexus 9': |
| 83 return True |
| 84 return False |
| 85 |
| 79 | 86 |
| 80 class _InfiniteScrollBenchmark(perf_benchmark.PerfBenchmark): | 87 class _InfiniteScrollBenchmark(perf_benchmark.PerfBenchmark): |
| 81 """ Base class for infinite scroll benchmarks. | 88 """ Base class for infinite scroll benchmarks. |
| 82 """ | 89 """ |
| 83 | 90 |
| 84 def SetExtraBrowserOptions(self, options): | 91 def SetExtraBrowserOptions(self, options): |
| 85 options.AppendExtraBrowserArgs([ | 92 options.AppendExtraBrowserArgs([ |
| 86 # Disable push notifications for Facebook. | 93 # Disable push notifications for Facebook. |
| 87 '--disable-notifications', | 94 '--disable-notifications', |
| 88 ]) | 95 ]) |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 Designed to represent a mix between top websites and a set of pages that | 330 Designed to represent a mix between top websites and a set of pages that |
| 324 have unique V8 characteristics. | 331 have unique V8 characteristics. |
| 325 """ | 332 """ |
| 326 | 333 |
| 327 @classmethod | 334 @classmethod |
| 328 def Name(cls): | 335 def Name(cls): |
| 329 return 'v8.runtime_stats.top_25' | 336 return 'v8.runtime_stats.top_25' |
| 330 | 337 |
| 331 def CreateStorySet(self, options): | 338 def CreateStorySet(self, options): |
| 332 return page_sets.V8Top25StorySet() | 339 return page_sets.V8Top25StorySet() |
| OLD | NEW |