r/Python • u/gman1234 • Jul 21 '10
Battle of the server side scripting languages Perl, PHP, Python
http://l2admin.com/2010/07/21/battle-of-the-server-side-scripting-languages-perl-php-python/9
5
2
u/onjin Jul 21 '10
Comparation of mod_php and mod_wsgi by measure output has no sense for me. With wsgi you can run 'instanced' application, by mod_php you can only 'parse' given files. By wsgi you don't have to warm up your application in every request (config files, in memory registry, ...). Php has to do it in every request (i'm not talking about f.e. memcached here).
1
1
u/anastas Jul 21 '10 edited Jul 21 '10
I must admit I was somewhat surprised by the significant differences in speed between Perl, PHP and Python (mod_python) when running under their respective Apache modules. I had fully expected the results to be virtually the same between all three.
To me, it looks as though your graph does, in fact, show that mod_php, mod_perl, mod_python, and mod_wsgi gave very similar average request times. Furthermore, mod_wsgi handled only about 2% requests per second more than mod_php, which is not a very significant difference (though the ~12% difference between mod_wsgi and mod_perl is indeed significant).
0
Jul 21 '10
[deleted]
0
u/gman1234 Jul 21 '10
I was trying to keep things as plain as possible. what do you suggest I use ? mod_wsgi ?
8
u/MercurialAlchemist Jul 21 '10
Yes. Nobody sensible uses mod_python.
1
7
u/[deleted] Jul 21 '10
I really don't think that's true for Python.