sanic/tests/performance/bottle/simple_server.py
2018-12-30 13:18:06 +02:00

13 lines
261 B
Python

# 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()