[Android WebViewShell] Add inclusion test for webview exposed stable interfaces.
[chromium-blink-merge.git] / tools / perf / benchmarks / v8.py
blob9e78bc41401df930b4c3fd0c4459e6273568011e
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
3 # found in the LICENSE file.
5 from core import perf_benchmark
7 from measurements import v8_detached_context_age_in_gc
8 from measurements import v8_gc_times
9 import page_sets
10 from telemetry import benchmark
13 # Disabled on Win due to crbug.com/416502.
14 # Disabled on reference due to crbug.com/507836.
15 @benchmark.Disabled('win', 'reference')
16 class V8Top25(perf_benchmark.PerfBenchmark):
17 """Measures V8 GC metrics on the while scrolling down the top 25 web pages.
19 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
20 test = v8_gc_times.V8GCTimes
21 page_set = page_sets.Top25SmoothPageSet
23 @classmethod
24 def Name(cls):
25 return 'v8.top_25_smooth'
27 @benchmark.Enabled('android')
28 class V8KeyMobileSites(perf_benchmark.PerfBenchmark):
29 """Measures V8 GC metrics on the while scrolling down key mobile sites.
31 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
32 test = v8_gc_times.V8GCTimes
33 page_set = page_sets.KeyMobileSitesSmoothPageSet
35 @classmethod
36 def Name(cls):
37 return 'v8.key_mobile_sites_smooth'
39 @benchmark.Disabled('mac', 'win') # crbug.com/514198
40 class V8DetachedContextAgeInGC(perf_benchmark.PerfBenchmark):
41 """Measures the number of GCs needed to collect a detached context.
43 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
44 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC
45 page_set = page_sets.PageReloadCasesPageSet
47 @classmethod
48 def Name(cls):
49 return 'v8.detached_context_age_in_gc'