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

Method random_key

tests/python_tests/python_performance.py:80–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 self.result.add_error(self.get_error("Failed to complete all tests"))
79
80 def random_key(self):
81 return self.key(random.randint(0, self.key_count - 1))
82
83 def key(self, num):
84 return "%0*d" % (self.key_size, num)

Callers 8

run_clearMethod · 0.95
run_clear_rangeMethod · 0.95
run_setMethod · 0.95
run_parallel_getMethod · 0.95
run_serial_getMethod · 0.95
run_get_keyMethod · 0.95
single_setMethod · 0.95

Calls 1

keyMethod · 0.95

Tested by

no test coverage detected