存档
memcached: Benchmark of 4 Python libraries
memcached: Benchmark of 4 Python libraries

Optimizations, don’t we just love them! Unfortunately most micro optimizations aren’t worth doing. The optimizations that are worth doing are those that affect everything… And if you use memcached, then memcached affects everything
In this blog post I present a benchmark of 4 most popular Python memcached libraries (one of them pure Python, the 3 others C wrappers).
As my benchmark shows, there are lots of gains, basically you can speed up your memcached operations by 2x times – which is REALLY hard to do with any other optimization.
There are currently 4 Python memcached libraries and there aren’t any good benchmarks of these, so I have set a goal to benchmark these. The candidates:
TORNADO – THE FASTEST WSGI SERVER?
Tornado – The fastest WSGI server?

Tornado is a non-blocking web server from the FriendFeed hackers. There are different hello world benchmarks, but none that are really interesting to me since all of my web-applications are WSGI applications.
近期评论