4 ms·
Python has gevent, which is much faster than Tornado, at least at microbenchmarks (see http://nichol.as/benchmark-of-python-web-servers http://nichol.as/benchma
by wladimir 16y ago
Python has gevent, which is much faster than Tornado, at least at microbenchmarks (see http://nichol.as/benchmark-of-python-web-servers http://nichol.as/benchmark-of-python-web-servers ). It's probably in the same league as Node.
In the article they also give the reason why Warp is so much faster: it auto-scales to four cores. The Python frameworks don't do this, you have to use multiprocessing for that (or just run an instance for every core).
- sausagefeet 16y agoAgain I think you're missing what I was saying. I'm not saying you should chose Node over Tornado or making any kind of value judgement, I'm saying it would be interesting to state the costs of choosing various frameworks to help make better decisions. On a side note I'm very skeptical of the claim that gevent is in the same league as Node, the numbers in this site are close to the Warp numbers and gevent is still about 6x slower than Node. (Unless I'm reading the microbenchmark wrong). But that's the problem with microbenchmarks, they don't really tell you much. EDIT: Clarity