(self, db, count=100000)
| 200 | |
| 201 | # Tests the performance of the 'set' function |
| 202 | def run_set(self, db, count=100000): |
| 203 | tr = db.create_transaction() |
| 204 | s = time.time() |
| 205 | |
| 206 | for i in range(count): |
| 207 | key = self.random_key() |
| 208 | tr[key] = self.value(key) |
| 209 | |
| 210 | return count / (time.time() - s) |
| 211 | |
| 212 | # Tests the parallel performance of the 'get' function |
| 213 | @fdb.transactional |
nothing calls this directly
no test coverage detected