01 |
from timer import Timer |
02 |
from redis import Redis |
03 |
rdb = Redis() |
04 |
|
05 |
with Timer() as t: |
06 |
rdb.lpush( "foo" , "bar" ) |
07 |
print "=> elasped lpush: %s s" % t.secs |
08 |
|
09 |
with Timer as t: |
10 |
rdb.lpop( "foo" ) |