Added bottle and kyoukai benchmarks, updated sanic and aiohttp

This commit is contained in:
Channel Cat
2016-10-16 00:50:49 -07:00
parent 4ab5ee36de
commit 41d31b9e55
5 changed files with 30 additions and 5 deletions

View File

@@ -4,12 +4,13 @@ from aiohttp import web
import asyncio
import sys
import uvloop
import ujson as json
loop = uvloop.new_event_loop()
asyncio.set_event_loop(loop)
async def handle(request):
return web.json_response({"test":True})
return web.Response(body=json.dumps({"test":True}).encode('utf-8'), content_type='application/json')
app = web.Application(loop=loop)
app.router.add_route('GET', '/', handle)