Re: Speed comparison of PHP vs. PERL (not conclusive)

From: Date: Fri, 31 May 2002 22:35:28 +0000
Subject: Re: Speed comparison of PHP vs. PERL (not conclusive)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-100186@lists.php.net to get a copy of this message
Hello, On 05/31/2002 06:36 PM, Daniel Grace wrote:
The results: [dewin@ulysses profiling]$ time ./prime.php > /dev/null
real    0m14.465s
user    0m8.610s
sys     0m0.070s
[dewin@ulysses profiling]$ time ./prime.pl > /dev/null
real    0m5.302s
user    0m3.180s
sys     0m0.000s
Your measures do not distinguish between the compile time and execute time. I don't know about Perl, but since PHP 4, Zend engine first compiles PHP code into opcodes and only then it executes the code. -- Regards, Manuel Lemos

« previous php.general (#100186) next »