diff --git a/runbench.py b/runbench.py index a4a372a..1fcfa0b 100644 --- a/runbench.py +++ b/runbench.py @@ -55,7 +55,7 @@ def write_result(setup, result): for rep in REPS: - command = 'ab -n %(GETS)s -c %(conc)s http://localhost:8000/' % locals() + command = 'ab -n %(GETS)s -c %(conc)s http://127.0.0.1:8000/' % locals() ab = subprocess.Popen(command.split(), stdout=subprocess.PIPE) ab.wait() result = ab.stdout.read() diff --git a/setup.py b/setup.py index 625230f..631da55 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,17 @@ from setuptools import setup +is_pypy = hasattr(sys, 'pypy_version_info') + +extras = [] +if not is_pypy: + extras.extend(['gevent>1.0b1', 'cython']) + setup( name='webbench', version='0.0.1', install_requires=['tornado', 'twisted', 'cyclone', 'flask', 'bottle', 'bottle-redis', 'redis', 'rocket', 'paste' - ], + ] + extras, )