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 measurements
import startup
7 from telemetry
import benchmark
10 class _StartWithUrl(benchmark
.Benchmark
):
11 page_set
= page_sets
.StartupPagesPageSet
12 test
= startup
.StartWithUrl
14 def CreatePageTest(self
, options
):
15 is_cold
= (self
.tag
== 'cold')
16 return self
.test(cold
=is_cold
)
19 @benchmark.Enabled('has tabs')
20 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
21 class StartWithUrlCold(_StartWithUrl
):
22 """Measure time to start Chrome cold with startup URLs"""
24 options
= {'pageset_repeat': 5}
27 @benchmark.Enabled('has tabs')
28 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
29 class StartWithUrlWarm(_StartWithUrl
):
30 """Measure time to start Chrome warm with startup URLs"""
32 options
= {'pageset_repeat': 10}