Пример #1
0
 def timed(count):
     c = RedisClient()
     c.select(1)
     seq = range(0,count)
     now = time.time()
     for i in seq:
         it = str(random.choice(seq))
         c.set(it, it)
         it = str(random.choice(seq))
         c.get(it)
     return count/(time.time() - now)