View Single Post
Old 05-09-2002, 05:34 PM  
Lane
Will code for food...
 
Join Date: Apr 2001
Location: Buckeye, AZ
Posts: 8,496
Quote:
Originally posted by FATPad


How many Perl scripts are executed as non CGI scripts? The same scripts could be rewritten in C and execute way faster. You can't compare CGI C scripts to non CGI Perl scripts.

What is the functionality level of a PHP script before the C speed overtakes it with the CGI execution time? I'm assuming it's not very much. So in theory, a "hello world" script written in PHP may in fact take less time and less server resources to run than an equivalent C script. But in the real world, that's meaningless.

In any real world, equal comparison, C will blow away PHP and Perl based on pure speed and server resources.

Having said that... I love PHP and think Perl has it's place. Writing them and maintaining them is a lot easier, and they don't need to be recompiled from server to server. That's their real advantage and that's why they're so widespread in use. Not performance. Performancewise C will crush anything except Assembler.
correct..

i said "sometimes" they are faster (and i assumed mod_perl, not CGI perl)

..and Assembler.. its not the only language that can beat C, but all those are a pain to code..
__________________
Lane is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote