summaryrefslogtreecommitdiffstats
path: root/tools/perf/benchmarks/thread_times.py
blob: 1ae79c63ffab21240597b640991fa5cb235125cb (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
54
55
56
57
58
59
60
# Copyright 2014 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 benchmark

from benchmarks import silk_flags
from measurements import thread_times
import page_sets


class ThreadTimesKeySilkCases(benchmark.Benchmark):
  """Measures timeline metrics while performing smoothness action on key silk
  cases."""
  test = thread_times.ThreadTimes
  page_set = page_sets.KeySilkCasesPageSet
  options = {"report_silk_results": True}


class ThreadTimesFastPathKeySilkCases(benchmark.Benchmark):
  """Measures timeline metrics while performing smoothness action on key silk
  cases using bleeding edge rendering fast paths."""
  tag = 'fast_path'
  test = thread_times.ThreadTimes
  page_set = page_sets.KeySilkCasesPageSet
  options = {"report_silk_results": True}
  def CustomizeBrowserOptions(self, options):
    silk_flags.CustomizeBrowserOptionsForFastPath(options)


class LegacySilkBenchmark(ThreadTimesKeySilkCases):
  """Same as thread_times.key_silk_cases but with the old name."""
  @classmethod
  def GetName(cls):
    return "silk.key_silk_cases"


class ThreadTimesFastPathMobileSites(benchmark.Benchmark):
  """Measures timeline metrics while performing smoothness action on
  key mobile sites labeled with fast-path tag.
  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  test = thread_times.ThreadTimes
  page_set = page_sets.KeyMobileSitesPageSet
  options = {'page_label_filter' : 'fastpath'}


class ThreadTimesCompositorCases(benchmark.Benchmark):
  """Measures timeline metrics while performing smoothness action on
  tough compositor cases.
  http://www.chromium.org/developers/design-documents/rendering-benchmarks"""
  test = thread_times.ThreadTimes
  page_set = page_sets.ToughCompositorCasesPageSet


@benchmark.Enabled('android')
class ThreadTimesPolymer(benchmark.Benchmark):
  """Measures timeline metrics while performing smoothness action on
  Polymer cases."""
  test = thread_times.ThreadTimes
  page_set = page_sets.PolymerPageSet
  options = { 'report_silk_results': True }