Hacker News new | ask | show | jobs
by GamblersFallacy 2193 days 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.

1 comments

uvicorn selects uvloop automatically if you have it installed (i just test on my machine, without passing --loop).