(self, db, count=100000)
| 179 | |
| 180 | # Tests the performance of the 'clear' function |
| 181 | def run_clear(self, db, count=100000): |
| 182 | tr = db.create_transaction() |
| 183 | s = time.time() |
| 184 | |
| 185 | for i in range(count): |
| 186 | del tr[self.random_key()] |
| 187 | |
| 188 | return count / (time.time() - s) |
| 189 | |
| 190 | # Tests the performance of the 'clear_range' function |
| 191 | def run_clear_range(self, db, count=100000): |
nothing calls this directly
no test coverage detected