Commit 78a403e7 authored by Jason Madden's avatar Jason Madden

restore the microbenchmarks that used the missing run -> wait [skip ci]

parent aeea432a
...@@ -12,6 +12,7 @@ $PYTHON -mtimeit -r 6 -s'from gevent.coros import Semaphore; from gevent import ...@@ -12,6 +12,7 @@ $PYTHON -mtimeit -r 6 -s'from gevent.coros import Semaphore; from gevent import
$PYTHON -mtimeit -r 6 -s'from gevent import spawn; f = lambda : 5' 'spawn(f)' $PYTHON -mtimeit -r 6 -s'from gevent import spawn; f = lambda : 5' 'spawn(f)'
$PYTHON -mtimeit -r 6 -s'from gevent import spawn; f = lambda : 5' 'spawn(f).join()' $PYTHON -mtimeit -r 6 -s'from gevent import spawn; f = lambda : 5' 'spawn(f).join()'
$PYTHON -mtimeit -r 6 -s'from gevent import spawn, wait; from gevent.hub import xrange; f = lambda : 5' 'for _ in xrange(10000): spawn(f)' 'wait()'
$PYTHON -mtimeit -r 6 -s'from gevent import spawn_raw; f = lambda : 5' 'spawn_raw(f)' $PYTHON -mtimeit -r 6 -s'from gevent import spawn_raw; f = lambda : 5' 'spawn_raw(f)'
$PYTHON -mtimeit -r 6 -s'from gevent import sleep; f = lambda : 5' 'sleep(0)' $PYTHON -mtimeit -r 6 -s'from gevent import sleep; f = lambda : 5' 'sleep(0)'
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
set -e -x set -e -x
PYTHON=${PYTHON:=python} PYTHON=${PYTHON:=python}
$PYTHON -mtimeit -r 6 -s'from gevent import get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'run_cb(f)' $PYTHON -mtimeit -r 6 -s'from gevent import get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'run_cb(f)'
#$PYTHON -mtimeit -r 6 -s'from gevent import run,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'run_cb(f)' 'run()' $PYTHON -mtimeit -r 6 -s'from gevent import wait,get_hub; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'run_cb(f)' 'wait()'
$PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(100): run_cb(f)' $PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(100): run_cb(f)'
#$PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(100): run_cb(f)' 'run()' $PYTHON -mtimeit -r 6 -s'from gevent import wait,get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(100): run_cb(f)' 'wait()'
$PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(10000): run_cb(f)' $PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(10000): run_cb(f)'
#$PYTHON -mtimeit -r 6 -s'from gevent import get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(10000): run_cb(f)' 'run()' $PYTHON -mtimeit -r 6 -s'from gevent import wait,get_hub; from gevent.hub import xrange; run_cb = get_hub().loop.run_callback; f = lambda : 5' 'for _ in xrange(10000): run_cb(f)' 'wait()'
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