MCPcopy Create free account
hub / github.com/apple/foundationdb / run_set

Method run_set

tests/python_tests/python_performance.py:202–210  ·  view source on GitHub ↗
(self, db, count=100000)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

random_keyMethod · 0.95
valueMethod · 0.95
rangeFunction · 0.85
timeMethod · 0.65
create_transactionMethod · 0.45

Tested by

no test coverage detected