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