Merge pull request #63 from blakev/feature/performance-tornado

Adds `tornado` test server for speed comparison (#13)
This commit is contained in:
Channel Cat 2016-10-19 01:21:56 -07:00 committed by GitHub
commit b6a06afdc0
2 changed files with 21 additions and 1 deletions

View File

@ -9,3 +9,4 @@ gunicorn
bottle
kyoukai
falcon
tornado

View File

@ -0,0 +1,19 @@
# Run with: python simple_server.py
import ujson
from tornado import ioloop, web
class MainHandler(web.RequestHandler):
def get(self):
self.write(ujson.dumps({'test': True}))
app = web.Application([
(r'/', MainHandler)
], debug=False,
compress_response=False,
static_hash_cache=True
)
app.listen(8000)
ioloop.IOLoop.current().start()