sanic/tests/performance/bottle/simple_server.py

12 lines
260 B
Python
Raw Normal View History

# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
import bottle
from bottle import route, run
import ujson
@route('/')
def index():
return ujson.dumps({'test': True})
app = bottle.default_app()