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
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
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
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
49 return 'v8.detached_context_age_in_gc'