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.
7 from core
import perf_benchmark
9 from benchmarks
import blink_perf
10 from benchmarks
import silk_flags
11 from measurements
import oilpan_gc_times
12 from telemetry
import benchmark
16 class OilpanGCTimesBlinkPerfAnimation(perf_benchmark
.PerfBenchmark
):
17 tag
= 'blink_perf_animation'
18 test
= oilpan_gc_times
.OilpanGCTimesForBlinkPerf
22 return 'oilpan_gc_times.blink_perf_animation'
24 def CreatePageSet(self
, options
):
25 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'Animation')
26 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
29 @benchmark.Enabled('content-shell')
30 class OilpanGCTimesBlinkPerfStress(perf_benchmark
.PerfBenchmark
):
31 tag
= 'blink_perf_stress'
32 test
= oilpan_gc_times
.OilpanGCTimesForInternals
36 return 'oilpan_gc_times.blink_perf_stress'
38 def CreatePageSet(self
, options
):
39 path
= os
.path
.join(blink_perf
.BLINK_PERF_BASE_DIR
, 'BlinkGC')
40 return blink_perf
.CreatePageSetFromPath(path
, blink_perf
.SKIPPED_FILE
)
43 class OilpanGCTimesSmoothnessAnimation(perf_benchmark
.PerfBenchmark
):
44 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
45 page_set
= page_sets
.ToughAnimationCasesPageSet
49 return 'oilpan_gc_times.tough_animation_cases'
52 @benchmark.Enabled('android')
53 class OilpanGCTimesKeySilkCases(perf_benchmark
.PerfBenchmark
):
54 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
55 page_set
= page_sets
.KeySilkCasesPageSet
59 return 'oilpan_gc_times.key_silk_cases'
62 @benchmark.Enabled('android')
63 class OilpanGCTimesSyncScrollKeyMobileSites(perf_benchmark
.PerfBenchmark
):
65 test
= oilpan_gc_times
.OilpanGCTimesForSmoothness
66 page_set
= page_sets
.KeyMobileSitesSmoothPageSet
67 def SetExtraBrowserOptions(self
, options
):
68 silk_flags
.CustomizeBrowserOptionsForSyncScrolling(options
)
71 return 'oilpan_gc_times.sync_scroll.key_mobile_sites_smooth'