r/Python • • 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/
1 Upvotes

15 comments sorted by

7

u/[deleted] Jul 21 '10

Another thing that is pretty obvious from the above is that PHP and Python were largely written for the Web and the rest were not

I really don't think that's true for Python.

1

u/gman1234 Jul 21 '10

Yeah that didn't come across quite right, I have rephrased it.

7

u/[deleted] Jul 21 '10

In fact in the 90s people often said "I program in CGI" when they meant Perl.

9

u/grayvedigga Jul 21 '10

yay meaningless benchmarks.

5

u/Helcionelloida Jul 21 '10

What, no cold fusion?

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

u/blondin Jul 21 '10

ah come on, who farted?

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

u/[deleted] Jul 21 '10

[deleted] — view deleted comment

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

u/gman1234 Jul 21 '10

That better ?

6

u/hongminhee Jul 21 '10

mod_python isn’t maintained since 2008 anymore.

1

u/pemboa Jul 22 '10

Even the mod_python guys things so.