You are here: Re: bad performance with php 5.2.0 « PHP Programming Language « IT news, forums, messages
Re: bad performance with php 5.2.0

Posted by ljb on 01/27/07 02:18

lbayuk@pobox.com.spam.not wrote:
> FYI, I'm seeing a lot slower PHP 5.2.0 vs 4.4.4, but I don't have a real
> benchmark. This is using the CLI - no web server involved. This is for one
> specific script:
> Run time for PHP-4.4.4 : 3.3 secs
> Run time for PHP-5.2.0 : 24.2 secs
> That is NOT encouraging.

OK, this was already reported in bug report 39968 and it has to do with
the date() and mktime() functions only. Response to the bug report was:
: You need to set the timezone, otherwise a notice is raised
: which is what's killing the speed of your code.
So I put this in php.ini: date.timezone = "America/New_York"
Now I get 5.8 secs on PHP-5.2.0. A lot better, though still slower than 4.4.4.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация