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 telemetry
import benchmark
7 from measurements
import blink_style
10 @benchmark.Disabled('reference', 'win8')
11 class BlinkStyleTop25(benchmark
.Benchmark
):
12 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc,
13 etc.) on the top 25 pages.
15 test
= blink_style
.BlinkStyle
16 page_set
= page_sets
.Top25PageSet
20 return 'blink_style.top_25'
23 @benchmark.Disabled('reference')
24 @benchmark.Enabled('android')
25 class BlinkStyleKeyMobileSites(benchmark
.Benchmark
):
26 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc,
27 etc.) on key mobile sites.
29 test
= blink_style
.BlinkStyle
30 page_set
= page_sets
.KeyMobileSitesPageSet
34 return 'blink_style.key_mobile_sites'
37 @benchmark.Disabled('reference')
38 @benchmark.Enabled('android')
39 class BlinkStylePolymer(benchmark
.Benchmark
):
40 """Measures performance of Blink's style engine (CSS Parsing, Style Recalc,
41 etc.) for Polymer cases.
43 test
= blink_style
.BlinkStyle
44 page_set
= page_sets
.PolymerPageSet
48 return 'blink_style.polymer'