1 # Copyright 2013 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 benchmarks
import silk_flags
6 from measurements
import rasterize_and_record_micro
8 from telemetry
import benchmark
11 # RasterizeAndRecord disabled on mac because of crbug.com/350684.
12 # RasterizeAndRecord disabled on windows because of crbug.com/338057.
13 @benchmark.Disabled('mac', 'win')
14 class RasterizeAndRecordMicroTop25(benchmark
.Benchmark
):
15 """Measures rasterize and record performance on the top 25 web pages.
17 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
18 test
= rasterize_and_record_micro
.RasterizeAndRecordMicro
19 page_set
= page_sets
.Top25PageSet
22 @benchmark.Disabled('mac', 'win')
23 class RasterizeAndRecordMicroKeyMobileSites(benchmark
.Benchmark
):
24 """Measures rasterize and record performance on the key mobile sites.
26 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
27 test
= rasterize_and_record_micro
.RasterizeAndRecordMicro
28 page_set
= page_sets
.KeyMobileSitesPageSet
31 @benchmark.Disabled('mac', 'win')
32 class RasterizeAndRecordMicroKeySilkCases(benchmark
.Benchmark
):
33 """Measures rasterize and record performance on the silk sites.
35 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
36 test
= rasterize_and_record_micro
.RasterizeAndRecordMicro
37 page_set
= page_sets
.KeySilkCasesPageSet
40 @benchmark.Disabled('mac', 'win')
41 class RasterizeAndRecordMicroFastPathGpuRasterizationKeySilkCases(
43 """Measures rasterize and record performance on the silk sites.
45 Uses GPU rasterization together with bleeding edge rendering fast paths.
47 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
48 tag
= 'fast_path_gpu_rasterization'
49 test
= rasterize_and_record_micro
.RasterizeAndRecordMicro
50 page_set
= page_sets
.KeySilkCasesPageSet
51 def CustomizeBrowserOptions(self
, options
):
52 silk_flags
.CustomizeBrowserOptionsForFastPath(options
)
53 silk_flags
.CustomizeBrowserOptionsForGpuRasterization(options
)
56 @benchmark.Enabled('android')
57 class RasterizeAndRecordMicroPolymer(benchmark
.Benchmark
):
58 """Measures rasterize and record performance on the Polymer cases.
60 http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
61 test
= rasterize_and_record_micro
.RasterizeAndRecordMicro
62 page_set
= page_sets
.PolymerPageSet