wow!!! php4 is much faster than php3

From: Date: Fri, 11 Aug 2000 19:16:20 +0000
Subject: wow!!! php4 is much faster than php3
Groups: php.general 
Request: Send a blank email to php-general+get-11385@lists.php.net to get a copy of this message
hi everyone for those, who wants to be impressed by the speed of php4 compared to php3. try to run this script (found on phpwizard.net) - best with the as cgi-compiled version of php (to run in the shell): #!/usr/local/php/bin/php -q <?php $c=$s=0;$a=$t=$x=$y=$b=-2;for(;$b-=$a>2?0.1/($a=-2):0,$b<2; $s.=chr(30+$c),$a+=0.0503)for($x= /* Tobias Ratschiller */ $y=$c=0;++$c<90&$x*$x+$y*$y<4;$y= /* http://phpWizard.net */ 2*$x*$y+$b,$x=$t)$t=$x*$x-$y*$y+$a;print(chunk_split($s,80));?> my times: php4 with zend optimizer activated, running on a single pentium III 650Mhz, 512MB ram: 2.5 sec. php4 without zend optimizer activated, running on a single pentium III 650Mhz, 512MB ram:: 3.2 sec. php3 , running on a _DUAL_ pentium III 500Mhz, 512MB ram: 7.6 sec. greetings steven

« previous php.general (#11385) next »