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 @benchmark.Enabled('android')
12 class ThreadTimesKeySilkCases(benchmark
.Benchmark
):
13 """Measures timeline metrics while performing smoothness action on key silk
15 test
= thread_times
.ThreadTimes
16 page_set
= page_sets
.KeySilkCasesPageSet
17 options
= {"report_silk_results": True}
20 @benchmark.Enabled('android')
21 class ThreadTimesFastPathKeySilkCases(benchmark
.Benchmark
):
22 """Measures timeline metrics while performing smoothness action on key silk
23 cases using bleeding edge rendering fast paths."""
25 test
= thread_times
.ThreadTimes
26 page_set
= page_sets
.KeySilkCasesPageSet
27 options
= {"report_silk_results": True}
28 def CustomizeBrowserOptions(self
, options
):
29 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
33 class LegacySilkBenchmark(ThreadTimesKeySilkCases
):
34 """Same as thread_times.key_silk_cases but with the old name."""
37 return "silk.key_silk_cases"
40 @benchmark.Enabled('android')
41 class ThreadTimesFastPathMobileSites(benchmark
.Benchmark
):
42 """Measures timeline metrics while performing smoothness action on
43 key mobile sites labeled with fast-path tag.
44 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
45 test
= thread_times
.ThreadTimes
46 page_set
= page_sets
.KeyMobileSitesPageSet
47 options
= {'page_label_filter' : 'fastpath'}
50 @benchmark.Disabled
# crbug.com/400922
51 class ThreadTimesSimpleMobileSites(benchmark
.Benchmark
):
52 """Measures timeline metric using smoothness action on simple mobile sites
53 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
54 test
= thread_times
.ThreadTimes
55 page_set
= page_sets
.SimpleMobileSitesPageSet
58 class ThreadTimesCompositorCases(benchmark
.Benchmark
):
59 """Measures timeline metrics while performing smoothness action on
60 tough compositor cases, using software rasterization.
62 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
63 test
= thread_times
.ThreadTimes
64 page_set
= page_sets
.ToughCompositorCasesPageSet
65 def CustomizeBrowserOptions(self
, options
):
66 silk_flags
.CustomizeBrowserOptionsForSoftwareRasterization(options
)
68 @benchmark.Enabled('android')
69 class ThreadTimesPolymer(benchmark
.Benchmark
):
70 """Measures timeline metrics while performing smoothness action on
72 test
= thread_times
.ThreadTimes
73 page_set
= page_sets
.PolymerPageSet
74 options
= { 'report_silk_results': True }