Don't show supervised user as "already on this device" while they're being imported.
[chromium-blink-merge.git] / tools / perf / benchmarks / start_with_url.py
blob4bf45d5f6e9e66155e189dc8401f72da279ef201
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 startup
8 from telemetry import benchmark
9 import page_sets
12 class _StartWithUrl(perf_benchmark.PerfBenchmark):
13 page_set = page_sets.StartupPagesPageSet
14 test = startup.StartWithUrl
16 @classmethod
17 def Name(cls):
18 return 'start_with_url.startup_pages'
20 def CreatePageTest(self, options):
21 is_cold = (self.tag == 'cold')
22 return self.test(cold=is_cold)
25 @benchmark.Enabled('has tabs')
26 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
27 class StartWithUrlCold(_StartWithUrl):
28 """Measure time to start Chrome cold with startup URLs"""
29 tag = 'cold'
30 options = {'pageset_repeat': 5}
32 @classmethod
33 def Name(cls):
34 return 'start_with_url.cold.startup_pages'
37 @benchmark.Enabled('has tabs')
38 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win')
39 class StartWithUrlWarm(_StartWithUrl):
40 """Measure time to start Chrome warm with startup URLs"""
41 tag = 'warm'
42 options = {'pageset_repeat': 10}
43 @classmethod
44 def Name(cls):
45 return 'start_with_url.warm.startup_pages'