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 benchmarks
import silk_flags
6 from measurements
import thread_times
8 from telemetry
import benchmark
11 class ThreadTimesKeySilkCases(benchmark
.Benchmark
):
12 """Measures timeline metrics while performing smoothness action on key silk
14 test
= thread_times
.ThreadTimes
15 page_set
= page_sets
.KeySilkCasesPageSet
16 options
= {"report_silk_results": True}
19 class ThreadTimesFastPathKeySilkCases(benchmark
.Benchmark
):
20 """Measures timeline metrics while performing smoothness action on key silk
21 cases using bleeding edge rendering fast paths."""
23 test
= thread_times
.ThreadTimes
24 page_set
= page_sets
.KeySilkCasesPageSet
25 options
= {"report_silk_results": True}
26 def CustomizeBrowserOptions(self
, options
):
27 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
31 class LegacySilkBenchmark(ThreadTimesKeySilkCases
):
32 """Same as thread_times.key_silk_cases but with the old name."""
35 return "silk.key_silk_cases"
38 class ThreadTimesFastPathMobileSites(benchmark
.Benchmark
):
39 """Measures timeline metrics while performing smoothness action on
40 key mobile sites labeled with fast-path tag.
41 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
42 test
= thread_times
.ThreadTimes
43 page_set
= page_sets
.KeyMobileSitesPageSet
44 options
= {'page_label_filter' : 'fastpath'}
47 @benchmark.Disabled
# crbug.com/400922
48 class ThreadTimesSimpleMobileSites(benchmark
.Benchmark
):
49 """Measures timeline metric using smoothness action on simple mobile sites
50 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
51 test
= thread_times
.ThreadTimes
52 page_set
= page_sets
.SimpleMobileSitesPageSet
55 class ThreadTimesCompositorCases(benchmark
.Benchmark
):
56 """Measures timeline metrics while performing smoothness action on
57 tough compositor cases.
58 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
59 test
= thread_times
.ThreadTimes
60 page_set
= page_sets
.ToughCompositorCasesPageSet
63 @benchmark.Enabled('android')
64 class ThreadTimesPolymer(benchmark
.Benchmark
):
65 """Measures timeline metrics while performing smoothness action on
67 test
= thread_times
.ThreadTimes
68 page_set
= page_sets
.PolymerPageSet
69 options
= { 'report_silk_results': True }