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 telemetry import benchmark |
| 9 |
8 from measurements import session_restore | 10 from measurements import session_restore |
9 import page_sets | 11 import page_sets |
10 from profile_creators import profile_generator | 12 from profile_creators import profile_generator |
11 from profile_creators import small_profile_creator | 13 from profile_creators import small_profile_creator |
12 from telemetry import benchmark | |
13 | 14 |
14 | 15 |
15 class _SessionRestoreTypical25(benchmark.Benchmark): | 16 class _SessionRestoreTypical25(benchmark.Benchmark): |
16 """Base Benchmark class for session restore benchmarks. | 17 """Base Benchmark class for session restore benchmarks. |
17 | 18 |
18 A cold start means none of the Chromium files are in the disk cache. | 19 A cold start means none of the Chromium files are in the disk cache. |
19 A warm start assumes the OS has already cached much of Chromium's content. | 20 A warm start assumes the OS has already cached much of Chromium's content. |
20 For warm tests, you should repeat the page set to ensure it's cached. | 21 For warm tests, you should repeat the page set to ensure it's cached. |
21 | 22 |
22 Use Typical25PageSet to match what the SmallProfileCreator uses. | 23 Use Typical25PageSet to match what the SmallProfileCreator uses. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 92 |
92 The first result is discarded. | 93 The first result is discarded. |
93 """ | 94 """ |
94 tag = 'warm' | 95 tag = 'warm' |
95 options = {'pageset_repeat': 20} | 96 options = {'pageset_repeat': 20} |
96 | 97 |
97 @classmethod | 98 @classmethod |
98 def Name(cls): | 99 def Name(cls): |
99 return 'session_restore.warm.typical_25' | 100 return 'session_restore.warm.typical_25' |
100 | 101 |
OLD | NEW |