I just simplified a little the benchmark, to remove a string concatenation, to measure more of the raw throughput with less impact other things, and runned using Falcon + uvicorn and socketify.py, when benchmarking i was talking with Vytautas Liuolia in the Falcon Gitter for tunning HTTP performance in other raw throughtput testing as well, and Falcon is not so much focused on WS performance, this also depends a lot of ASGI server too. For this test i choose uvicorn with gunicorn as ASGI server.
Messages per second with Linux x64:
https://raw.githubusercontent.com/cirospaciari/socketify.py/...
Socketify got almost 900k messages/s with PyPy3 and 860k with Python3 the same performance as Bun that also uses uWebSockets, Falcon at 35k messages/s and Falcon with PyPy3 improves into 56k messages/s, node.js manages 192k.
You can see the source code for the benchmark here https://github.com/cirospaciari/socketify.py/tree/main/bench and if you have some time check out the github https://github.com/cirospaciari/socketify.py this project can be even better with some community love ;)