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

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

Issue 2110273002: Use correct overhead level for benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blob_storage Created 4 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/blob_storage.py ('k') | tools/perf/benchmarks/jitter.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 """Runs Chromium's IndexedDB performance test. These test: 5 """Runs Chromium's IndexedDB performance test. These test:
6 6
7 Databases: 7 Databases:
8 create/delete 8 create/delete
9 Keys: 9 Keys:
10 create/delete 10 create/delete
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 @classmethod 115 @classmethod
116 def Name(cls): 116 def Name(cls):
117 return 'storage.indexeddb_endure' 117 return 'storage.indexeddb_endure'
118 118
119 119
120 class IndexedDbTracing(perf_benchmark.PerfBenchmark): 120 class IndexedDbTracing(perf_benchmark.PerfBenchmark):
121 """IndexedDB Performance tests that use tracing.""" 121 """IndexedDB Performance tests that use tracing."""
122 page_set = page_sets.IndexedDBEndurePageSet 122 page_set = page_sets.IndexedDBEndurePageSet
123 123
124 def CreateTimelineBasedMeasurementOptions(self): 124 def CreateTimelineBasedMeasurementOptions(self):
125 cat_filter = chrome_trace_category_filter.CreateMinimalOverheadFilter() 125 cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter()
126 cat_filter.AddIncludedCategory(IDB_CATEGORY) 126 cat_filter.AddIncludedCategory(IDB_CATEGORY)
127 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY) 127 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY)
128 128
129 return timeline_based_measurement.Options( 129 return timeline_based_measurement.Options(
130 overhead_level=cat_filter) 130 overhead_level=cat_filter)
131 131
132 @classmethod 132 @classmethod
133 def Name(cls): 133 def Name(cls):
134 return 'storage.indexeddb_endure_tracing' 134 return 'storage.indexeddb_endure_tracing'
135 135
136 @classmethod 136 @classmethod
137 def ValueCanBeAddedPredicate(cls, value, is_first_result): 137 def ValueCanBeAddedPredicate(cls, value, is_first_result):
138 return 'idb' in value.name 138 return 'idb' in value.name
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/blob_storage.py ('k') | tools/perf/benchmarks/jitter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698