Commit be1f558e authored by Denis Bilenko's avatar Denis Bilenko

add examples/bench_sleep0.py

parent 3d48b813
from time import time
from gevent import sleep
N = 10000
start = time()
for _ in xrange(N):
sleep(0)
delta = time() - start
print 'sleep(0): %.1f microseconds' % (delta*1000000.0/N)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment