shadyfile
所属分类:Java编程
开发工具:WINDOWS
文件大小:2KB
下载次数:0
上传日期:2019-01-15 11:28:32
上 传 者:
cometothecaml
说明: i dont know what this does but interesting
文件列表:
0f0d87e7ee42f0a8eaf28f0d13629674-dbf6eff0cb4e90b098138f2c4caeea101cd01b9c (0, 2018-12-23)
0f0d87e7ee42f0a8eaf28f0d13629674-dbf6eff0cb4e90b098138f2c4caeea101cd01b9c\requirements.txt (69, 2018-12-23)
0f0d87e7ee42f0a8eaf28f0d13629674-dbf6eff0cb4e90b098138f2c4caeea101cd01b9c\test_no_psycogreen.py (277, 2018-12-23)
0f0d87e7ee42f0a8eaf28f0d13629674-dbf6eff0cb4e90b098138f2c4caeea101cd01b9c\test_psycogreen.py (357, 2018-12-23)
This is a test to see if psycogreen is necessary to run sqlalchemy + gevent + psycopg2 concurrently.
### benchmark command (concurrency of 10)
> ab -n 10 -c 10 127.0.0.1:8080/wait
#### psychopg2 - sync worker (expecting concurrency of 2)
> gunicorn -b 127.0.0.1:8080 -w 2 test:app
Requests per second: 1.99 [#/sec] (mean)
#### psychopg2 - gevent worker - test_no_psycogreen.py (expecting concurrency of 10)
> gunicorn -b 127.0.0.1:8080 -w 2 test:app -k gevent
Requests per second: 1.*** [#/sec] (mean)
#### psychopg2 - gevent worker - test_psycogreen.py (expecting concurrency of 10)
> gunicorn -b 127.0.0.1:8080 -w 2 test:app -k gevent
Requests per second: 9.42 [#/sec] (mean)
### Results
Yes, psycogreen is required.
近期下载者:
相关文件:
收藏者: