| 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 """Apple's Speedometer performance benchmark. | 5 """Apple's Speedometer performance benchmark. |
| 6 | 6 |
| 7 Speedometer measures simulated user interactions in web applications. | 7 Speedometer measures simulated user interactions in web applications. |
| 8 | 8 |
| 9 The current benchmark uses TodoMVC to simulate user actions for adding, | 9 The current benchmark uses TodoMVC to simulate user actions for adding, |
| 10 completing, and removing to-do items. Speedometer repeats the same actions using | 10 completing, and removing to-do items. Speedometer repeats the same actions using |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 test = SpeedometerMeasurement | 94 test = SpeedometerMeasurement |
| 95 | 95 |
| 96 @classmethod | 96 @classmethod |
| 97 def Name(cls): | 97 def Name(cls): |
| 98 return 'speedometer' | 98 return 'speedometer' |
| 99 | 99 |
| 100 def CreateStorySet(self, options): | 100 def CreateStorySet(self, options): |
| 101 ps = story.StorySet( | 101 ps = story.StorySet( |
| 102 base_dir=os.path.dirname(os.path.abspath(__file__)), | 102 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 103 archive_data_file='../page_sets/data/speedometer.json', | 103 archive_data_file='../page_sets/data/speedometer.json', |
| 104 cloud_storage_bucket=story.PUBLIC_BUCKET, | 104 cloud_storage_bucket=story.PUBLIC_BUCKET) |
| 105 verify_names=True) | |
| 106 ps.AddStory(page_module.Page( | 105 ps.AddStory(page_module.Page( |
| 107 'http://browserbench.org/Speedometer/', ps, ps.base_dir, | 106 'http://browserbench.org/Speedometer/', ps, ps.base_dir, |
| 108 make_javascript_deterministic=False, | 107 make_javascript_deterministic=False, |
| 109 name='http://browserbench.org/Speedometer/')) | 108 name='http://browserbench.org/Speedometer/')) |
| 110 return ps | 109 return ps |
| OLD | NEW |