Python 的部署是个问题。
Python Web 部署是 uWSGI 还是 gunicorn 更优?
相关帖子
- 其他回帖
-
zonghua •作者
使用
gunicorn -w 2
Document Path: /
Document Length: 1767 bytesConcurrency Level: 100 Time taken for tests: 20.704 seconds Complete requests: 10000 Failed requests: 0 Total transferred: 19170000 bytes HTML transferred: 17670000 bytes Requests per second: 483.00 [#/sec] (mean) Time per request: 207.041 [ms] (mean) Time per request: 2.070 [ms] (mean, across all concurrent requests) Transfer rate: 904.20 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 1.0 0 11 Processing: 8 206 13.1 207 247 Waiting: 6 206 13.1 207 247 Total: 14 206 12.4 207 247 Percentage of the requests served within a certain time (ms) 50% 207 66% 209 75% 211 80% 212 90% 216 95% 218 98% 220 99% 221 100% 247 (longest request)
-
zonghua •作者
使用测试服务器
./manage.py runserver
Server Software: nginx/1.8.1
Server Hostname: localhost
Server Port: 80Document Path: / Document Length: 1767 bytes Concurrency Level: 100 Time taken for tests: 28.410 seconds Complete requests: 10000 Failed requests: 206 (Connect: 0, Receive: 0, Length: 206, Exceptions: 0) Non-2xx responses: 206 Total transferred: 18841636 bytes HTML transferred: 17341430 bytes Requests per second: 351.99 [#/sec] (mean) Time per request: 284.096 [ms] (mean) Time per request: 2.841 [ms] (mean, across all concurrent requests) Transfer rate: 647.67 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.8 0 10 Processing: 19 271 858.4 35 15029 Waiting: 19 271 858.3 35 15029 Total: 27 271 858.8 35 15029 Percentage of the requests served within a certain time (ms) 50% 35 66% 36 75% 37 80% 38 90% 1033 95% 1038 98% 4271 99% 4276 100% 15029 (longest request)
-
onlyice •
@zonghua 难以一两句话说清楚,可以参考下我之前写的帖子:
https://plus.google.com/+ZhihengLin/posts/KJYNhtbeKLE测试很棒
- 查看全部回帖
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于