#36166 [Com]: perfomance loss since php version 5.05
| From: | kristian dot raue at jedox dot com | Date: | Sat, 28 Jan 2006 09:55:44 +0000 |
| Subject: | #36166 [Com]: perfomance loss since php version 5.05 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-92574@lists.php.net to get a copy of this message | ||
ID: 36166
Comment by: kristian dot raue at jedox dot com
Reported By: fschaper at intux dot org
Status: Feedback
Bug Type: Performance problem
Operating System: WindowsXP
PHP Version: 5.1.2
New Comment:
Here is a short 20 line php script that reproduces the bug.
http://www.jedox.com/impulse/slow_php5_include.zip
There still is the 26000 line of code include file (fx.xcc). But this
is what the bug is all about. The bug has nothing to do with large
arrays, it is about including large include files. This took 0.5 sec in
PHP 4 and PHP 5.05. In PHP 5.1.2 this takes 3 sec. The include file is a
simple dummy file, please look at the code, it is trivial, 26000 line of
repetious code.
Previous Comments:
------------------------------------------------------------------------
[2006-01-26 16:48:29] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2006-01-26 16:23:04] fschaper at intux dot org
Original test with php5.05 ~ 0.5sec
php5.1 ~ 4.5sec
------------------------------------------------------------------------
[2006-01-26 16:21:28] fschaper at intux dot org
Description:
------------
Since php version 5.05 we noticed an rather large performance hit in
general while working with rather large array's. We have prepared an
short sample which illustrates the problem. in php5 the script takes
about 0.5 seconds to perform. The latest snapshot release from today
and the current release version of php take about 4.5 seconds for the
same task.
Reproduce code:
---------------
http://www.intux.org/bugs/perf_sample.zip
(About 181KB in size)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=36166&edit=1