From: info at a-wing dot co dot uk Operating system: CentOS 4.4 PHP version: 5.2.1 PHP Bug Type: Performance problem Bug description: Performace issues with 5.2.1
Description: ------------ After compiling PHP 5.2.1 on our devel boxes we find a performance hit compared to 5.2.0 as can be seen in the following bench.php results: PHP 5.2.0 --------- simple 0.269 simplecall 0.472 simpleucall 0.829 simpleudcall 0.952 mandel 1.043 mandel2 1.203 ackermann(7) 0.859 ary(50000) 0.049 ary2(50000) 0.041 ary3(2000) 0.478 fibo(30) 2.093 hash1(50000) 0.088 hash2(500) 0.095 heapsort(20000) 0.279 matrix(20) 0.245 nestedloop(12) 0.458 sieve(30) 0.220 strcat(200000) 0.038 ------------------------ Total 9.713 PHP 5.2.1 --------- simple 0.537 simplecall 0.957 simpleucall 1.429 simpleudcall 1.467 mandel 1.988 mandel2 2.506 ackermann(7) 1.646 ary(50000) 0.087 ary2(50000) 0.073 ary3(2000) 0.983 fibo(30) 3.744 hash1(50000) 0.176 hash2(500) 0.194 heapsort(20000) 0.541 matrix(20) 0.446 nestedloop(12) 0.808 sieve(30) 0.422 strcat(200000) 0.422 ------------------------ Total 18.427 I have tried with GCC 4.1.0 and 3.4.6 with similar results. Both versions were built with the same configuration options and CFLAGS (tried -march=i686 -msse2 and just leaving it to defaults with similar difference in speed). I especially turn your attention to the strcat score which is terribly slow in 5.2.1. I have also benched 5.2.2dev using the 1:30am GMT build on the 26th with the following results: simple 0.330 simplecall 0.506 simpleucall 0.805 simpleudcall 0.921 mandel 1.091 mandel2 1.459 ackermann(7) 1.028 ary(50000) 0.057 ary2(50000) 0.048 ary3(2000) 0.642 fibo(30) 2.479 hash1(50000) 0.107 hash2(500) 0.127 heapsort(20000) 0.358 matrix(20) 0.294 nestedloop(12) 0.605 sieve(30) 0.275 strcat(200000) 0.162 ------------------------ Total 11.293 Better than 5.2.1, but still slower than 5.2.0. Reproduce code: --------------- http://cvs.php.net/viewvc.cgi/ZendEngine2/bench.php?view=markup Expected result: ---------------- Minimal difference in speed, maybe even a speed increase in 5.2.1. Actual result: -------------- 5.2.1 takes twice as long compared to 5.2.0 -- Edit bug report at http://bugs.php.net/?id=40640&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40640&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40640&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40640&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40640&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40640&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40640&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40640&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40640&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40640&r=support Expected behavior: http://bugs.php.net/fix.php?id=40640&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40640&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40640&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40640&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40640&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40640&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40640&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40640&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40640&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40640&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40640&r=mysqlcfg