| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 core import perf_benchmark | 5 from core import perf_benchmark |
| 6 | 6 |
| 7 from measurements import blink_style | 7 from measurements import blink_style |
| 8 import page_sets | 8 import page_sets |
| 9 from telemetry import benchmark | 9 from telemetry import benchmark |
| 10 | 10 |
| 11 | 11 |
| 12 @benchmark.Disabled('win8') | 12 @benchmark.Disabled('win8') |
| 13 class BlinkStyleTop25(perf_benchmark.PerfBenchmark): | 13 class BlinkStyleTop25(perf_benchmark.PerfBenchmark): |
| 14 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 14 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 15 etc.) on the top 25 pages. | 15 etc.) on the top 25 pages. |
| 16 """ | 16 """ |
| 17 test = blink_style.BlinkStyle | 17 test = blink_style.BlinkStyle |
| 18 page_set = page_sets.Top25PageSet | 18 page_set = page_sets.Top25PageSet |
| 19 | 19 |
| 20 @classmethod | 20 @classmethod |
| 21 def Name(cls): | 21 def Name(cls): |
| 22 return 'blink_style.top_25' | 22 return 'blink_style.top_25' |
| 23 | 23 |
| 24 | 24 |
| 25 @benchmark.Disabled('all') # crbug.com/702194 | 25 @benchmark.Enabled('android') |
| 26 #@benchmark.Enabled('android') | |
| 27 class BlinkStyleKeyMobileSites(perf_benchmark.PerfBenchmark): | 26 class BlinkStyleKeyMobileSites(perf_benchmark.PerfBenchmark): |
| 28 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 27 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 29 etc.) on key mobile sites. | 28 etc.) on key mobile sites. |
| 30 """ | 29 """ |
| 31 test = blink_style.BlinkStyle | 30 test = blink_style.BlinkStyle |
| 32 page_set = page_sets.KeyMobileSitesPageSet | 31 page_set = page_sets.KeyMobileSitesPageSet |
| 33 | 32 |
| 34 @classmethod | 33 @classmethod |
| 35 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 | 34 def ShouldDisable(cls, possible_browser): # http://crbug.com/597656 |
| 36 return (possible_browser.browser_type == 'reference' and | 35 return (possible_browser.browser_type == 'reference' and |
| 37 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') | 36 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X') |
| 38 | 37 |
| 39 @classmethod | 38 @classmethod |
| 40 def Name(cls): | 39 def Name(cls): |
| 41 return 'blink_style.key_mobile_sites' | 40 return 'blink_style.key_mobile_sites' |
| 42 | 41 |
| 43 | 42 |
| 44 @benchmark.Enabled('android') | 43 @benchmark.Enabled('android') |
| 45 class BlinkStylePolymer(perf_benchmark.PerfBenchmark): | 44 class BlinkStylePolymer(perf_benchmark.PerfBenchmark): |
| 46 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 45 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 47 etc.) for Polymer cases. | 46 etc.) for Polymer cases. |
| 48 """ | 47 """ |
| 49 test = blink_style.BlinkStyle | 48 test = blink_style.BlinkStyle |
| 50 page_set = page_sets.PolymerPageSet | 49 page_set = page_sets.PolymerPageSet |
| 51 | 50 |
| 52 @classmethod | 51 @classmethod |
| 53 def Name(cls): | 52 def Name(cls): |
| 54 return 'blink_style.polymer' | 53 return 'blink_style.polymer' |
| OLD | NEW |