Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / tools / perf / benchmarks / v8.py
blob88c8e2b8cf7911ca4622a97bf0e35fb618823bca
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
12 # Disabled on Win due to crbug.com/416502.
13 @benchmark.Disabled('win')
14 class V8Top25(perf_benchmark.PerfBenchmark):
15 """Measures V8 GC metrics on the while scrolling down the top 25 web pages.
17 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
18 test = v8_gc_times.V8GCTimes
19 page_set = page_sets.V8Top25SmoothPageSet
21 @classmethod
22 def Name(cls):
23 return 'v8.top_25_smooth'
25 @benchmark.Enabled('android')
26 class V8KeyMobileSites(perf_benchmark.PerfBenchmark):
27 """Measures V8 GC metrics on the while scrolling down key mobile sites.
29 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
30 test = v8_gc_times.V8GCTimes
31 page_set = page_sets.KeyMobileSitesSmoothPageSet
33 @classmethod
34 def Name(cls):
35 return 'v8.key_mobile_sites_smooth'
37 class V8DetachedContextAgeInGC(perf_benchmark.PerfBenchmark):
38 """Measures the number of GCs needed to collect a detached context.
40 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
41 test = v8_detached_context_age_in_gc.V8DetachedContextAgeInGC
42 page_set = page_sets.PageReloadCasesPageSet
44 @classmethod
45 def Name(cls):
46 return 'v8.detached_context_age_in_gc'