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