Re: [PHP4BETA] JSP vs. PHP - Two vs. Three Teir

From: Date: Fri, 07 Apr 2000 13:52:51 +0000
Subject: Re: [PHP4BETA] JSP vs. PHP - Two vs. Three Teir
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-13289@lists.php.net to get a copy of this message
On Fri, 7 Apr 2000, Vadim Tkachenko wrote: > But PHP interpreting .php files even request. > PHP steps: > 1. Read php file > 2. Interpretation > 3. Running. > > JSP compiling to bytes code one times and save results in memory. > > If you have 200-300 request/sec - JSP better then PHP. While I'm not sure whether or not the above is true, please consider the following: 1. You most probably tested PHP 4.0 in debug mode, unless you explicitly compiled it without debug by adding --disable-debug to configure. Debug versions are considerably slower than release (non debug) versions. 2. PHP prepares lots of things you're likely to use during the script. Often, you don't use them, so the overhead to prepare it is lost (like, parsing all of the input information and storing it in several accessible formats). In PHP 4.0, we're going to release a php.ini-optimized file, that would include non-default values for better performance. 3. 'This year', Zend Technologies plans to release a tool that would persist the compiled representations of your scripts in between requests, and speed up the requests/second number. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.version4 (#13289) next »