官方给的 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()
2 条回复 • 2020-02-11 11:04:14 +08:00
|
1
trn4 2020 年 2 月 10 日
|
|
2
watsy0007 OP @xiadong1994 github 的图片好像不能预览
|
推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide