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.
5 from core
import perf_benchmark
7 from measurements
import blink_style
9 from telemetry
import benchmark
12 @benchmark.Disabled('reference', '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.
17 test
= blink_style
.BlinkStyle
18 page_set
= page_sets
.Top25PageSet
22 return 'blink_style.top_25'
25 @benchmark.Disabled('reference')
26 @benchmark.Enabled('android')
27 class BlinkStyleKeyMobileSites(perf_benchmark
.PerfBenchmark
):
28 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc,
29 etc.) on key mobile sites.
31 test
= blink_style
.BlinkStyle
32 page_set
= page_sets
.KeyMobileSitesPageSet
36 return 'blink_style.key_mobile_sites'
39 @benchmark.Disabled('reference')
40 @benchmark.Enabled('android')
41 class BlinkStylePolymer(perf_benchmark
.PerfBenchmark
):
42 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc,
43 etc.) for Polymer cases.
45 test
= blink_style
.BlinkStyle
46 page_set
= page_sets
.PolymerPageSet
50 return 'blink_style.polymer'