Python 的部署是个问题。
Python Web 部署是 uWSGI 还是 gunicorn 更优?
相关帖子
-
zonghua •作者
使用
uwsgi --http :8000 --module project.wsgi
Document Path: / Document Length: 1767 bytes Concurrency Level: 100 Time taken for tests: 22.060 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 19170000 bytes HTML transferred: 17670000 bytes Requests per second: 453.30 [#/sec] (mean) Time per request: 220.604 [ms] (mean) Time per request: 2.206 [ms] (mean, across all concurrent requests) Transfer rate: 848.61 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.9 0 11 Processing: 8 219 13.3 221 241 Waiting: 5 219 13.4 221 241 Total: 13 220 12.6 221 241 Percentage of the requests served within a certain time (ms) 50% 221 66% 223 75% 224 80% 225 90% 227 95% 229 98% 234 99% 237 100% 241 (longest request)
- 其他回帖
-
onlyice •
@zonghua 难以一两句话说清楚,可以参考下我之前写的帖子:
https://plus.google.com/+ZhihengLin/posts/KJYNhtbeKLE测试很棒
-
zonghua •作者
# 安装 lxml ,依赖啊依赖 $sudo apt-get install libxml2-dev libxslt-dev python2.7-dev $sudo pip install lxml
-
zonghua •作者
使用
uwsgi --sock 127.0.0.1:8001 --max_process 2
Document Path: / Document Length: 1767 bytes Concurrency Level: 100 Time taken for tests: 18.602 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 19320000 bytes HTML transferred: 17670000 bytes Requests per second: 537.59 [#/sec] (mean) Time per request: 186.015 [ms] (mean) Time per request: 1.860 [ms] (mean, across all concurrent requests) Transfer rate: 1014.28 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 1.0 0 11 Processing: 8 185 11.7 185 201 Waiting: 5 185 11.7 185 201 Total: 13 185 11.0 185 202 Percentage of the requests served within a certain time (ms) 50% 185 66% 189 75% 191 80% 192 90% 194 95% 196 98% 198 99% 199 100% 202 (longest request)
- 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于