3 ms·
For trivial cases gevent might be fast, but its design is simply flawed, it doesn't handle all the intricacies of networks. Regardless, using a single library,
by lucian1900 14y ago
For trivial cases gevent might be fast, but its design is simply flawed, it doesn't handle all the intricacies of networks.
Regardless, using a single library, and not even the mainstream one, makes for a poor benchmark.
- allardschip 14y agoCan you elaborate on what you think is wrong with Gevent? It comes out pretty well in this shootout: http://nichol.as/benchmark-of-python-web-servers http://nichol.as/benchmark-of-python-web-servers
- lucian1900 14y agoA common case where it goes very wrong is disconnection logic. It's rather complex and gevent has a very naive view of it, which means you can get stuck greenlets. 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.