summaryrefslogtreecommitdiffstats
path: root/tools/perf/benchmarks/polymer_load.py
blob: 929a4ed2581dd5fb03def62e94b91ffebc0468d3 (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
# 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 core import perf_benchmark

from measurements import polymer_load
from telemetry import benchmark
import page_sets


@benchmark.Enabled('android')
class PolymerLoadPica(perf_benchmark.PerfBenchmark):
  """Measures time to polymer-ready for Pica (News Reader)."""
  test = polymer_load.PolymerLoadMeasurement
  page_set = page_sets.PicaPageSet

  @classmethod
  def Name(cls):
    return 'polymer_load.pica'


# There is something weird about this test (or a test that precedes it)
# that causes it to fail in telemetry_perf_unittests when it is not run
# as the first of the benchmark_smoke_unittest test cases.
# See crbug.com/428207.
#@benchmark.Enabled('android')
@benchmark.Disabled
class PolymerLoadTopeka(perf_benchmark.PerfBenchmark):
  """Measures time to polymer-ready for Topeka (Quiz App)."""
  test = polymer_load.PolymerLoadMeasurement
  page_set = page_sets.TopekaPageSet
  @classmethod
  def Name(cls):
    return 'polymer_load.topeka'