Created
July 24, 2014 18:34
-
-
Save alexwirz/8449fa5be1778a24545b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/python | |
import fdb | |
import time | |
fdb.api_version(21) | |
db = fdb.open () | |
writesCount = 10000 | |
started = time.time() | |
for x in range (writesCount): | |
db["foo"] = "bar" | |
finished = time.time() | |
elapsed = finished - started | |
print "{0} writes in {1} seconds -> {2} writes per second".format(writesCount, elapsed, writesCount/elapsed) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment