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

Side by Side Diff: tools/perf/benchmarks/blob_storage.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/battor.py ('k') | tools/perf/benchmarks/indexeddb_perf.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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 from core import perf_benchmark 5 from core import perf_benchmark
6 6
7 from telemetry import benchmark 7 from telemetry import benchmark
8 from telemetry.timeline import chrome_trace_category_filter 8 from telemetry.timeline import chrome_trace_category_filter
9 from telemetry.web_perf import timeline_based_measurement 9 from telemetry.web_perf import timeline_based_measurement
10 10
11 import page_sets 11 import page_sets
12 12
13 13
14 BLOB_CATEGORY = 'Blob' 14 BLOB_CATEGORY = 'Blob'
15 TIMELINE_REQUIRED_CATEGORY = 'blink.console' 15 TIMELINE_REQUIRED_CATEGORY = 'blink.console'
16 16
17 17
18 # http://crbug.com/499325 18 # http://crbug.com/499325
19 # http://crbug.com/595069 19 # http://crbug.com/595069
20 @benchmark.Disabled('android', 'win') 20 @benchmark.Disabled('android', 'win')
21 class BlobStorage(perf_benchmark.PerfBenchmark): 21 class BlobStorage(perf_benchmark.PerfBenchmark):
22 """Timeline based measurement benchmark for Blob Storage.""" 22 """Timeline based measurement benchmark for Blob Storage."""
23 23
24 page_set = page_sets.BlobWorkshopPageSet 24 page_set = page_sets.BlobWorkshopPageSet
25 25
26 def CreateTimelineBasedMeasurementOptions(self): 26 def CreateTimelineBasedMeasurementOptions(self):
27 cat_filter = chrome_trace_category_filter.CreateMinimalOverheadFilter() 27 cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter()
28 cat_filter.AddIncludedCategory(BLOB_CATEGORY) 28 cat_filter.AddIncludedCategory(BLOB_CATEGORY)
29 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY) 29 cat_filter.AddIncludedCategory(TIMELINE_REQUIRED_CATEGORY)
30 30
31 return timeline_based_measurement.Options( 31 return timeline_based_measurement.Options(
32 overhead_level=cat_filter) 32 overhead_level=cat_filter)
33 33
34 # Necessary until crbug.com/544306 is finished. 34 # Necessary until crbug.com/544306 is finished.
35 def SetExtraBrowserOptions(self, options): 35 def SetExtraBrowserOptions(self, options):
36 options.AppendExtraBrowserArgs( 36 options.AppendExtraBrowserArgs(
37 ['--enable-experimental-web-platform-features']) 37 ['--enable-experimental-web-platform-features'])
38 38
39 @classmethod 39 @classmethod
40 def Name(cls): 40 def Name(cls):
41 return 'blob_storage.blob_storage' 41 return 'blob_storage.blob_storage'
42 42
43 @classmethod 43 @classmethod
44 def ValueCanBeAddedPredicate(cls, value, is_first_result): 44 def ValueCanBeAddedPredicate(cls, value, is_first_result):
45 if ('blob-writes' not in value.name and 45 if ('blob-writes' not in value.name and
46 'blob-reads' not in value.name): 46 'blob-reads' not in value.name):
47 return False 47 return False
48 return value.values != None 48 return value.values != None
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/battor.py ('k') | tools/perf/benchmarks/indexeddb_perf.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698