Adds tornado test server for speed comparison (#13)

This commit is contained in:
Blake VandeMerwe 2016-10-18 09:41:45 -06:00
parent 452438dc07
commit cbb1f99ccb
2 changed files with 21 additions and 1 deletions

View File

@ -8,4 +8,5 @@ tox
gunicorn
bottle
kyoukai
falcon
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()