Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 24 lines (18 sloc) 0.391 kB
#!/usr/bin/env python
import timeit
import sys
if __name__ == '__main__':
runStatement = """
for i in xrange(0, 100000):
entry = db.loadRecordByName(random.choice(keys))
"""
setupStatement = """
import os, sys
import random
import pgdb
db = pgdb.pgdb()
keys = db.keys()
"""
t = timeit.Timer(runStatement, setupStatement)
print "[PGRES RUN]"
print t.repeat(2, 1)
Jump to Line
Something went wrong with that request. Please try again.