Python network programs, especially ones with many connections, should use Twisted.
A benchmark of anything but the best library/tools in each language is pointless.
A benchmark of anything but the best library/tools in each language is pointless.
It wraps an existing TCP factory, and makes it work with WebSocket.
The entire API is a single function.
Regardless, using a single library, and not even the mainstream one, makes for a poor benchmark.
Micro-benchmarks rarely are complex enough to expose design problems, my point was that one should at least use the de-facto standard, if not several alternatives too.