| 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 telemetry import benchmark | 5 from telemetry import benchmark |
| 6 | 6 |
| 7 from measurements import blink_style | 7 from measurements import blink_style |
| 8 import page_sets | 8 import page_sets |
| 9 | 9 |
| 10 @benchmark.Disabled('reference') |
| 10 class BlinkStyleTop25(benchmark.Benchmark): | 11 class BlinkStyleTop25(benchmark.Benchmark): |
| 11 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 12 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 12 etc.) on the top 25 pages. | 13 etc.) on the top 25 pages. |
| 13 """ | 14 """ |
| 14 test = blink_style.BlinkStyle | 15 test = blink_style.BlinkStyle |
| 15 page_set = page_sets.Top25PageSet | 16 page_set = page_sets.Top25PageSet |
| 16 | 17 |
| 17 @classmethod | 18 @classmethod |
| 18 def Name(cls): | 19 def Name(cls): |
| 19 return 'blink_style.top_25' | 20 return 'blink_style.top_25' |
| 20 | 21 |
| 21 | 22 |
| 23 @benchmark.Disabled('reference') |
| 22 @benchmark.Enabled('android') | 24 @benchmark.Enabled('android') |
| 23 class BlinkStyleKeyMobileSites(benchmark.Benchmark): | 25 class BlinkStyleKeyMobileSites(benchmark.Benchmark): |
| 24 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 26 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 25 etc.) on key mobile sites. | 27 etc.) on key mobile sites. |
| 26 """ | 28 """ |
| 27 test = blink_style.BlinkStyle | 29 test = blink_style.BlinkStyle |
| 28 page_set = page_sets.KeyMobileSitesPageSet | 30 page_set = page_sets.KeyMobileSitesPageSet |
| 29 | 31 |
| 30 @classmethod | 32 @classmethod |
| 31 def Name(cls): | 33 def Name(cls): |
| 32 return 'blink_style.key_mobile_sites' | 34 return 'blink_style.key_mobile_sites' |
| 33 | 35 |
| 34 | 36 |
| 37 @benchmark.Disabled('reference') |
| 35 @benchmark.Enabled('android') | 38 @benchmark.Enabled('android') |
| 36 class BlinkStylePolymer(benchmark.Benchmark): | 39 class BlinkStylePolymer(benchmark.Benchmark): |
| 37 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, | 40 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc, |
| 38 etc.) for Polymer cases. | 41 etc.) for Polymer cases. |
| 39 """ | 42 """ |
| 40 test = blink_style.BlinkStyle | 43 test = blink_style.BlinkStyle |
| 41 page_set = page_sets.PolymerPageSet | 44 page_set = page_sets.PolymerPageSet |
| 42 | 45 |
| 43 @classmethod | 46 @classmethod |
| 44 def Name(cls): | 47 def Name(cls): |
| 45 return 'blink_style.polymer' | 48 return 'blink_style.polymer' |
| OLD | NEW |