Skip to content

Instantly share code, notes, and snippets.

@alexwirz
Created July 24, 2014 18:34
Show Gist options
  • Save alexwirz/8449fa5be1778a24545b to your computer and use it in GitHub Desktop.
Save alexwirz/8449fa5be1778a24545b to your computer and use it in GitHub Desktop.
#/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