| 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 """The Endure benchmarks measure memory performance over a period of time. | 5 """The Endure benchmarks measure memory performance over a period of time. |
| 6 | 6 |
| 7 In each Endure benchmark, one page action is performed repeatedly and memory | 7 In each Endure benchmark, one page action is performed repeatedly and memory |
| 8 usage is measured periodically. The specific page actions are defined in the | 8 usage is measured periodically. The specific page actions are defined in the |
| 9 page sets, and the statistics that are gathered are determined by the Endure | 9 page sets, and the statistics that are gathered are determined by the Endure |
| 10 measurement class. | 10 measurement class. |
| 11 """ | 11 """ |
| 12 | 12 |
| 13 from telemetry import benchmark | |
| 14 | |
| 15 from measurements import endure | 13 from measurements import endure |
| 16 import page_sets | 14 import page_sets |
| 15 from telemetry import benchmark |
| 17 | 16 |
| 18 | 17 |
| 19 class _EndureBenchmark(benchmark.Benchmark): | 18 class _EndureBenchmark(benchmark.Benchmark): |
| 20 """Base class which sets options for endure benchmarks below.""" | 19 """Base class which sets options for endure benchmarks below.""" |
| 21 test = endure.Endure | 20 test = endure.Endure |
| 22 # Default options for endure benchmarks. Could be overridden in subclasses. | 21 # Default options for endure benchmarks. Could be overridden in subclasses. |
| 23 options = { | 22 options = { |
| 24 # Depending on the page and the actions performed on the page, | 23 # Depending on the page and the actions performed on the page, |
| 25 # 1000 iterations should be between 30 and 60 minutes. | 24 # 1000 iterations should be between 30 and 60 minutes. |
| 26 'page_repeat': 1000, | 25 'page_repeat': 1000, |
| 27 # One sample per 10 iterations -> 200 points per run. | 26 # One sample per 10 iterations -> 200 points per run. |
| 28 'perf_stats_interval': 10 | 27 'perf_stats_interval': 10 |
| 29 } | 28 } |
| 30 | 29 |
| 31 | 30 |
| 31 @benchmark.Disabled |
| 32 class EndureCalendarForwardBackward(_EndureBenchmark): | 32 class EndureCalendarForwardBackward(_EndureBenchmark): |
| 33 page_set = page_sets.CalendarForwardBackwardPageSet | 33 page_set = page_sets.CalendarForwardBackwardPageSet |
| 34 | 34 |
| 35 | 35 |
| 36 @benchmark.Disabled |
| 36 class EndureBrowserControl(_EndureBenchmark): | 37 class EndureBrowserControl(_EndureBenchmark): |
| 37 page_set = page_sets.BrowserControlPageSet | 38 page_set = page_sets.BrowserControlPageSet |
| 38 | 39 |
| 39 | 40 |
| 41 @benchmark.Disabled |
| 40 class EndureBrowserControlClick(_EndureBenchmark): | 42 class EndureBrowserControlClick(_EndureBenchmark): |
| 41 page_set = page_sets.BrowserControlClickPageSet | 43 page_set = page_sets.BrowserControlClickPageSet |
| 42 | 44 |
| 43 | 45 |
| 46 @benchmark.Disabled |
| 44 class EndureGmailAltThreadlistConversation(_EndureBenchmark): | 47 class EndureGmailAltThreadlistConversation(_EndureBenchmark): |
| 45 page_set = page_sets.GmailAltThreadlistConversationPageSet | 48 page_set = page_sets.GmailAltThreadlistConversationPageSet |
| 46 | 49 |
| 47 | 50 |
| 51 @benchmark.Disabled |
| 48 class EndureGmailAltTwoLabels(_EndureBenchmark): | 52 class EndureGmailAltTwoLabels(_EndureBenchmark): |
| 49 page_set = page_sets.GmailAltTwoLabelsPageSet | 53 page_set = page_sets.GmailAltTwoLabelsPageSet |
| 50 | 54 |
| 51 | 55 |
| 56 @benchmark.Disabled |
| 52 class EndureGmailExpandCollapseConversation(_EndureBenchmark): | 57 class EndureGmailExpandCollapseConversation(_EndureBenchmark): |
| 53 page_set = page_sets.GmailExpandCollapseConversationPageSet | 58 page_set = page_sets.GmailExpandCollapseConversationPageSet |
| 54 | 59 |
| 55 | 60 |
| 61 @benchmark.Disabled |
| 56 class EndureIndexedDBOffline(_EndureBenchmark): | 62 class EndureIndexedDBOffline(_EndureBenchmark): |
| 57 page_set = page_sets.IndexeddbOfflinePageSet | 63 page_set = page_sets.IndexeddbOfflinePageSet |
| 58 | 64 |
| 59 | 65 |
| 66 @benchmark.Disabled |
| 60 class EndurePlusAltPostsPhotos(_EndureBenchmark): | 67 class EndurePlusAltPostsPhotos(_EndureBenchmark): |
| 61 page_set = page_sets.PlusAltPostsPhotosPageSet | 68 page_set = page_sets.PlusAltPostsPhotosPageSet |
| 62 | 69 |
| OLD | NEW |