Python 的部署是个问题。
Python Web 部署是 uWSGI 还是 gunicorn 更优?
相关帖子
-
zonghua •作者
使用
gunicorn -w 4
Document Path: / Document Length: 1767 bytes Concurrency Level: 100 Time taken for tests: 20.554 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 19170000 bytes HTML transferred: 17670000 bytes Requests per second: 486.53 [#/sec] (mean) Time per request: 205.537 [ms] (mean) Time per request: 2.055 [ms] (mean, across all concurrent requests) Transfer rate: 910.82 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.9 0 11 Processing: 8 204 13.7 205 243 Waiting: 5 204 13.7 205 243 Total: 13 205 13.0 205 243 Percentage of the requests served within a certain time (ms) 50% 205 66% 208 75% 210 80% 212 90% 216 95% 220 98% 224 99% 228 100% 243 (longest request)
- 其他回帖
-
zonghua •作者
vi ~/.pip/pip.conf [global] index-url = http://pypi.tuna.tsinghua.edu.cn/simple # 或者 http://pypi.douban.com/simple 豆瓣
-
zonghua •作者
使用
gunicorn
Document Path: / Document Length: 1767 bytes Concurrency Level: 100 Time taken for tests: 20.769 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 19170000 bytes HTML transferred: 17670000 bytes Requests per second: 481.49 [#/sec] (mean) Time per request: 207.690 [ms] (mean) Time per request: 2.077 [ms] (mean, across all concurrent requests) Transfer rate: 901.38 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.9 0 10 Processing: 7 207 13.2 208 225 Waiting: 5 207 13.2 208 225 Total: 13 207 12.5 208 225 Percentage of the requests served within a certain time (ms) 50% 208 66% 210 75% 212 80% 213 90% 216 95% 218 98% 221 99% 222 100% 225 (longest request)
- 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于