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 telemetry
import benchmark
7 from measurements
import task_execution_time
11 @benchmark.Enabled('android')
12 class TaskExecutionTimeKeyMobileSites(benchmark
.Benchmark
):
14 """Measures task execution statistics while scrolling down key mobile sites.
16 http://www.chromium.org/developers/design-documents/rendering-benchmarks
19 test
= task_execution_time
.TaskExecutionTime
20 page_set
= page_sets
.KeyMobileSitesSmoothPageSet
24 return 'task_execution_time.key_mobile_sites_smooth'
27 @benchmark.Enabled('android')
28 class TaskExecutionTimeToughSchedulingCases(benchmark
.Benchmark
):
30 """Measures task execution statistics while scrolling tough scheduling sites.
32 http://www.chromium.org/developers/design-documents/rendering-benchmarks.
35 test
= task_execution_time
.TaskExecutionTime
36 page_set
= page_sets
.ToughSchedulingCasesPageSet
40 return 'task_execution_time.tough_scheduling_cases'
43 @benchmark.Enabled('android')
44 class TaskExecutionTimePathologicalMobileSites(benchmark
.Benchmark
):
46 """Measures task execution statistics while scrolling pathological sites.
48 http://www.chromium.org/developers/design-documents/rendering-benchmarks.
51 test
= task_execution_time
.TaskExecutionTime
52 page_set
= page_sets
.PathologicalMobileSitesPageSet
56 return 'task_execution_time.pathological_mobile_sites'