OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry import test | 4 from telemetry import test |
5 | 5 |
| 6 from benchmarks import silk_flags |
6 from measurements import thread_times | 7 from measurements import thread_times |
7 | 8 |
| 9 |
8 class ThreadTimesKeySilkCases(test.Test): | 10 class ThreadTimesKeySilkCases(test.Test): |
9 """Measures timeline metrics while performing smoothness action on key silk | 11 """Measures timeline metrics while performing smoothness action on key silk |
10 cases.""" | 12 cases.""" |
11 test = thread_times.ThreadTimes | 13 test = thread_times.ThreadTimes |
12 page_set = 'page_sets/key_silk_cases.json' | 14 page_set = 'page_sets/key_silk_cases.json' |
13 options = {"report_silk_results": True} | 15 options = {"report_silk_results": True} |
14 | 16 |
| 17 |
| 18 class ThreadTimesFastPathKeySilkCases(test.Test): |
| 19 """Measures timeline metrics while performing smoothness action on key silk |
| 20 cases using bleeding edge rendering fast paths.""" |
| 21 tag = 'fast_path' |
| 22 test = thread_times.ThreadTimes |
| 23 page_set = 'page_sets/key_silk_cases.json' |
| 24 options = {"report_silk_results": True} |
| 25 def CustomizeBrowserOptions(self, options): |
| 26 silk_flags.CustomizeBrowserOptionsForFastPath(options) |
| 27 |
| 28 |
15 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 29 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
16 """Same as thread_times.key_silk_cases but with the old name.""" | 30 """Same as thread_times.key_silk_cases but with the old name.""" |
17 @classmethod | 31 @classmethod |
18 def GetName(cls): | 32 def GetName(cls): |
19 return "silk.key_silk_cases" | 33 return "silk.key_silk_cases" |
20 | 34 |
21 class ThreadTimesFastPathMobileSites(test.Test): | 35 class ThreadTimesFastPathMobileSites(test.Test): |
22 """Measures timeline metrics while performing smoothness action on | 36 """Measures timeline metrics while performing smoothness action on |
23 key mobile sites labeled with fast-path tag. | 37 key mobile sites labeled with fast-path tag. |
24 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" | 38 http://www.chromium.org/developers/design-documents/rendering-benchmarks""" |
25 test = thread_times.ThreadTimes | 39 test = thread_times.ThreadTimes |
26 page_set = 'page_sets/key_mobile_sites.json' | 40 page_set = 'page_sets/key_mobile_sites.json' |
27 options = {'page_label_filter' : 'fastpath'} | 41 options = {'page_label_filter' : 'fastpath'} |
28 | 42 |
29 class LegacyFastPathBenchmark(ThreadTimesFastPathMobileSites): | 43 class LegacyFastPathBenchmark(ThreadTimesFastPathMobileSites): |
30 """Same as thread_times.fast_path_mobile_sites but with the old name.""" | 44 """Same as thread_times.fast_path_mobile_sites but with the old name.""" |
31 @classmethod | 45 @classmethod |
32 def GetName(cls): | 46 def GetName(cls): |
33 return "fast_path.key_mobile_sites" | 47 return "fast_path.key_mobile_sites" |
OLD | NEW |