| 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 | 4 |
| 5 from benchmarks import silk_flags | 5 from benchmarks import silk_flags |
| 6 from measurements import thread_times | 6 from measurements import thread_times |
| 7 import page_sets | 7 import page_sets |
| 8 from telemetry import benchmark | 8 from telemetry import benchmark |
| 9 | 9 |
| 10 | 10 |
| 11 @benchmark.Enabled('android') | 11 @benchmark.Enabled('android') |
| 12 class ThreadTimesKeySilkCases(benchmark.Benchmark): | 12 class ThreadTimesKeySilkCases(benchmark.Benchmark): |
| 13 """Measures timeline metrics while performing smoothness action on key silk | 13 """Measures timeline metrics while performing smoothness action on key silk |
| 14 cases.""" | 14 cases.""" |
| 15 test = thread_times.ThreadTimes | 15 test = thread_times.ThreadTimes |
| 16 page_set = page_sets.KeySilkCasesPageSet | 16 page_set = page_sets.KeySilkCasesPageSet |
| 17 | 17 |
| 18 | 18 |
| 19 @benchmark.Enabled('android') | |
| 20 class ThreadTimesFastPathKeySilkCases(benchmark.Benchmark): | |
| 21 """Measures timeline metrics while performing smoothness action on key silk | |
| 22 cases using bleeding edge rendering fast paths.""" | |
| 23 tag = 'fast_path' | |
| 24 test = thread_times.ThreadTimes | |
| 25 page_set = page_sets.KeySilkCasesPageSet | |
| 26 def CustomizeBrowserOptions(self, options): | |
| 27 silk_flags.CustomizeBrowserOptionsForFastPath(options) | |
| 28 | |
| 29 | |
| 30 @benchmark.Disabled | 19 @benchmark.Disabled |
| 31 class LegacySilkBenchmark(ThreadTimesKeySilkCases): | 20 class LegacySilkBenchmark(ThreadTimesKeySilkCases): |
| 32 """Same as thread_times.key_silk_cases but with the old name.""" | 21 """Same as thread_times.key_silk_cases but with the old name.""" |
| 33 @classmethod | 22 @classmethod |
| 34 def GetName(cls): | 23 def GetName(cls): |
| 35 return "silk.key_silk_cases" | 24 return "silk.key_silk_cases" |
| 36 | 25 |
| 37 | 26 |
| 38 @benchmark.Enabled('android') | 27 @benchmark.Enabled('android') |
| 39 class ThreadTimesFastPathMobileSites(benchmark.Benchmark): | 28 class ThreadTimesFastPathMobileSites(benchmark.Benchmark): |
| (...skipping 22 matching lines...) Expand all Loading... |
| 62 page_set = page_sets.ToughCompositorCasesPageSet | 51 page_set = page_sets.ToughCompositorCasesPageSet |
| 63 def CustomizeBrowserOptions(self, options): | 52 def CustomizeBrowserOptions(self, options): |
| 64 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) | 53 silk_flags.CustomizeBrowserOptionsForSoftwareRasterization(options) |
| 65 | 54 |
| 66 @benchmark.Enabled('android') | 55 @benchmark.Enabled('android') |
| 67 class ThreadTimesPolymer(benchmark.Benchmark): | 56 class ThreadTimesPolymer(benchmark.Benchmark): |
| 68 """Measures timeline metrics while performing smoothness action on | 57 """Measures timeline metrics while performing smoothness action on |
| 69 Polymer cases.""" | 58 Polymer cases.""" |
| 70 test = thread_times.ThreadTimes | 59 test = thread_times.ThreadTimes |
| 71 page_set = page_sets.PolymerPageSet | 60 page_set = page_sets.PolymerPageSet |
| OLD | NEW |