| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from telemetry import benchmark |
| 6 |
| 5 from measurements import startup | 7 from measurements import startup |
| 6 import page_sets | 8 import page_sets |
| 7 from telemetry import benchmark | |
| 8 | 9 |
| 9 | 10 |
| 10 class _StartWithUrl(benchmark.Benchmark): | 11 class _StartWithUrl(benchmark.Benchmark): |
| 11 page_set = page_sets.StartupPagesPageSet | 12 page_set = page_sets.StartupPagesPageSet |
| 12 test = startup.StartWithUrl | 13 test = startup.StartWithUrl |
| 13 | 14 |
| 14 @classmethod | 15 @classmethod |
| 15 def Name(cls): | 16 def Name(cls): |
| 16 return 'start_with_url.startup_pages' | 17 return 'start_with_url.startup_pages' |
| 17 | 18 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 @benchmark.Enabled('has tabs') | 36 @benchmark.Enabled('has tabs') |
| 36 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win') | 37 @benchmark.Disabled('chromeos', 'linux', 'mac', 'win') |
| 37 class StartWithUrlWarm(_StartWithUrl): | 38 class StartWithUrlWarm(_StartWithUrl): |
| 38 """Measure time to start Chrome warm with startup URLs""" | 39 """Measure time to start Chrome warm with startup URLs""" |
| 39 tag = 'warm' | 40 tag = 'warm' |
| 40 options = {'pageset_repeat': 10} | 41 options = {'pageset_repeat': 10} |
| 41 @classmethod | 42 @classmethod |
| 42 def Name(cls): | 43 def Name(cls): |
| 43 return 'start_with_url.warm.startup_pages' | 44 return 'start_with_url.warm.startup_pages' |
| 44 | 45 |
| OLD | NEW |