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

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

Issue 797133003: Kill PageSet.AddPageWithDefaultRunNavigate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/jetstream.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
11 Indexes: 11 Indexes:
12 create/delete 12 create/delete
13 Data access: 13 Data access:
14 Random read/write 14 Random read/write
15 Read cache 15 Read cache
16 Cursors: 16 Cursors:
17 Read & random writes 17 Read & random writes
18 Walking multiple 18 Walking multiple
19 Seeking. 19 Seeking.
20 """ 20 """
21 21
22 import json 22 import json
23 import os 23 import os
24 24
25 from metrics import memory 25 from metrics import memory
26 from metrics import power 26 from metrics import power
27 from metrics import v8_object_stats 27 from metrics import v8_object_stats
28 from telemetry import benchmark 28 from telemetry import benchmark
29 from telemetry import page as page_module
29 from telemetry.core import util 30 from telemetry.core import util
30 from telemetry.page import page_set 31 from telemetry.page import page_set
31 from telemetry.page import page_test 32 from telemetry.page import page_test
32 from telemetry.value import scalar 33 from telemetry.value import scalar
33 34
34 _V8_COUNTER_NAMES = [ 35 _V8_COUNTER_NAMES = [
35 'V8.OsMemoryAllocated', 36 'V8.OsMemoryAllocated',
36 ] 37 ]
37 38
38 class _IndexedDbMeasurement(page_test.PageTest): 39 class _IndexedDbMeasurement(page_test.PageTest):
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options) 92 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options)
92 93
93 class IndexedDb(benchmark.Benchmark): 94 class IndexedDb(benchmark.Benchmark):
94 """Chromium's IndexedDB Performance tests.""" 95 """Chromium's IndexedDB Performance tests."""
95 test = _IndexedDbMeasurement 96 test = _IndexedDbMeasurement
96 97
97 def CreatePageSet(self, options): 98 def CreatePageSet(self, options):
98 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', 99 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test',
99 'data', 'indexeddb') 100 'data', 'indexeddb')
100 ps = page_set.PageSet(file_path=indexeddb_dir) 101 ps = page_set.PageSet(file_path=indexeddb_dir)
101 ps.AddPageWithDefaultRunNavigate('file://perf_test.html') 102 ps.AddUserStory(page_module.Page('file://perf_test.html', ps, ps.base_dir))
102 return ps 103 return ps
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/dromaeo.py ('k') | tools/perf/benchmarks/jetstream.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698