Skip to content

Commit

Permalink
cpython setup, use 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
James Casbon committed Feb 21, 2012
1 parent 8ea5581 commit 9b736c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runbench.py
Expand Up @@ -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()
Expand Down
8 changes: 7 additions & 1 deletion 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,
)

0 comments on commit 9b736c5

Please sign in to comment.