OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 power.PowerMetric.CustomizeBrowserOptions(options) | 83 power.PowerMetric.CustomizeBrowserOptions(options) |
84 | 84 |
85 class IndexedDb(perf_benchmark.PerfBenchmark): | 85 class IndexedDb(perf_benchmark.PerfBenchmark): |
86 """Chromium's IndexedDB Performance tests.""" | 86 """Chromium's IndexedDB Performance tests.""" |
87 test = _IndexedDbMeasurement | 87 test = _IndexedDbMeasurement |
88 | 88 |
89 @classmethod | 89 @classmethod |
90 def Name(cls): | 90 def Name(cls): |
91 return 'indexeddb_perf' | 91 return 'indexeddb_perf' |
92 | 92 |
93 def CreatePageSet(self, options): | 93 def CreateStorySet(self, options): |
94 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 94 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
95 'data', 'indexeddb') | 95 'data', 'indexeddb') |
96 ps = page_set.PageSet(base_dir=indexeddb_dir) | 96 ps = page_set.PageSet(base_dir=indexeddb_dir) |
97 ps.AddUserStory(page_module.Page('file://perf_test.html', ps, ps.base_dir)) | 97 ps.AddUserStory(page_module.Page('file://perf_test.html', ps, ps.base_dir)) |
98 return ps | 98 return ps |
OLD | NEW |