Roll src/third_party/WebKit f36d5e0:68b67cd (svn 193299:193303)
[chromium-blink-merge.git] / tools / perf / benchmarks / start_with_url.py
blob43a1798668c87b54cd51a5d7a526e97792d173b1
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 startup
8 import page_sets
11 class _StartWithUrl(benchmark.Benchmark):
12 page_set = page_sets.StartupPagesPageSet
13 test = startup.StartWithUrl
15 @classmethod
16 def Name(cls):
17 return 'start_with_url.startup_pages'
19 def CreatePageTest(self, options):
20 is_cold = (self.tag == 'cold')
21 return self.test(cold=is_cold)
24 @benchmark.Enabled('has tabs')
25 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
26 class StartWithUrlCold(_StartWithUrl):
27 """Measure time to start Chrome cold with startup URLs"""
28 tag = 'cold'
29 options = {'pageset_repeat': 5}
31 @classmethod
32 def Name(cls):
33 return 'start_with_url.cold.startup_pages'
36 @benchmark.Enabled('has tabs')
37 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
38 class StartWithUrlWarm(_StartWithUrl):
39 """Measure time to start Chrome warm with startup URLs"""
40 tag = 'warm'
41 options = {'pageset_repeat': 10}
42 @classmethod
43 def Name(cls):
44 return 'start_with_url.warm.startup_pages'