Added bottle and kyoukai benchmarks, updated sanic and aiohttp
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user