Change next_proto member type.
[chromium-blink-merge.git] / tools / perf / benchmarks / start_with_url.py
blob895dd9116c37f4ee3bea907fe4a9820ca628cd8c
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
6 import page_sets
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"""
23 tag = 'cold'
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"""
31 tag = 'warm'
32 options = {'pageset_repeat': 10}