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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 def CustomizeBrowserOptions(self, options): | 90 def CustomizeBrowserOptions(self, options): |
91 memory.MemoryMetric.CustomizeBrowserOptions(options) | 91 memory.MemoryMetric.CustomizeBrowserOptions(options) |
92 power.PowerMetric.CustomizeBrowserOptions(options) | 92 power.PowerMetric.CustomizeBrowserOptions(options) |
93 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options) | 93 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options) |
94 | 94 |
95 class IndexedDb(benchmark.Benchmark): | 95 class IndexedDb(benchmark.Benchmark): |
96 """Chromium's IndexedDB Performance tests.""" | 96 """Chromium's IndexedDB Performance tests.""" |
97 test = _IndexedDbMeasurement | 97 test = _IndexedDbMeasurement |
98 | 98 |
| 99 @classmethod |
| 100 def Name(cls): |
| 101 return 'indexeddb_perf' |
| 102 |
99 def CreatePageSet(self, options): | 103 def CreatePageSet(self, options): |
100 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 104 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
101 'data', 'indexeddb') | 105 'data', 'indexeddb') |
102 ps = page_set.PageSet(file_path=indexeddb_dir) | 106 ps = page_set.PageSet(file_path=indexeddb_dir) |
103 ps.AddUserStory(page_module.Page('file://perf_test.html', ps, ps.base_dir)) | 107 ps.AddUserStory(page_module.Page('file://perf_test.html', ps, ps.base_dir)) |
104 return ps | 108 return ps |
OLD | NEW |