summaryrefslogtreecommitdiffstats
path: root/tools/perf/benchmarks/rasterize_and_record.py
blob: 173c8affb5f1464b16ee617e2bf86645a3e37a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from telemetry import test

from benchmarks import silk_flags
from measurements import rasterize_and_record


# RasterizeAndRecord disabled on linux because no raster times are reported and
# on mac because Chrome DCHECKS.
# TODO: Re-enable when unittests are happy on linux and mac: crbug.com/350684.

@test.Disabled('linux', 'mac')
class RasterizeAndRecordTop25(test.Test):
  """Measures rasterize and record performance on the top 25 web pages.

  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  test = rasterize_and_record.RasterizeAndRecord
  page_set = 'page_sets/top_25.json'


@test.Disabled('linux', 'mac')
class RasterizeAndRecordKeyMobileSites(test.Test):
  """Measures rasterize and record performance on the key mobile sites.

  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  test = rasterize_and_record.RasterizeAndRecord
  page_set = 'page_sets/key_mobile_sites.json'


@test.Disabled('linux', 'mac')
class RasterizeAndRecordSilk(test.Test):
  """Measures rasterize and record performance on the silk sites.

  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  test = rasterize_and_record.RasterizeAndRecord
  page_set = 'page_sets/key_silk_cases.json'


@test.Disabled('linux', 'mac')
class RasterizeAndRecordFastPathSilk(test.Test):
  """Measures rasterize and record performance on the silk sites.

  Uses bleeding edge rendering fast paths.

  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  tag = 'fast_path'
  test = rasterize_and_record.RasterizeAndRecord
  page_set = 'page_sets/key_silk_cases.json'
  def CustomizeBrowserOptions(self, options):
    silk_flags.CustomizeBrowserOptionsForFastPath(options)