Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: tools/perf/benchmarks/session_restore.py

Issue 1250453005: Re-enable session_restore on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't remove bug number as it refers to Windows as well Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from measurements import session_restore 7 from measurements import session_restore
8 import page_sets 8 import page_sets
9 from profile_creators import profile_generator 9 from profile_creators import profile_generator
10 from profile_creators import small_profile_extender 10 from profile_creators import small_profile_extender
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 story_set = self.page_set() 55 story_set = self.page_set()
56 for story in story_set.stories[1:]: 56 for story in story_set.stories[1:]:
57 story_set.RemoveStory(story) 57 story_set.RemoveStory(story)
58 return story_set 58 return story_set
59 59
60 def CreatePageTest(self, options): 60 def CreatePageTest(self, options):
61 is_cold = (self.tag == 'cold') 61 is_cold = (self.tag == 'cold')
62 return session_restore.SessionRestore(cold=is_cold) 62 return session_restore.SessionRestore(cold=is_cold)
63 63
64 # crbug.com/325479, crbug.com/381990, crbug.com/511273 64 # crbug.com/325479, crbug.com/381990, crbug.com/511273
65 @benchmark.Disabled('android', 'linux', 'reference', 'mac') 65 @benchmark.Disabled('android', 'linux', 'reference')
66 class SessionRestoreColdTypical25(_SessionRestoreTypical25): 66 class SessionRestoreColdTypical25(_SessionRestoreTypical25):
67 """Test by clearing system cache and profile before repeats.""" 67 """Test by clearing system cache and profile before repeats."""
68 tag = 'cold' 68 tag = 'cold'
69 options = {'pageset_repeat': 5} 69 options = {'pageset_repeat': 5}
70 70
71 @classmethod 71 @classmethod
72 def Name(cls): 72 def Name(cls):
73 return 'session_restore.cold.typical_25' 73 return 'session_restore.cold.typical_25'
74 74
75 75
76 # crbug.com/325479, crbug.com/381990, crbug.com/511273 76 # crbug.com/325479, crbug.com/381990, crbug.com/511273
77 @benchmark.Disabled('android', 'linux', 'reference', 'xp', 'mac') 77 @benchmark.Disabled('android', 'linux', 'reference', 'xp')
78 class SessionRestoreWarmTypical25(_SessionRestoreTypical25): 78 class SessionRestoreWarmTypical25(_SessionRestoreTypical25):
79 """Test without clearing system cache or profile before repeats. 79 """Test without clearing system cache or profile before repeats.
80 80
81 The first result is discarded. 81 The first result is discarded.
82 """ 82 """
83 tag = 'warm' 83 tag = 'warm'
84 options = {'pageset_repeat': 20} 84 options = {'pageset_repeat': 20}
85 85
86 @classmethod 86 @classmethod
87 def Name(cls): 87 def Name(cls):
88 return 'session_restore.warm.typical_25' 88 return 'session_restore.warm.typical_25'
89 89
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698