3 ms·
Hi, a few suggestions. Your benchmarks github repo requirements.txt shows uvloop is not been installed. In addition, the bash script calling uvicorn doesn't hav
by GamblersFallacy 6y ago
Hi, a few suggestions. Your benchmarks github repo requirements.txt shows uvloop is not been installed. In addition, the bash script calling uvicorn doesn't have uvloop set for the loop parameter. For example, serve-uvicorn-starlette.sh should be:
uvicorn --port 8001 --workers $PWPWORKERS app_starlette:app --loop uvloop
The uvicorn docs should point out what a big difference uvloop makes.
- fernandotakai 6y agouvicorn selects uvloop automatically if you have it installed (i just test on my machine, without passing --loop).