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
3 # found in the LICENSE file.
5 """The Endure benchmarks measure memory performance over a period of time.
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
9 page sets, and the statistics that are gathered are determined by the Endure
13 from measurements
import endure
15 from telemetry
import benchmark
18 class _EndureBenchmark(benchmark
.Benchmark
):
19 """Base class which sets options for endure benchmarks below."""
21 # Default options for endure benchmarks. Could be overridden in subclasses.
23 # Depending on the page and the actions performed on the page,
24 # 1000 iterations should be between 30 and 60 minutes.
26 # One sample per 10 iterations -> 200 points per run.
27 'perf_stats_interval': 10
32 class EndureCalendarForwardBackward(_EndureBenchmark
):
33 page_set
= page_sets
.CalendarForwardBackwardPageSet
37 class EndureBrowserControl(_EndureBenchmark
):
38 page_set
= page_sets
.BrowserControlPageSet
42 class EndureBrowserControlClick(_EndureBenchmark
):
43 page_set
= page_sets
.BrowserControlClickPageSet
47 class EndureGmailAltThreadlistConversation(_EndureBenchmark
):
48 page_set
= page_sets
.GmailAltThreadlistConversationPageSet
52 class EndureGmailAltTwoLabels(_EndureBenchmark
):
53 page_set
= page_sets
.GmailAltTwoLabelsPageSet
57 class EndureGmailExpandCollapseConversation(_EndureBenchmark
):
58 page_set
= page_sets
.GmailExpandCollapseConversationPageSet
62 class EndureIndexedDBOffline(_EndureBenchmark
):
63 page_set
= page_sets
.IndexeddbOfflinePageSet
67 class EndurePlusAltPostsPhotos(_EndureBenchmark
):
68 page_set
= page_sets
.PlusAltPostsPhotosPageSet