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

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

Issue 337603005: Rename telemetry.test.Test to telemetry.benchmark.Benchmark. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « tools/perf/benchmarks/dromaeo.py ('k') | tools/perf/benchmarks/html5gaming.py » ('j') | 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 """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 test 13 from telemetry import benchmark
14 14
15 from measurements import endure 15 from measurements import endure
16 import page_sets 16 import page_sets
17 17
18 18
19 class _EndureBenchmark(test.Test): 19 class _EndureBenchmark(benchmark.Benchmark):
20 """Base class which sets options for endure benchmarks below.""" 20 """Base class which sets options for endure benchmarks below."""
21 test = endure.Endure 21 test = endure.Endure
22 # Default options for endure benchmarks. Could be overridden in subclasses. 22 # Default options for endure benchmarks. Could be overridden in subclasses.
23 options = { 23 options = {
24 # Depending on the page and the actions performed on the page, 24 # Depending on the page and the actions performed on the page,
25 # 1000 iterations should be between 30 and 60 minutes. 25 # 1000 iterations should be between 30 and 60 minutes.
26 'page_repeat': 1000, 26 'page_repeat': 1000,
27 # One sample per 10 iterations -> 200 points per run. 27 # One sample per 10 iterations -> 200 points per run.
28 'perf_stats_interval': 10 28 'perf_stats_interval': 10
29 } 29 }
(...skipping 23 matching lines...) Expand all
53 page_set = page_sets.GmailExpandCollapseConversationPageSet 53 page_set = page_sets.GmailExpandCollapseConversationPageSet
54 54
55 55
56 class EndureIndexedDBOffline(_EndureBenchmark): 56 class EndureIndexedDBOffline(_EndureBenchmark):
57 page_set = page_sets.IndexeddbOfflinePageSet 57 page_set = page_sets.IndexeddbOfflinePageSet
58 58
59 59
60 class EndurePlusAltPostsPhotos(_EndureBenchmark): 60 class EndurePlusAltPostsPhotos(_EndureBenchmark):
61 page_set = page_sets.PlusAltPostsPhotosPageSet 61 page_set = page_sets.PlusAltPostsPhotosPageSet
62 62
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/dromaeo.py ('k') | tools/perf/benchmarks/html5gaming.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698