r/PHP • • 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/
4 Upvotes

8 comments sorted by

3

u/Pas__ Jul 21 '10

I thought he's going to write a standalone server in C and Proxy through Apache2. That might be a bit faster, than starting processes each time.

Though suprising, that forking is so fast. At least I'm hoping he wasn't using the worker MPM, as PHP isn't thread-safe.

2

u/gman1234 Jul 21 '10

Server version: Apache/2.2.3 Server built: Mar 4 2010 09:57:54 Server's Module Magic Number: 20051115:3 Server loaded: APR 1.2.7, APR-Util 1.2.7 Compiled using: APR 1.2.7, APR-Util 1.2.7 Architecture: 64-bit Server MPM: Prefork

13

u/Confucius_says Jul 21 '10

I can't think of a more useless comparison.

5

u/deadA1ias Jul 21 '10

That should not be a line graph.

1

u/[deleted] Jul 21 '10

Ditto. I was confused for a few seconds because I thought it was requests-per-second versus concurrency or something.

3

u/[deleted] Jul 24 '10

This fails on so many levels.

1

u/[deleted] Jul 21 '10

Only 20% difference between plain HTML document and PHP script? That prefork MPM might be loading up the PHP interpreter even when it's only serving HTML documents. Was the plain HTML test performed with all unnecessary modules disabled or not?

Might be interesting to see numbers for nginx (using FastCGI for PHP).

1

u/ihsw Jul 21 '10

I must point out that serving PHP scripts via FastCGI contrasts only slightly compared mod_php, although it is the preferred method nowadays.