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

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

Issue 1104053006: [Storage] Blob Storage perf tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added read stats Created 5 years, 7 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
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4 from telemetry import benchmark
5 from telemetry.core.platform import tracing_category_filter
6 from telemetry.web_perf import timeline_based_measurement
7
8 import page_sets
9
10 TOPLEVEL_CATEGORY = 'Blob'
11
nednguyen 2015/05/18 22:55:53 nit: add another blank line
dmurph 2015/05/21 00:21:36 Done.
12 class BlobStorage(benchmark.Benchmark):
13 """Timeline based measurement benchmark for Blob Storage."""
14 page_set = page_sets.BlobWorkshopPageSet
15
16 def CreateTimelineBasedMeasurementOptions(self):
17 cat_filter = tracing_category_filter.CreateNoOverheadFilter()
18 cat_filter.AddIncludedCategory(TOPLEVEL_CATEGORY)
19
20 return timeline_based_measurement.Options(
21 overhead_level=cat_filter)
22
23 @classmethod
24 def Name(cls):
25 return 'blob_storage.blob_storage'
26
27 @classmethod
28 def ValueCanBeAddedPredicate(cls, value, is_first_result):
29 return (value.name.startswith('Action_CreateBlob-blob_writes') or
30 value.name.startswith('Action_ReadBlob-blob_reads'))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698