Hacker News new | ask | show | jobs
by __alexs 5249 days ago
> Python & Ruby are both slower interpreted languages than PHP

Source? That's not what the Programming Language Benchmark Game says...

http://shootout.alioth.debian.org/u64/which-programming-lang...

Although that's probably without an optimiser at all.

1 comments

Maybe that should be qualified "in a web context".
Still a big [citation needed]. Compare with something like cached Mako templates in Python and I seriously doubt it's competitive.
Compare it with a micro-cached Varnish or nginx .. caching is outside of the "speed" parameters. Of course, you could take a look memcached if you want :)

I can't find the reference I remember but it fits roughly with the link posted (the scale seems to match the max times rather the average times). The differences were tiny but the order was PHP, Python, Ruby if I remember correctly (PHP was in front, PR may have been switched).

I'll try get a link but I doubt i'll find it.

In the case of Mako at least, caching doesn't mean caching in the way you mean it. It's more akin to opcode caching in PHP, saving the actual python code generated from the template, not the result. Just saves from reparsing the template every time it's rendered, but the actual template logic still runs.