1 # Copyright 2014 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 core
import perf_benchmark
7 from measurements
import task_execution_time
9 from telemetry
import benchmark
12 @benchmark.Enabled('android')
13 class TaskExecutionTimeKeyMobileSites(perf_benchmark
.PerfBenchmark
):
15 """Measures task execution statistics while scrolling down key mobile sites.
17 http://www.chromium.org/developers/design-documents/rendering-benchmarks
20 test
= task_execution_time
.TaskExecutionTime
21 page_set
= page_sets
.KeyMobileSitesSmoothPageSet
25 return 'task_execution_time.key_mobile_sites_smooth'
28 @benchmark.Enabled('android')
29 class TaskExecutionTimeToughSchedulingCases(perf_benchmark
.PerfBenchmark
):
31 """Measures task execution statistics while scrolling tough scheduling sites.
33 http://www.chromium.org/developers/design-documents/rendering-benchmarks.
36 test
= task_execution_time
.TaskExecutionTime
37 page_set
= page_sets
.ToughSchedulingCasesPageSet
41 return 'task_execution_time.tough_scheduling_cases'
44 @benchmark.Enabled('android')
45 class TaskExecutionTimePathologicalMobileSites(perf_benchmark
.PerfBenchmark
):
47 """Measures task execution statistics while scrolling pathological sites.
49 http://www.chromium.org/developers/design-documents/rendering-benchmarks.
52 test
= task_execution_time
.TaskExecutionTime
53 page_set
= page_sets
.PathologicalMobileSitesPageSet
57 return 'task_execution_time.pathological_mobile_sites'