Re: slow performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Zoltán Németh schrieb:

>> I wrote a small sample-application once using PHP (with propel and
>> smarty) and once using Java (JBoss, EJB3, JSP & Servlets). Both apps are
>> being served from a windows server (2x Xeon 1,3GHz, 2 GB RAM), but the
>> performance of the PHP version is much slower than the Java version.
> 
> I think this is because Java is compiled once, PHP is compiled at every
> request...

Well, but using something like eAccelerator should compensate this,
shouldn't it? As far as I understand, scripts are being compiled and
then store in memory to access them faster.

>> I already installed an php-accelerator (eAccelator) which increased the
>> overall performance, but still the performance is quite poor.
> 
> I would not say php performace is poor, I think it is quite fast (at
> least on my linux boxes, I know nothing about php on windows...)

Well ... I did some stress-testing. I create 20 concurrent requests to
my application: random pages, randomizing the post parameter, which
causes to load different data from the database (MySQL 5.0.37, running
on a separate server). My webserver is the same for java and php.

Running my test for about 5 minutes, I get about 31.000 request for the
java application, but only about 3.000 for the php.



-- 
... Does killing time harm eternity?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux