OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 import os | 5 import os |
6 import tempfile | 6 import tempfile |
7 | 7 |
8 from measurements import session_restore | 8 from measurements import session_restore |
9 from measurements import session_restore_with_url | |
10 import page_sets | 9 import page_sets |
11 from profile_creators import small_profile_creator | 10 from profile_creators import small_profile_creator |
12 from telemetry import benchmark | 11 from telemetry import benchmark |
13 from telemetry.page import profile_generator | 12 from telemetry.page import profile_generator |
14 | 13 |
15 | 14 |
16 class _SessionRestoreTest(benchmark.Benchmark): | 15 class _SessionRestoreTest(benchmark.Benchmark): |
17 | 16 |
18 @classmethod | 17 @classmethod |
19 def ProcessCommandLineArgs(cls, parser, args): | 18 def ProcessCommandLineArgs(cls, parser, args): |
(...skipping 28 matching lines...) Expand all Loading... |
48 options = {'pageset_repeat': 5} | 47 options = {'pageset_repeat': 5} |
49 | 48 |
50 | 49 |
51 # crbug.com/325479, crbug.com/381990 | 50 # crbug.com/325479, crbug.com/381990 |
52 @benchmark.Disabled('android', 'linux', 'reference') | 51 @benchmark.Disabled('android', 'linux', 'reference') |
53 class SessionRestoreWarmTypical25(_SessionRestoreTest): | 52 class SessionRestoreWarmTypical25(_SessionRestoreTest): |
54 tag = 'warm' | 53 tag = 'warm' |
55 test = session_restore.SessionRestore | 54 test = session_restore.SessionRestore |
56 page_set = page_sets.Typical25PageSet | 55 page_set = page_sets.Typical25PageSet |
57 options = {'pageset_repeat': 20} | 56 options = {'pageset_repeat': 20} |
58 | |
59 | |
60 # crbug.com/325479, crbug.com/381990, crbug.com/405386 | |
61 @benchmark.Disabled | |
62 class SessionRestoreWithUrlCold(_SessionRestoreTest): | |
63 """Measure Chrome cold session restore with startup URLs.""" | |
64 tag = 'cold' | |
65 test = session_restore_with_url.SessionRestoreWithUrl | |
66 page_set = page_sets.StartupPagesPageSet | |
67 options = {'pageset_repeat': 5} | |
68 | |
69 | |
70 # crbug.com/325479, crbug.com/381990, crbug.com/405386 | |
71 @benchmark.Disabled | |
72 class SessionRestoreWithUrlWarm(_SessionRestoreTest): | |
73 """Measure Chrome warm session restore with startup URLs.""" | |
74 tag = 'warm' | |
75 test = session_restore_with_url.SessionRestoreWithUrl | |
76 page_set = page_sets.StartupPagesPageSet | |
77 options = {'pageset_repeat': 10} | |
OLD | NEW |