| 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 |
| 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 Sporadic writes | |
| 16 Read cache | 15 Read cache |
| 17 Cursors: | 16 Cursors: |
| 18 Read & random writes | 17 Read & random writes |
| 19 Walking multiple | 18 Walking multiple |
| 20 Seeking. | 19 Seeking. |
| 21 """ | 20 """ |
| 22 | 21 |
| 23 import json | 22 import json |
| 24 import os | 23 import os |
| 25 | 24 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 class IndexedDb(test.Test): | 84 class IndexedDb(test.Test): |
| 86 """Chromium's IndexedDB Performance tests.""" | 85 """Chromium's IndexedDB Performance tests.""" |
| 87 test = _IndexedDbMeasurement | 86 test = _IndexedDbMeasurement |
| 88 | 87 |
| 89 def CreatePageSet(self, options): | 88 def CreatePageSet(self, options): |
| 90 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 89 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 91 'data', 'indexeddb') | 90 'data', 'indexeddb') |
| 92 ps = page_set.PageSet(file_path=indexeddb_dir) | 91 ps = page_set.PageSet(file_path=indexeddb_dir) |
| 93 ps.AddPageWithDefaultRunNavigate('file://perf_test.html') | 92 ps.AddPageWithDefaultRunNavigate('file://perf_test.html') |
| 94 return ps | 93 return ps |
| OLD | NEW |