
官方给的 benchmark

代码
import uws import asyncio # Integrate with asyncio asyncio.set_event_loop(uws.Loop()) app = uws.App({ "some": "option" }) def getHandler(res, req): res.end("Hello Python!") app.get("/*", getHandler) def listenHandler(): print("Listening to port 3000") app.listen(3000, listenHandler) # Run asyncio event loop asyncio.get_event_loop().run_forever() 1 trn4 2020-02-10 23:55:52 +08:00 |
2 watsy0007 OP @xiadong1994 github 的图片好像不能预览 |