abersheeran's repos on GitHub
Python · 262 人关注
asgi-ratelimit
A ASGI Middleware to rate limit
Python · 193 人关注
a2wsgi
Convert WSGI app to ASGI app or ASGI app to WSGI app.
Python · 135 人关注
cool
Make Python code cooler. Less is more.
Python · 76 人关注
baize
Powerful and exquisite WSGI/ASGI framework/toolkit.
Python · 14 人关注
china-region-data
中国行政区域数据
TypeScript · 7 人关注
clash-to-v2rayN
转换 Clash 订阅格式到 v2rayN 订阅格式
Python · 6 人关注
Ahnu
安徽师范大学相关程序
Python · 6 人关注
coolsql
Makes it easier to write raw SQL in Python.
Python · 6 人关注
IdeaServer
JetBrains 家产品的激活服务器
Python · 4 人关注
aligi
为阿里无服务函数提供API网关的协议解析
Python · 4 人关注
asgi-benchmark
Performance comparison between ASGI frameworks
Python · 3 人关注
BingImageCreator
High quality image generation by Microsoft. Reverse engineered API.
Go · 3 人关注
http2tcp
Convert HTTP request to encrypted TCP channel
2 人关注
empty-pypi
empty pypi package
Go · 2 人关注
httpbenchmark
A programmable HTTP stress testing tool. Written in Golang.
2 人关注
kjango
Use kui with django orm/admin/or other anything.
1 人关注
abersheeran
1 人关注
blog-comments
Comments for my blog
1 人关注
compose.yaml
Python · 1 人关注
httpbin
HTTP Request & Response Service, written in Python + Flask.
Python · 1 人关注
issue
Filter logs by name. Allow Unix shell style wildcards.
0 人关注
asgiref
ASGI specification and utilities
TypeScript · 0 人关注
ChatGPT-Next-Web
A well-designed cross-platform ChatGPT UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT 应用。
Shell · 0 人关注
codespace-setup
My code spaces setup script
0 人关注
email_hack
A email bomb/fake email tool written by Python.
0 人关注
fish-diffusion
An easy to understand TTS / SVS / SVC framework
0 人关注
fish-speech
Brand new TTS solution
Python · 0 人关注
httpbin-x
0 人关注
httpx
A next generation HTTP client for Python. 🦋
HTML · 0 人关注
image
abersheeran

abersheeran

我尊重明者与智者。
V2EX 第 492816 号会员,加入于 2020-06-02 18:30:44 +08:00
今日活跃度排名 1218
我对谦和的人谦和,对理性的人理性,与狷狂的人一起狷狂,对自以为是的人会更加自以为是。
根据 abersheeran 的设置,主题列表被隐藏
二手交易 相关的信息,包括已关闭的交易,不会被隐藏
abersheeran 最近回复了
我的评价是:这种文章都不会好好写的人,代码也只能写成一坨屎。
3 天前
回复了 biuyixia 创建的主题 程序员 QQ 邮箱不要 FACE 啊
你都上 V2EX 了应该有 tg 账号,我觉得你这个场景 tg bot 更适合。
6 天前
回复了 huangyx 创建的主题 投资 想看看大家对于黄金的看法
冲突是大势已成,不以任何人的意志而改变。至于会不会战争升级看接下来搅动世界风云的那些人会怎么做了,现在有原子弹悬在他们头上,所以我个人认为升级的可能性不像二战那时候那么大。

局部冲突是无可避免的。
7 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@abersheeran #20 查到了,gunicorn 一开 gevent ,连 http 都不自己处理了,全丢给 gevent ,gunicorn 就只管进程。zibai 的用法是只用 gevent monkey patch 。gevent.wsgi 在 Linux 上比 zibai.h11 快的原因还得再查查。
7 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@hutoer #15

找了一台低配 Linux 服务器跑测试,我发现 -t 8 -c 40 吃不满单核 CPU ,换了一个更高的参数跑。并发更大的是 gunicorn+gevent

但是看这个数据来说,zibai 的平均请求耗时明明更短,方差更小、最大值也更小。总体并发不知道为什么还没 gunicorn 高,我再深入研究一下。可能 gunicorn 对 Linux 做了针对性优化,毕竟我放在 GitHub 上的 benchmark 来自一台 MacBook ,而那个结果是反过来的,zibai 远高于 gunicorn 。

./wrk -t 16 -c 160 -d 1000 http://127.0.0.1:8000
Running 17m test @ http://127.0.0.1:8000
16 threads and 160 connections
^C Thread Stats Avg Stdev Max +/- Stdev
Latency 200.00ms 263.38ms 1.47s 81.44%
Req/Sec 715.51 0.98k 6.19k 86.00%
254899 requests in 46.36s, 41.57MB read
Requests/sec: 5498.37
Transfer/sec: 0.90MB

./wrk -t 16 -c 160 -d 1000 http://127.0.0.1:8000
Running 17m test @ http://127.0.0.1:8000
16 threads and 160 connections
^C Thread Stats Avg Stdev Max +/- Stdev
Latency 52.27ms 9.08ms 198.67ms 88.68%
Req/Sec 191.78 23.24 262.00 79.09%
90721 requests in 29.83s, 9.18MB read
Requests/sec: 3041.02
Transfer/sec: 315.20KB
8 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@hutoer #18 那有点怪了,我一会用一个低配 Linux 测一下
8 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@hutoer #15 https://github.com/abersheeran/zibai/blob/main/benchmark.md GitHub 上我的测试结果和你这个差别有点大
8 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@hutoer #15 我看 gunicorn 你开 gevent 了,你装 zibai 的时候带上 gevent 了吗?看启动日志,里面会显示是否启用了 gevent 。
@chinesehuazhou #2 好,谢谢。
12 天前
回复了 abersheeran 创建的主题 Python 一个纯 Python WSGI 服务器
@founddev #13 ASGI 有 uvicorn ,我都在维护 uvicorn 了也没必要新开一个项目来对着干。兹白主要解决的就是现有 WSGI 服务器的一些痛点。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5655 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 02:44 · PVG 10:44 · LAX 19:44 · JFK 22:44
Developed with CodeLauncher
♥ Do have faith in what you're doing.