Re: HipHop and other PHP compiler performance evaluation

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

 



Hello,

on 03/02/2010 01:04 AM Raymond Irving said the following:
> Hi Manuel ,
> 
> Thanks for the feedback.
> 
> I know that caching helps but if we could get a little more speed out of
> the scripts then that would help with the number of request per second.
> 
> I'll have a look at the article that you have recommend.

I am talking about content caching, not opcode caching. If you have a
page with contents do change frequently, you can use content caching
(files, memcached, etc). Then PHP execution speed will be mostly
irrelevant because your script will be waiting most of the time for I/O
operations copying data from cache files or memcached server and the
user computer.


> --- On *Fri, 2/26/10, Manuel Lemos /<mlemos@xxxxxxx>/* wrote:
> 
> 
>     From: Manuel Lemos <mlemos@xxxxxxx>
>     Subject: Re:  HipHop and other PHP compiler performance evaluation
>     To: "Raymond Irving" <xwisdom@xxxxxxxxx>
>     Cc: "PHP List" <php-general@xxxxxxxxxxxxx>
>     Date: Friday, February 26, 2010, 12:52 AM
> 
>     Hello Raymond,
> 
>     on 02/25/2010 11:34 PM Raymond Irving said the following:
>     >
>     > Very nice article. Thanks for sharing.
>     >
>     > I wish PHP had a feature/extension to compile (to native code) and
>     cache
>     > the scripts at runtime. This way we could get speeds that are very
>     close
>     > to PHC and Hiphop. It would be very slow when loading the page for the
>     > first time but after then it should just blaze. Maybe we will one day
>     > see something like an NCC (Native Code Compiler) extension for php
>     that
>     > will replace or complement APC.
> 
>     Right but keep in mind that most of the time regular PHP scripts are
>     waiting for I/O operations, like accessing to the network, files or
>     database servers. So the speed of execution of pure CPU intensive code
>     like bench.php used in the tests, may not be what matters most to your
>     sites.
> 
>     So, often investing in heavily caching your content in files (or
>     memcached servers for clustered servers) is a much more efficient
>     solution to handle the load of busy sites. That is mostly what the
>     PHPClasses sites uses to handle over 2 million page views a month with a
>     single server.
> 
>     You may want to read more about that here for more details:
> 
>     http://www.phpclasses.org/blog/post/66-More-defensive-programming-practices-to-survive-Web-site-traffic-peaks.html


-- 

Regards,
Manuel Lemos

Find and post PHP jobs
http://www.phpclasses.org/jobs/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

-- 
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